diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2023-02-09 11:52:55 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2023-02-09 11:52:55 -0500 |
| commit | c5f4c6c9f4e0f5c74b0475fba1dfec7635318d9d (patch) | |
| tree | 3091958c734cb8d92119c41429542e7cf97ac8d5 /.local/bin/remapd | |
| parent | a4784f9faa9a94d7411d14da113f58e54c8f82e2 (diff) | |
| parent | 88477d849770561382157667e8d804e3ed8addfc (diff) | |
| download | eibhear-c5f4c6c9f4e0f5c74b0475fba1dfec7635318d9d.tar.gz eibhear-c5f4c6c9f4e0f5c74b0475fba1dfec7635318d9d.tar.zst eibhear-c5f4c6c9f4e0f5c74b0475fba1dfec7635318d9d.zip | |
Merge branch 'ssnailed-patch-1'
Diffstat (limited to '.local/bin/remapd')
| -rwxr-xr-x | .local/bin/remapd | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/.local/bin/remapd b/.local/bin/remapd index cf67428..ee4cf39 100755 --- a/.local/bin/remapd +++ b/.local/bin/remapd @@ -1,9 +1,8 @@ -#!/bin/sh +#!/bin/bash # Rerun the remaps script whenever a new input device is added. -while : ; do - remaps - dmesg -W -f kern | grep "input:" -q - sleep 1 +while :; do + remaps + grep -qP -m1 '[^un]bind.+\/[^:]+\(usb\)' <(udevadm monitor -u -t seat -s input -s usb) done |
