dwm: Only update bar if dwm is running

Fixes an issue where the script would continue to run after
quitting dwm.
This commit is contained in:
Donovan Glover
2024-09-05 18:14:20 -04:00
parent e99b5916db
commit 43230b87b8

View File

@ -218,7 +218,7 @@ in
xsetroot -name " $VOLUME$BATTERY$TIME "
end
while true
while pidof dwm
update_bar
sleep 10s