在 Ubuntu 中使用 CapsLock 作为修饰键 + 独立键

在 Ubuntu 中使用 CapsLock 作为修饰键 + 独立键

在 Windows 中,您可以使用 AutoHotKey 将 Capslock 设为独立键(例如,将其绑定到“escape”)一个修饰符(以便您可以绑定,比如说“CapsLock + k”,来启动浏览器)。

我已经尝试了所有办法让 CapsLock 拥有自己的特殊绑定并使其成为 Ubuntu 中的修饰键,但我确信这是不可能的。

我错了吗?有人知道有什么办法可以实现吗?

答案1

重新映射 Caps Lock

Applications -> Keyboard Layout -> Options... Caps Lock key behavior -> Make Caps Lock an additional ESC

如果你希望它是另一个修饰符,你可以将它设为额外的 Hyper例如。

热键

就分配快捷键而言,没有什么比 Compiz 的 Command 插件更好了。遗憾的是,Unity 似乎已经削弱了它。不过你可以试试运气。

Applications -> Software & Updates -> [x] Community-maintained free and open-source software (universe)

打开终端

sudo apt-get update 
sudo apt-get install compiz-plugins
ccsm

Applications -> CompizConfig Settings Manager -> Commands -> [x] Enable Commands

设置热键:

Commands -> Key Bindings -> Run command 0 -> Disabled -> [x] Enabled -> Grab key combination

设置动作:

Commands -> Key Bindings -> Command line 0 -> <input command here>

相关内容