From 43230b87b8b39a6fbd2f635a96285158353c9b51 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Thu, 5 Sep 2024 18:14:20 -0400 Subject: [PATCH] dwm: Only update bar if dwm is running Fixes an issue where the script would continue to run after quitting dwm. --- home/dwm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/dwm.nix b/home/dwm.nix index 584c81a1..f8b0f436 100644 --- a/home/dwm.nix +++ b/home/dwm.nix @@ -218,7 +218,7 @@ in xsetroot -name " $VOLUME・$BATTERY・$TIME " end - while true + while pidof dwm update_bar sleep 10s