10 lines
277 B
Bash
Executable File
10 lines
277 B
Bash
Executable File
#!/bin/sh
|
|
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 &
|
|
while :; do
|
|
grep -q "add" /tmp/udev_pipe && grep -q " bind" /tmp/udev_pipe
|
|
sleep 0.5
|
|
remaps us:dvorak
|
|
done
|