CapsLock key to dual-role key (c

2018-03-10  本文已影响35人  district10

step 1: caps lock -> control

http://blog.csdn.net/guxi123/article/details/50562402

$ sudo vim /etc/default/keyboard # modify: XKBOPTIONS="ctrl:nocaps"

$ sudo dpkg-reconfigure keyboard-configuration

now, caps lock is mapped to control (CONTROL_L), you can use xev to check it's key code.

step 2: control -> dual-role key

Install xcape, then config this:

xcape -e 'Control_L=Escape'

Now, your caps lock key is Escape pressed alone, and is Control when pressed with another key.

If you failed to install xcape, you may use c-[ as an alternative to escape.

上一篇 下一篇

猜你喜欢

热点阅读