summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.config/x11/xprofile2
-rw-r--r--.local/bin/remapd6
2 files changed, 7 insertions, 1 deletions
diff --git a/.config/x11/xprofile b/.config/x11/xprofile
index 0e22628..affa8de 100755
--- a/.config/x11/xprofile
+++ b/.config/x11/xprofile
@@ -8,7 +8,7 @@ setbg & # set the background with the `setbg` script
#xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! # Uncomment to use Xresources colors/settings on startup
remaps & # run the remaps script, switching caps/esc and more; check it for more info
-autostart="mpd xcompmgr dunst unclutter pipewire"
+autostart="mpd xcompmgr dunst unclutter pipewire remapd"
for program in $autostart; do
pidof -s "$program" || "$program" &
diff --git a/.local/bin/remapd b/.local/bin/remapd
new file mode 100644
index 0000000..93a23f6
--- /dev/null
+++ b/.local/bin/remapd
@@ -0,0 +1,6 @@
+#!/bin/sh
+while : ; do
+ dmesg -W -f kern | grep "input:" -q
+ sleep 1
+ remaps
+done