diff --git a/.config/x11/xprofile b/.config/x11/xprofile index 0e226282..9d5a3cb4 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -8,10 +8,14 @@ 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" - -for program in $autostart; do - pidof -s "$program" || "$program" & +autostart="mpd +xcompmgr +dunst +unclutter +pipewire +" +printf "%s" "$autostart" | while IFS="" read -r program; do + pgrep -fl "$program" || $program & done >/dev/null 2>&1 # Ensure that xrdb has finished running before moving on to start the WM/DE.