From 7d30b53d708abaefae946eb4d10cd600477d1983 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Mon, 22 Aug 2022 20:33:22 +0200 Subject: [PATCH] stop programs when DM crashes --- .config/x11/xprofile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.config/x11/xprofile b/.config/x11/xprofile index aab61b817..4b19949b9 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -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.