From b7804d5245dad340c9ab0a112bb030163cec3dca Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Thu, 14 May 2020 12:54:43 +0200 Subject: [PATCH] Restore 'torrent' module to 'dbar' script --- .local/bin/scripts/dbar | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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