Enable passing of CLI flags to auto-started programs

This commit is contained in:
Ian Breckenridge 2022-08-21 09:22:32 -04:00 committed by GitHub
parent 771ed98bf6
commit 0b49b72f27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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