修改鍵位爲colemak——archlinux

Change keyboard layout as colemak, and <Esc> with <CapsLock>

TLDR

# /etc/vconsole.conf
KEYMAP = colemak

# /usr/share/X11/xkb/keycodes/evdev
# exchange the keycodes of <esc> and <capslock>

change to colemak

In tty mode(include graphic)

# temporary
loadskeys colemak

# permanet
/etc/vconsole.conf
KEYMAP = colemak

In graphic mode

參考

# temporary
setxkbmap us -variant colemak
setxkbmap us -variant workman
setxkbmap us -variant norman
setxkbmap us
setxkbmap -layout us colemak

# permanet
# write the above to graphic config file
# like ~/.xinitrc

map Esc with CapsLock

setxkbmap us -variant colemak
xmodmap -pke > .xmodmap

show what key doing event test, change esc and capslock

xev

add the following to i3

exec_always sleep 1; xmodmap ~/.xmodmap

however i3 has something wrong, I need xmodmap by myself

# /usr/share/X11/xkb/keycodes/evdev
# exchange the keycodes of <esc> and <capslock>
# ubuntu
sudo dpkg-reconfigure keyboard-configuration
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章