gpt4 book ai didi

cinnamon - 如何为自定义 nemo Action 添加键盘快捷键?

转载 作者:行者123 更新时间:2023-12-03 02:44:47 25 4
gpt4 key购买 nike

我有一个自定义 nemo 操作,如下所述: https://wiki.archlinux.org/index.php/Nemo#Nemo_Actions

如何添加此操作的快捷方式?

(如果可以在 ~/.gnome2/accels/nemo 中添加一行,那么我还有一个额外的问题,在我的系统上,该文件是在每次重新启动时自动生成的,因此编辑这里的东西不会有帮助。我有 Cinnamon 3.2.7 和 nemo 3.2.2。)

有什么建议吗?提前致谢! :)

最佳答案

尼莫行动

首先,您应该放置 myaction.nemo_action~/.local/share/nemo/actions/ .

然后,要击键,请输入下划线 _在你想要的字母前面。例如在 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

全局快捷方式

如果你想要一个全局快捷方式,你应该使用 Cinnamon Keyboard System settings下的设置,转到第二个选项卡并添加自定义快捷方式。
或者,如果您更喜欢对 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']

关于cinnamon - 如何为自定义 nemo Action 添加键盘快捷键?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41381003/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com