summaryrefslogtreecommitdiffstats
path: root/.scripts/i3torrent
diff options
context:
space:
mode:
Diffstat (limited to '.scripts/i3torrent')
-rwxr-xr-x.scripts/i3torrent7
1 files changed, 7 insertions, 0 deletions
diff --git a/.scripts/i3torrent b/.scripts/i3torrent
new file mode 100755
index 0000000..a367649
--- /dev/null
+++ b/.scripts/i3torrent
@@ -0,0 +1,7 @@
+#!/bin/bash
+case $BLOCK_BUTTON in
+ 1) $TERMINAL -e transmission-remote-cli
+esac
+
+transmission-remote -l | grep % | sed -e "s/.*100%.*/Z/g;s/.*Idle.*/A/g;s/.*%.*/M/g" | sort -h | uniq -c | sed -e "s/Z/🌱/g;s/A/⌛️/g;s/M/⬇️/g" | awk '{print $2, $1}' | tr '\n' ' '
+