From 0683a3844392e6cd99f415ccbdfd89222f363916 Mon Sep 17 00:00:00 2001 From: samedami Date: Fri, 15 May 2020 10:58:05 +0200 Subject: [PATCH] Fix refreshing in 'dbar' --- .local/bin/scripts/dbar | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.local/bin/scripts/dbar b/.local/bin/scripts/dbar index 5798064..3bc22c3 100755 --- a/.local/bin/scripts/dbar +++ b/.local/bin/scripts/dbar @@ -1,9 +1,6 @@ #!/bin/sh sym="|" -[ "$(transmission-remote -l 2>/dev/null | grep %)" ] && - delay="10s" || delay="1m" - echo "$$" > "$HOME/.cache/dbar.pid" cd "$HOME/.local/bin/scripts/dwmbar/" || exit 1 @@ -25,6 +22,9 @@ EOF } while :; do + [ "$(transmission-remote -l 2>/dev/null | grep %)" ] && + delay="10s" || delay="1m" + xsetroot -name " $(status | tr '\n' ' ')" sleep "$delay"