Merge branch 'patch-1' of https://github.com/ssnailed/voidrice into ssnailed-patch-1
This commit is contained in:
commit
0567be0efe
1 changed files with 6 additions and 4 deletions
|
@ -2,8 +2,10 @@
|
||||||
|
|
||||||
# Rerun the remaps script whenever a new input device is added.
|
# Rerun the remaps script whenever a new input device is added.
|
||||||
|
|
||||||
|
trap "rm -f /tmp/udev_pipe" HUP INT QUIT ILL TRAP BUS TERM
|
||||||
|
mkfifo -m 600 /tmp/udev_pipe
|
||||||
|
udevadm monitor -u -t seat -s input -s usb >>/tmp/udev_pipe &
|
||||||
while :; do
|
while :; do
|
||||||
remaps
|
grep -q "add" /tmp/udev_pipe && grep -q " bind" /tmp/udev_pipe
|
||||||
dmesg -W -f kern | grep "input:" -q
|
remaps us:dvorak
|
||||||
sleep 1
|
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue