2023-02-09 16:52:47 +00:00
|
|
|
#!/bin/bash
|
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:52:47 +00:00
|
|
|
remaps
|
|
|
|
grep -qP -m1 '[^un]bind.+\/[^:]+\(usb\)' <(udevadm monitor -u -t seat -s input -s usb)
|
2023-02-06 21:15:02 +00:00
|
|
|
done
|