2023-02-06 21:15:02 +00:00
|
|
|
#!/bin/sh
|
2023-02-06 23:19:09 +00:00
|
|
|
|
2023-02-07 01:45:11 +00:00
|
|
|
# Rerun the remaps script whenever a new input device is added.
|
2023-02-06 23:19:09 +00:00
|
|
|
|
2023-02-09 14:39:31 +00:00
|
|
|
trap "rm -f /tmp/udev_pipe; exit" HUP INT QUIT ILL TRAP BUS TERM
|
2023-02-09 09:23:22 +00:00
|
|
|
mkfifo -m 600 /tmp/udev_pipe
|
|
|
|
udevadm monitor -u -t seat -s input -s usb >>/tmp/udev_pipe &
|
|
|
|
while :; do
|
|
|
|
grep -q "add" /tmp/udev_pipe && grep -q " bind" /tmp/udev_pipe
|
|
|
|
remaps us:dvorak
|
2023-02-06 21:15:02 +00:00
|
|
|
done
|