commit eac840c1f30129296340e2bdca5e9f6339a730c4 parent beff6e2a511470088c62e5e06253bfc0b62e5f15 Author: Giovanni Amaral <giovanni@giovanniamaral.com> Date: Fri, 7 Aug 2026 19:22:13 -0300 Add sb-torrent script Diffstat:
| A | .local/bin/sb-torrent | | | 11 | +++++++++++ |
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git a/.local/bin/sb-torrent b/.local/bin/sb-torrent @@ -0,0 +1,11 @@ +#!/bin/sh + +transmission-remote -l | grep % | + sed " # The letters are for sorting and will not appear. + s/.*Stopped.*/A 🛑/; + s/.*Seeding.*/Z 🌱/; + s/.*100%.*/N ✅/; + s/.*Idle.*/B 🕰️/; + s/.*Uploading.*/L ⬆️/; + s/.*%.*/M ⬇️/" | + sort -h | uniq -c | awk '{print $3, $1}' | paste -sd ' ' -