summaryrefslogtreecommitdiffstats
path: root/.local/bin/remapd
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-02-09 11:51:29 -0500
committerLuke Smith <luke@lukesmith.xyz>2023-02-09 11:51:29 -0500
commit9bf90a1b7287313ff06eaf8f98cb7070af2e4142 (patch)
tree9fa0a5b57f9695b9b9f93c52a6e401177202b1e5 /.local/bin/remapd
parent505d86c8483fe4ca45fd0dce381129b112728dac (diff)
parent457539c043cc8645eb75e92ff6b0f31182b114d7 (diff)
downloadeibhear-9bf90a1b7287313ff06eaf8f98cb7070af2e4142.tar.gz
eibhear-9bf90a1b7287313ff06eaf8f98cb7070af2e4142.tar.zst
eibhear-9bf90a1b7287313ff06eaf8f98cb7070af2e4142.zip
Merge branch 'patch-1' of https://github.com/ssnailed/voidrice into ssnailed-patch-1
Diffstat (limited to '.local/bin/remapd')
-rwxr-xr-x.local/bin/remapd7
1 files changed, 3 insertions, 4 deletions
diff --git a/.local/bin/remapd b/.local/bin/remapd
index 2d87eae..14ae239 100755
--- a/.local/bin/remapd
+++ b/.local/bin/remapd
@@ -2,10 +2,9 @@
# Rerun the remaps script whenever a new input device is added.
-trap "rm -f /tmp/udev_pipe; exit" 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
+ udevadm monitor -u -t seat -s input -s usb | grep --line-buffer -m1 -P '[^un]bind'
+ sleep 1
remaps us:dvorak
done
+