summaryrefslogtreecommitdiffstats
path: root/.local/bin/remapd
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/remapd')
-rw-r--r--.local/bin/remapd10
1 files changed, 10 insertions, 0 deletions
diff --git a/.local/bin/remapd b/.local/bin/remapd
new file mode 100644
index 0000000..4ce32b3
--- /dev/null
+++ b/.local/bin/remapd
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Rerun the remaps script whenever a new input device is added. Run by the
+# xprofile by default.
+
+while : ; do
+ dmesg -W -f kern | grep "input:" -q
+ sleep 1
+ remaps
+done