From 96084c74b9622390f774afec407d36eb38e77e9b Mon Sep 17 00:00:00 2001 From: lelgenio Date: Thu, 23 Apr 2020 18:58:49 -0300 Subject: [PATCH] waybar: change from deluge to transmission --- sway/.config/waybar/config | 19 +++++++++---------- sway/.config/waybar/style.css | 6 +++--- 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/sway/.config/waybar/config b/sway/.config/waybar/config index 3b530ae..9bee116 100644 --- a/sway/.config/waybar/config +++ b/sway/.config/waybar/config @@ -1,4 +1,5 @@ { + "layer":"top", "modules-left": [ "sway/workspaces", "sway/window" @@ -13,8 +14,8 @@ "custom/spigot", "tray", "custom/mail", - "custom/delugeD", - "custom/delugeS", + "custom/torrentD", + "custom/torrentS", "custom/updates", "pulseaudio", "network", @@ -141,16 +142,14 @@ "interval":30, "on-click":"terminal spigot console" }, - "custom/delugeD":{ - "format":"{}", - "exec":"timeout 10s deluge-console info | grep '\\[D\\]' | wc -l | sed s/^0\\$//", - "exec-if":"pgrep deluge", + "custom/torrentD":{ + "format":" {} ", + "exec":"transmission-remote -l | tail -n+2 | grep Down | wc -l | sed 's/^0$//'", "interval":180 }, - "custom/delugeS":{ - "format":"{}", - "exec":"timeout 10s deluge-console info | grep '\\[S\\]' | wc -l | sed s/^0\\$//", - "exec-if":"pgrep deluge", + "custom/torrentS":{ + "format":" {} ", + "exec":"transmission-remote -l | grep Seeding| wc -l | sed 's/^0$//'", "interval":180 } diff --git a/sway/.config/waybar/style.css b/sway/.config/waybar/style.css index 053aa13..0c3f96f 100644 --- a/sway/.config/waybar/style.css +++ b/sway/.config/waybar/style.css @@ -44,8 +44,8 @@ window#waybar.empty { #clock, #network, #battery, -#delugeD, -#delugeS, +#torrentD, +#torrentS, #backlight, #pulseaudio, #custom-mail, @@ -54,7 +54,7 @@ window#waybar.empty { #custom-weather { margin: 0 7px; - color: #ffffff; + color: #FFFFFF; opacity:.7; }