From f47ab40c5ff74b565dd82881a02fd9e569101c3b Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 25 Dec 2020 09:50:21 -0500 Subject: [PATCH] turn off caps lock if on in remaps script --- .local/bin/remaps | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.local/bin/remaps b/.local/bin/remaps index ed6ae43..3cb41e4 100755 --- a/.local/bin/remaps +++ b/.local/bin/remaps @@ -9,3 +9,5 @@ setxkbmap -option caps:super killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' # Map the menu button to right super as well. xmodmap -e 'keycode 135 = Super_R' +# Turn off the caps lock if on since there is no longer a key for it. +xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock