1
0
Fork 0

stop programs when DM crashes

This commit is contained in:
Luca Bilke 2022-08-22 20:33:22 +02:00
parent 5aa48efa4a
commit 7d30b53d70
1 changed files with 2 additions and 3 deletions

View File

@ -4,12 +4,11 @@ xrandr --dpi 109 --fb 4480x1633 \
--output HDMI-0 --mode 1920x1080 --pos 0x553
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 picom dunst unclutter pipewire"
autostart="checkup mpd dunst unclutter pipewire"
for program in $autostart; do
pidof -s "$program" || setsid -f "$program"
pidof -s "$program" || "$program" &
done >/dev/null 2>&1
# Ensure that xrdb has finished running before moving on to start the WM/DE.