From f6826084212d3e1c3e0b8e6441e460f61566cbbc Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:38:10 +0200 Subject: [PATCH] feat: DWM start script envvars --- files/dwm/dwm-start.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/files/dwm/dwm-start.sh b/files/dwm/dwm-start.sh index 4faedf2..5243da3 100755 --- a/files/dwm/dwm-start.sh +++ b/files/dwm/dwm-start.sh @@ -1,5 +1,7 @@ #!/bin/sh +LITE=${LITE:-no} + xsetroot -solid black #while loop to update statusbar with some goodies @@ -23,15 +25,15 @@ while true; do sleep 1 done & -nm-applet & -flameshot & feh -z -Z --bg-scale $HOME/Pictures/background.* start_apps() { + nm-applet & + flameshot & discord & firefox & } -(sleep 1 && start_apps) & +[ "$LITE" = "yes" ] || (sleep 1 && start_apps) & -exec dwm >/dev/null +[ "${NO_DWM:-no}" = "yes" ] || exec dwm >/dev/null