交换左Ctrl键和Caps lock键
Windows 10
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,1d,00,1d,00,3a,00,00,00,00,00
将此内容保存为x.reg文件,然后双击文件导入注册表。注销或重启电脑即可生效。
Debian 9
在家目录下新建 .Xmodmap 文件,内容如下:
! ! Swap Caps_Lock and Control_L ! remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L
然后在终端中运行:
xmodmap ~/.Xmodmap
如果要自动运行则在 .xinitrc 文件中添加如下内容:
if [ -s ~/.Xmodmap ]; then xmodmap ~/.Xmodmap fi
-- END --