~kris/dots

srice

ref: e2d8c870015e8c9112982127fc30507e985de396 srice/.local/bin/remapd -rwxr-xr-x 191 bytes
e2d8c870 — Kris Yotam Initial commit: dotfiles from lazykris 7 months ago
                                                                                
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