waybar: change from deluge to transmission

This commit is contained in:
lelgenio 2020-04-23 18:58:49 -03:00
parent f94f1fd0db
commit 96084c74b9
2 changed files with 12 additions and 13 deletions

View file

@ -1,4 +1,5 @@
{ {
"layer":"top",
"modules-left": [ "modules-left": [
"sway/workspaces", "sway/workspaces",
"sway/window" "sway/window"
@ -13,8 +14,8 @@
"custom/spigot", "custom/spigot",
"tray", "tray",
"custom/mail", "custom/mail",
"custom/delugeD", "custom/torrentD",
"custom/delugeS", "custom/torrentS",
"custom/updates", "custom/updates",
"pulseaudio", "pulseaudio",
"network", "network",
@ -141,16 +142,14 @@
"interval":30, "interval":30,
"on-click":"terminal spigot console" "on-click":"terminal spigot console"
}, },
"custom/delugeD":{ "custom/torrentD":{
"format":"{}", "format":" {} ",
"exec":"timeout 10s deluge-console info | grep '\\[D\\]' | wc -l | sed s/^0\\$//", "exec":"transmission-remote -l | tail -n+2 | grep Down | wc -l | sed 's/^0$//'",
"exec-if":"pgrep deluge",
"interval":180 "interval":180
}, },
"custom/delugeS":{ "custom/torrentS":{
"format":"{}", "format":" {} ",
"exec":"timeout 10s deluge-console info | grep '\\[S\\]' | wc -l | sed s/^0\\$//", "exec":"transmission-remote -l | grep Seeding| wc -l | sed 's/^0$//'",
"exec-if":"pgrep deluge",
"interval":180 "interval":180
} }

View file

@ -44,8 +44,8 @@ window#waybar.empty {
#clock, #clock,
#network, #network,
#battery, #battery,
#delugeD, #torrentD,
#delugeS, #torrentS,
#backlight, #backlight,
#pulseaudio, #pulseaudio,
#custom-mail, #custom-mail,
@ -54,7 +54,7 @@ window#waybar.empty {
#custom-weather #custom-weather
{ {
margin: 0 7px; margin: 0 7px;
color: #ffffff; color: #FFFFFF;
opacity:.7; opacity:.7;
} }