Fix refreshing in 'dbar'

This commit is contained in:
Wiktor Zykubek 2020-05-15 10:58:05 +02:00
parent c33b6cb788
commit 6bf4fb12f7

View File

@ -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"