summaryrefslogtreecommitdiff
path: root/.local/bin/desktop/remapd
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2024-11-21 13:30:52 +0530
committerVikas Kushwaha <dev@vikas.rocks>2024-11-21 13:30:52 +0530
commit5c916d69d457101326803eb076a746060e3618cf (patch)
treed6fce3256eede1c1bf78fb6a1be75b9cc4b84cee /.local/bin/desktop/remapd
Moved from github
Diffstat (limited to '.local/bin/desktop/remapd')
-rwxr-xr-x.local/bin/desktop/remapd6
1 files changed, 6 insertions, 0 deletions
diff --git a/.local/bin/desktop/remapd b/.local/bin/desktop/remapd
new file mode 100755
index 0000000..851d7d2
--- /dev/null
+++ b/.local/bin/desktop/remapd
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+while :; do
+ remap
+ grep -qP -m1 '[^un]bind.+\/[^:]+\(usb\)' <(udevadm monitor -u -t seat -s input -s usb)
+done