ニモアクション
まず、あなたは~/.local/share/nemo/actions/
下myaction.nemo_action
を配置する必要があります。
次に、キーストロークを作成するには、希望の文字の前にアンダースコア_
を入れます。たとえば、Hello _Shortcut
の場合、s
が鍵です。右クリックしてs
を押します。
ベローは、Atomでファイルやディレクトリを開くには、自分の行動の例です。
# Custom action for Nemo File Manager for Cinnamon.
# Adds right-click open file/files or directory with Atom.
# Place it under: ~/.local/share/nemo/actions/atom.nemo_action
# For more info: https://github.com/linuxmint/nemo/blob/master/files/usr/share/nemo/actions/sample.nemo_action
[Nemo Action]
Active=true
Name=Open in _Atom
Comment=Open %F in Atom
Exec=atom %F
Icon-Name=atom
Selection=any
Extensions=any;
Dependencies=atom;
Quote=double
グローバルショートカット
あなたがグローバルなショートカットをしたい場合は、下のシナモンKeyboard
設定を使用する必要がありますSystem settings
、2番目のタブに移動し、カスタムショートカットを追加します。
CLIをより詳細に制御する場合は、dconf
を使用できます。たとえば、蛇形構成でショートカットが追加されます。Shift><Alt>a
/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/name
'Open Atom'
/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/command
'atom'
/org/cinnamon/desktop/keybindings/custom-keybindings/custom0/binding
['<Shift><Alt>a']
/org/cinnamon/desktop/keybindings/custom-list
['custom0']
出典
2017-03-14 13:10:08
tvl