美文网首页
CapsLock key to dual-role key (c

CapsLock key to dual-role key (c

作者: district10 | 来源:发表于2018-03-10 17:05 被阅读35次

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.

相关文章

网友评论

      本文标题:CapsLock key to dual-role key (c

      本文链接:https://www.haomeiwen.com/subject/yfrbfftx.html