voidrice/.local/bin/remapd
2023-02-09 11:52:47 -05:00

8 lines
191 B
Bash
Executable file

#!/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