gsettingsによるLinux Mint 20用のカスタムキーバインディング

gsettingsによるLinux Mint 20用のカスタムキーバインディング

に与えられた解決策gsettingsによるCinnamonのグローバルキーバインディングのカスタマイズLinux Mint 20では動作しません。

GUIを使用して変更を監視dconf watch /し、ショートカットを作成すると、次のように変更しました。

/org/cinnamon/desktop/keybindings/custom-list
  ['custom0']

/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/binding
  @as []

/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/command
  'screen -d -m "/home/blueray/src/Translate/screen_ts.sh"'
  
/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/name
  'capture2text'

/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/binding
  ['<Super>q']

私が使用する最初の行を設定するには:

gsettings set org.cinnamon.desktop.keybindings custom-list "['custom0']"

ただし、2行目ではエラーが発生します。

% gsettings set org.cinnamon.desktop.keybindings.custom-keybindings.custom0 binding "@as []" 
No such schema “org.cinnamon.desktop.keybindings.custom-keybindings.custom0”

gsettings(GUI以外)を使用してLinux Mint 20でカスタムショートカットを設定する方法

ベストアンサー1

次の行を例として使用できます。

dconf write /org/cinnamon/desktop/keybindings/custom-list "['custom0']"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom0/command "'tmux new-session -d "/home/blueray/src/Translate/screen_ts.sh"'"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom0/name "'capture2text'"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom0/binding "['<Super>q']"

# xkill keybinding for ctrl + escape
dconf write /org/cinnamon/desktop/keybindings/custom-list "['custom0', 'custom1']"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom1/command "'xkill'"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom1/name "'xkill'"
dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom1/binding "['<Primary>Escape']"

おすすめ記事