重映射 Caps Lock

经常将Caps Lock键错按成TabShift,于是把它换成Ctrl

from askubuntu.com

sudo vim /etc/default/keyboard

then find the line that starts with XKBOPTIONS, and add ctrl:nocaps to make Caps Lock an additional Control key.
For example,

XKBOPTIONS="lv3:ralt_alt,compose:menu,ctrl:nocaps"

then run

sudo dpkg-reconfigure keyboard-configuration

Leave a Reply

Your email address will not be published. Required fields are marked *