torrent script added, minor bar changes
This commit is contained in:
parent
d23e18a585
commit
4d28ba01df
3 changed files with 14 additions and 3 deletions
|
@ -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]
|
||||
|
|
|
@ -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
7
.scripts/i3torrent
Executable 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' ' '
|
||||
|
Loading…
Reference in a new issue