2020-02-08 23:43:37 +00:00
|
|
|
#!/bin/sh
|
2019-11-23 21:23:24 +00:00
|
|
|
|
|
|
|
transmission-remote -l | grep % |
|
2020-09-25 15:41:55 +00:00
|
|
|
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 ⬇️/" |
|
2020-12-01 23:21:03 +00:00
|
|
|
sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -
|
2019-11-23 21:23:24 +00:00
|
|
|
|
|
|
|
case $BLOCK_BUTTON in
|
2023-10-04 20:01:05 +00:00
|
|
|
1) setsid -f "$TERMINAL" -e stig ;;
|
2020-05-07 21:31:42 +00:00
|
|
|
2) td-toggle ;;
|
2023-10-04 20:01:05 +00:00
|
|
|
3) notify-send "🌱 Torrent module" "\- Left click to open stig.
|
2020-05-07 21:31:42 +00:00
|
|
|
- Middle click to toggle transmission.
|
|
|
|
- Shift click to edit script.
|
|
|
|
Module shows number of torrents:
|
|
|
|
🛑: paused
|
|
|
|
🕰: idle (seeds needed)
|
2019-11-23 21:23:24 +00:00
|
|
|
🔼: uploading (unfinished)
|
|
|
|
🔽: downloading
|
|
|
|
✅: done
|
|
|
|
🌱: done and seeding" ;;
|
2023-12-30 17:04:51 +00:00
|
|
|
6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
|
2019-11-23 21:23:24 +00:00
|
|
|
esac
|