Restore 'torrent' module to 'dbar' script

This commit is contained in:
samedamci 2020-05-14 12:54:43 +02:00
parent 229fe03b3e
commit e419bac4f6
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894

View File

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