使用 xmodemap 工具使 Capslock 按键成为附加的 Ctrl 键

12 Sep 2011

结果很简单,过程很曲折,完整的代码如下,将其放入 ~/.Xmodmap 中即可:

!add capsLK additional ctrl
remove lock = Caps_Lock
add control = Caps_Lock
keycode 66 = Control_L

PS: keycode 66 就是CapsLk键

参考资料:

comments powered by Disqus