summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-07-04 12:07:05 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-07-04 12:07:05 -0400
commit4d28ba01df0a579b0b26af5058e144d02ece5e94 (patch)
tree666b0782e15570cf87dc2cf141a60611b38061b4 /.scripts
parentd23e18a5857f0260433127b78eb1b54f3d8c0970 (diff)
downloadeibhear-4d28ba01df0a579b0b26af5058e144d02ece5e94.tar.gz
eibhear-4d28ba01df0a579b0b26af5058e144d02ece5e94.tar.zst
eibhear-4d28ba01df0a579b0b26af5058e144d02ece5e94.zip
torrent script added, minor bar changes
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/i3pacman2
-rwxr-xr-x.scripts/i3torrent7
2 files changed, 8 insertions, 1 deletions
diff --git a/.scripts/i3pacman b/.scripts/i3pacman
index 02f7136..852c5b7 100755
--- a/.scripts/i3pacman
+++ b/.scripts/i3pacman
@@ -5,4 +5,4 @@ esac
pacman -Qu | wc -l | sed -e '/^0$/d' > ~/.larbs/.pacupgrade && pkill -RTMIN+8 i3blocks
-cat ~/.larbs/.pacupgrade | sed -e "/^$/d;s/^/📦 /g"
+cat ~/.larbs/.pacupgrade | sed -e "/^$/d"
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' ' '
+