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 09:23:22 +00:00
|
|
|
while :; do
|
2023-02-09 16:11:16 +00:00
|
|
|
udevadm monitor -u -t seat -s input -s usb | grep --line-buffer -m1 -P '[^un]bind'
|
|
|
|
sleep 1
|
2023-02-09 09:23:22 +00:00
|
|
|
remaps us:dvorak
|
2023-02-06 21:15:02 +00:00
|
|
|
done
|
2023-02-09 16:11:16 +00:00
|
|
|
|