dotfiles

Luke's GNU/Linux dotfiles for i3, vim, ranger, bash, mpd, etc.
git clone git@git.lukesmith.xyz:dotfiles
Log | Files | Refs | README | LICENSE

commit 4d28ba01df0a579b0b26af5058e144d02ece5e94
parent d23e18a5857f0260433127b78eb1b54f3d8c0970
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Wed,  4 Jul 2018 12:07:05 -0400

torrent script added, minor bar changes

Diffstat:
M.config/i3blocks/config | 8++++++--
M.scripts/i3pacman | 2+-
A.scripts/i3torrent | 7+++++++
3 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/.config/i3blocks/config b/.config/i3blocks/config @@ -11,14 +11,19 @@ signal=9 label=🎼 command=i3mpd interval=once -align=left signal=11 [pacman] +label=📦 command=i3pacman interval=once signal=8 +#[torrents] +#command=i3torrent +#interval=20 +#signal=7 + [weather] command=i3weather interval=3600 @@ -27,7 +32,6 @@ interval=3600 label=📬 command=i3mail interval=180 -align=left signal=12 [volume] diff --git 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 @@ -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' ' ' +