diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2023-02-09 11:52:47 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2023-02-09 11:52:47 -0500 |
| commit | 88477d849770561382157667e8d804e3ed8addfc (patch) | |
| tree | 3091958c734cb8d92119c41429542e7cf97ac8d5 /.local/bin/remapd | |
| parent | 9bf90a1b7287313ff06eaf8f98cb7070af2e4142 (diff) | |
| download | eibhear-88477d849770561382157667e8d804e3ed8addfc.tar.gz eibhear-88477d849770561382157667e8d804e3ed8addfc.tar.zst eibhear-88477d849770561382157667e8d804e3ed8addfc.zip | |
use bash procsub
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 - |
