gnome

키보드 ctrl capslock 위치 변경

$ gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:swapcaps']"

i3

마우스 휠 반전 /etc/X11/xorg.conf.d/30-touchpad.conf

Section "InputClass"
        Identifier "touchpad"
        MatchIsTouchpad "on"
        Option "NaturalScrolling" "true"
EndSection

키보드 ctrl capslock 위치 변경 cat /etc/X11/xorg.conf.d/00-keyboard.conf

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "kr"
        Option "XkbOptions" "ctrl:swapcaps"
EndSection

console

키보드 ctrl capslock 위치 변경

$ dumpkeys > backup.kmap
$ showkey
$ dumpkeys | head -1 > ctrl-swapcaps.kmap
$ cat << EOF >> ctrl-swapcaps.kmp
keycode 29 = Caps_Lock
keycode 58 = Control
EOF
# loadkeys ctrl-swapcaps.kmp

참고: