commit a299cb74c68112b34e607c8c010acc41aecebc9d parent 236a1ca85d83baebba7358c5b897da8d0b6a764e Author: hhvn <dev@hhvn.uk> Date: Sun, 2 Jan 2022 03:43:59 +0000 .s/b/d/dwmbar: cleanup after yourself, dirty script Diffstat:
M | .scripts/bin/dwmbar/dwmbar | | | 14 | ++++++-------- |
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/.scripts/bin/dwmbar/dwmbar b/.scripts/bin/dwmbar/dwmbar @@ -7,6 +7,12 @@ fn block { dwmbar/$1 > /tmp/blocks/$1 & } +fn sigexit { + for (p in $apids) { + kill $p + } +} + block vol while (true) { block bat @@ -21,14 +27,6 @@ while (true) { } & while (true) { - block news - block mail - block rem - block torrent - sleep 20 -} & - -while (true) { block time block net sleep 900