blob: ee4cf396e70fc9bc16c865477cd40ee780dbfde7 (
plain)
1
2
3
4
5
6
7
8
|
#!/bin/bash
# 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)
done
|