diff options
Diffstat (limited to '.local/bin/remapd')
| -rwxr-xr-x | .local/bin/remapd | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/.local/bin/remapd b/.local/bin/remapd index 14ae239..ee4cf39 100755 --- a/.local/bin/remapd +++ b/.local/bin/remapd @@ -1,10 +1,8 @@ -#!/bin/sh +#!/bin/bash # Rerun the remaps script whenever a new input device is added. while :; do - udevadm monitor -u -t seat -s input -s usb | grep --line-buffer -m1 -P '[^un]bind' - sleep 1 - remaps us:dvorak + remaps + grep -qP -m1 '[^un]bind.+\/[^:]+\(usb\)' <(udevadm monitor -u -t seat -s input -s usb) done - |
