1
0
Fork 0
dotfiles/.local/bin/daemons/remapd

9 lines
263 B
Plaintext
Raw Normal View History

2023-02-06 22:22:50 +01:00
#!/bin/sh
2023-02-09 12:14:17 +01:00
trap "rm -f /tmp/udev_pipe" HUP INT QUIT ILL TRAP BUS TERM
mkfifo -m 600 /tmp/udev_pipe
udevadm monitor -u -t seat -s input -s usb >> /tmp/udev_pipe &
2023-02-07 17:19:53 +01:00
while :; do
2023-02-09 12:14:17 +01:00
grep -q "add" /tmp/udev_pipe && grep -q " bind" /tmp/udev_pipe
2023-02-07 17:19:53 +01:00
remaps us:dvorak
2023-02-06 22:22:50 +01:00
done