torrent script added, minor bar changes

This commit is contained in:
Luke Smith
2018-07-04 12:07:05 -04:00
parent d23e18a585
commit 4d28ba01df
3 changed files with 14 additions and 3 deletions

View File

@@ -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"

7
.scripts/i3torrent Executable file
View File

@@ -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' ' '