dotfiles/.local/bin/remapd

9 lines
191 B
Plaintext
Raw Normal View History

2023-10-12 15:12:12 +02:00
#!/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