Fix glitch of X11 keymap

This commit is contained in:
rydesun 2021-02-05 23:02:14 +08:00
parent fb0d570b95
commit 6f7692cd1d

View file

@ -1,7 +1,10 @@
export LANG=zh_CN.UTF-8
# swap Caps_Lock and Escape
setxkbmap -option caps:swapescape
# swap Ctrl_R and Alt_R
setxkbmap -option ctrl:rctrl_ralt
setxkbmap -option ctrl:ralt_rctrl
(
sleep 2
# swap Caps_Lock and Escape
setxkbmap -option caps:swapescape
# swap Ctrl_R and Alt_R
setxkbmap -option ctrl:rctrl_ralt
setxkbmap -option ctrl:ralt_rctrl
) &