Merge branch 'ssnailed-patch-1'

This commit is contained in:
Luke Smith 2023-02-09 11:52:55 -05:00
commit c5f4c6c9f4
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
2 changed files with 5 additions and 6 deletions

View file

@ -1,9 +1,8 @@
#!/bin/sh #!/bin/bash
# Rerun the remaps script whenever a new input device is added. # Rerun the remaps script whenever a new input device is added.
while :; do while :; do
remaps remaps
dmesg -W -f kern | grep "input:" -q grep -qP -m1 '[^un]bind.+\/[^:]+\(usb\)' <(udevadm monitor -u -t seat -s input -s usb)
sleep 1
done done

View file

@ -8,4 +8,4 @@ setxkbmap -option caps:super,altwin:menu_win
# When caps lock is pressed only once, treat it as escape. # When caps lock is pressed only once, treat it as escape.
killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape' killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
# Turn off caps lock if on since there is no longer a key for it. # Turn off caps lock if on since there is no longer a key for it.
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock xset -q | grep -q "Caps Lock:\s*on" && xdotool key Caps_Lock