CapsLk映射Esc

windows

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,02,00,00,00,01,00,3a,00,00,00,00,00

将以上内容复制到reg后缀的文件中, 双击, 然后重启电脑即可

ubuntu

echo '/usr/bin/setxkbmap -option "caps:escape"' >> ~/.profile