summaryrefslogtreecommitdiffstats
path: root/.scripts/i3torrent
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-10-06 10:42:59 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-10-06 10:42:59 -0400
commit9426de7490bd867261829cf29410a1ff3288a7c2 (patch)
tree0eba1a1e185513c7adad8c6506032f3735607ded /.scripts/i3torrent
parent6083bc4d3fb8f1b43d58d65202eb299fa19b9b1b (diff)
downloadeibhear-9426de7490bd867261829cf29410a1ff3288a7c2.tar.gz
eibhear-9426de7490bd867261829cf29410a1ff3288a7c2.tar.zst
eibhear-9426de7490bd867261829cf29410a1ff3288a7c2.zip
torrent script icon change and reorder
Diffstat (limited to '.scripts/i3torrent')
-rwxr-xr-x.scripts/i3torrent5
1 files changed, 2 insertions, 3 deletions
diff --git a/.scripts/i3torrent b/.scripts/i3torrent
index a367649..603ff01 100755
--- a/.scripts/i3torrent
+++ b/.scripts/i3torrent
@@ -1,7 +1,6 @@
-#!/bin/bash
+#!/bin/sh
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' ' '
-
+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/M/⬇️/g;s/A/⌛️/g" | awk '{print $2, $1}' | tr '\n' ' ' | sed -e "s/ $//g"