如何找到与给定键盘快捷键绑定的命令?


13

如何找到给键盘快捷键绑定的命令?我记得最近在不同的地方使用键盘快捷键:系统/首选项/键盘快捷键,“ gnome-keyboard-properties”和Compiz。是否有一个保留所有这些快捷键的中央位置,还是我必须记住设置键盘快捷键的所有位置?

Answers:


4

不,没有中心位置。任何应用程序都可以抓取某些键并将其用作快捷键,由该应用程序选择配置方法。GNOME应用程序通常使用gconf。Compiz和Metacity甚至共享gconf密钥-这些是您可以在gnome-keybinding-properties中看到的快捷方式。


3

我发现最好的地方是使用gconf。在F2上单击运行框,然后键入gconf-editor,然后浏览到apps> metacity> global_keybindings。您也可以在keybinding_commands部分中设置自定义命令,然后在其中调用它们。示例:对于绑定命令command_1,我在“ gnome-screensaver-command --activate”中未加引号。然后,对于全局键绑定run_command_1,我也将“ s”也加引号。每当我使用该键盘命令时,我都会激活屏幕保护程序。


2
感谢您的建议,但似乎只不过是“ gnome-keybinding-properties”的不太友好的界面。
Olivier Lalonde 2010年

1
我的系统(Xubunti 17.10)上没有应用程序> metacity。应用程序下只有blueman和gconf编辑器。
Bulletmagnet

就像@Bulletmagnet指出的那样,现代的Ubuntu似乎没有这个功能。apps > metacity在Ubuntu 18.04中不存在
gene_wood
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.