Fix refreshing in 'dbar'
This commit is contained in:
parent
c33b6cb788
commit
6bf4fb12f7
@ -1,9 +1,6 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
sym="|"
|
sym="|"
|
||||||
[ "$(transmission-remote -l 2>/dev/null | grep %)" ] &&
|
|
||||||
delay="10s" || delay="1m"
|
|
||||||
|
|
||||||
echo "$$" > "$HOME/.cache/dbar.pid"
|
echo "$$" > "$HOME/.cache/dbar.pid"
|
||||||
|
|
||||||
cd "$HOME/.local/bin/scripts/dwmbar/" || exit 1
|
cd "$HOME/.local/bin/scripts/dwmbar/" || exit 1
|
||||||
@ -25,6 +22,9 @@ EOF
|
|||||||
}
|
}
|
||||||
|
|
||||||
while :; do
|
while :; do
|
||||||
|
[ "$(transmission-remote -l 2>/dev/null | grep %)" ] &&
|
||||||
|
delay="10s" || delay="1m"
|
||||||
|
|
||||||
xsetroot -name " $(status | tr '\n' ' ')"
|
xsetroot -name " $(status | tr '\n' ' ')"
|
||||||
|
|
||||||
sleep "$delay"
|
sleep "$delay"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user