1
0
Fork 0

fix remapd

This commit is contained in:
Luca Bilke 2023-02-10 00:21:06 +01:00
parent 6780f800e9
commit b6223ca0c0

View file

@ -1,9 +1,5 @@
#!/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 &
#!/bin/bash
while :; do
grep -q "add" /tmp/udev_pipe && grep -q " bind" /tmp/udev_pipe
sleep 0.5
grep -qP -m1 '[^un]bind.+\/[^:]+\(usb\)' <(udevadm monitor -u -t seat -s input -s usb)
remaps us:dvorak
done