From 6f7692cd1d95a0243d9f0de1d8716b2cd4e591fc Mon Sep 17 00:00:00 2001 From: rydesun Date: Fri, 5 Feb 2021 23:02:14 +0800 Subject: [PATCH] Fix glitch of X11 keymap --- .config/X11/profile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.config/X11/profile b/.config/X11/profile index af132d4..e8a8e24 100644 --- a/.config/X11/profile +++ b/.config/X11/profile @@ -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 +) &