修改键盘码,需要根用户权限,可以写到 /etc/rc.local 中。
/etc/rc.local
交换 Esc 和 Caps Lock
Esc
Caps Lock
loadkeys - <<EOF keycode 1 = Caps_Lock keycode 58 = Escape EOF