From 6d75bbdf8c3adea29468328425798d2fa2ab4928 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Mon, 6 Feb 2023 20:45:11 -0500 Subject: [PATCH] remaps run by remapd automatically on startup --- .config/x11/xprofile | 1 - .local/bin/remapd | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.config/x11/xprofile b/.config/x11/xprofile index affa8de..1d63fd2 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -6,7 +6,6 @@ xrandr --dpi 96 # Set DPI. User may want to use a larger number for larger screens. 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 remapd" diff --git a/.local/bin/remapd b/.local/bin/remapd index 4ce32b3..cf67428 100644 --- a/.local/bin/remapd +++ b/.local/bin/remapd @@ -1,10 +1,9 @@ #!/bin/sh -# Rerun the remaps script whenever a new input device is added. Run by the -# xprofile by default. +# Rerun the remaps script whenever a new input device is added. while : ; do + remaps dmesg -W -f kern | grep "input:" -q sleep 1 - remaps done