Windows 10spa
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文件,而後雙擊文件導入註冊表。註銷或重啓電腦便可生效。code
Debian 9blog
在家目錄下新建 .Xmodmap 文件,內容以下:rem
! ! 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
而後在終端中運行:it
xmodmap ~/.Xmodmap
若是要自動運行則在 .xinitrc 文件中添加以下內容:io
if [ -s ~/.Xmodmap ]; then xmodmap ~/.Xmodmap fi
-- END --class