feat: DWM start script envvars

This commit is contained in:
Strix 2023-10-14 22:38:10 +02:00
parent 2d48daa04a
commit f682608421
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -1,5 +1,7 @@
#!/bin/sh #!/bin/sh
LITE=${LITE:-no}
xsetroot -solid black xsetroot -solid black
#while loop to update statusbar with some goodies #while loop to update statusbar with some goodies
@ -23,15 +25,15 @@ while true; do
sleep 1 sleep 1
done & done &
nm-applet &
flameshot &
feh -z -Z --bg-scale $HOME/Pictures/background.* feh -z -Z --bg-scale $HOME/Pictures/background.*
start_apps() { start_apps() {
nm-applet &
flameshot &
discord & discord &
firefox & firefox &
} }
(sleep 1 && start_apps) & [ "$LITE" = "yes" ] || (sleep 1 && start_apps) &
exec dwm >/dev/null [ "${NO_DWM:-no}" = "yes" ] || exec dwm >/dev/null