diff --git a/.local/bin/scripts/dbar b/.local/bin/scripts/dbar index d0adf93..e687e18 100755 --- a/.local/bin/scripts/dbar +++ b/.local/bin/scripts/dbar @@ -1,8 +1,8 @@ #!/bin/sh sym="|" -# [ "$(transmission-remote -l | grep %)" ] && delay="10s" || delay="1m" -delay="1m" +[ "$(transmission-remote -l 2>/dev/null | grep %)" ] && + delay="10s" || delay="1m" echo "$$" > "$HOME/.cache/dbar.pid" @@ -10,6 +10,7 @@ cd "$HOME/.local/bin/scripts/dwmbar/" || exit 1 status() { cat << EOF +$(./torrent) $sym $(./disk) $sym $(./internet) $sym $(./lamp) $sym