diff options
Diffstat (limited to 'ar/.local/bin/statusbar')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-torrent | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ar/.local/bin/statusbar/sb-torrent b/ar/.local/bin/statusbar/sb-torrent index 79da88d..ec104b4 100755 --- a/ar/.local/bin/statusbar/sb-torrent +++ b/ar/.local/bin/statusbar/sb-torrent @@ -7,13 +7,14 @@ status=$(transmission-remote -l | grep % | s/.*100%.*/N ✅/; s/.*Idle.*/B 🕰️/; s/.*Uploading.*/L 🔼/; - s/.*%.*/M 🔽/" | + s/.*Downloading.*/M 🔽/; + s/.*%.*/Q ❓/" | sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -) if [ -z "$status" ]; then - echo "$status" -else pidof transmission-daemon >/dev/null && echo "🌲" +else + echo "$status" fi case $BLOCK_BUTTON in |
