From 0b49b72f2725c83073e6270a54cd67e0a3cc44d5 Mon Sep 17 00:00:00 2001 From: Ian Breckenridge <62034540+i13e@users.noreply.github.com> Date: Sun, 21 Aug 2022 09:22:32 -0400 Subject: [PATCH] Enable passing of CLI flags to auto-started programs --- .config/x11/xprofile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) 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.