ubuntu16.04 设置CapsLock为control

打开配置文件。

sudo emacs /etc/default/keyboard

找到“XKBOPTIONS”,

交换Capts Lock 与 Control键

XKBOPTIONS="ctrl:swapcaps"

或者设置Caps Lock为Control键

XKBOPTIONS="ctrl:nocaps"

最后执行 sudodpkg-reconfigure keyboard-configuration


--------------------------------------------------------------------------------------------------------

clear lock

clear control

keycode 105 = apostrophe quotedbl apostrophe quotedbl

keycode 48 = Control_R quotedbl Control_R

keycode 66 = Control_L Caps_Lock NoSymbol NoSymbol

add control = Caps_Lock Control_L Control_R

你可能感兴趣的:(ubuntu16.04 设置CapsLock为control)