Merge branch 'ssnailed-master'

This commit is contained in:
Luke Smith 2023-02-06 18:19:20 -05:00
commit c55a896653
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252
3 changed files with 11 additions and 2 deletions

View file

@ -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 #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 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 for program in $autostart; do
pidof -s "$program" || "$program" & pidof -s "$program" || "$program" &

View file

@ -58,7 +58,6 @@ onescreen() { # If only one output available or chosen.
postrun() { # Stuff to run to clean up. postrun() { # Stuff to run to clean up.
setbg # Fix background if screen size/arangement has changed. setbg # Fix background if screen size/arangement has changed.
remaps # Re-remap keys if keyboard added (for laptop bases)
{ killall dunst ; setsid -f dunst ;} >/dev/null 2>&1 # Restart dunst to ensure proper location on screen { killall dunst ; setsid -f dunst ;} >/dev/null 2>&1 # Restart dunst to ensure proper location on screen
} }

10
.local/bin/remapd Normal file
View file

@ -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