Compare commits

..

No commits in common. "e0331ad0e76dcbcfcc08cb991d9e7f99382517db" and "ca000f5fe458ec45c38eacfe767e27d2422e9114" have entirely different histories.

2 changed files with 6 additions and 5 deletions

View File

@ -1,8 +1,9 @@
#!/bin/bash
#!/bin/sh
# Rerun the remaps script whenever a new input device is added.
while :; do
remaps
grep -qP -m1 '[^un]bind.+\/[^:]+\(usb\)' <(udevadm monitor -u -t seat -s input -s usb)
while : ; do
remaps
dmesg -W -f kern | grep "input:" -q
sleep 1
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.
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.
xset -q | grep -q "Caps Lock:\s*on" && xdotool key Caps_Lock
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock