diff --git a/de/home/.config/eww/eww.scss b/de/home/.config/eww/eww.scss index b4357bf..5939924 100644 --- a/de/home/.config/eww/eww.scss +++ b/de/home/.config/eww/eww.scss @@ -53,15 +53,12 @@ circular-progress { border-left: 2px solid $color1; } .rightgroup>label, +.rightgroup>button, .systray { background-color: $color9; border: 2px solid $color1; color: $color0; - margin: 0px 0px; padding: 2px; -} -.rightgroup>label, -.systray { border-radius: 8px; margin: 0px 2px; } diff --git a/de/home/.config/eww/eww.yuck b/de/home/.config/eww/eww.yuck index c9a5933..f2970a1 100644 --- a/de/home/.config/eww/eww.yuck +++ b/de/home/.config/eww/eww.yuck @@ -6,10 +6,10 @@ (defwidget rightgroup [] (box :class "rightgroup" :orientation "h" :space-evenly false :halign "end" - "  " - "🖧 " - " " - " " + (idleinhibit) + (network) + (vpn) + (bluetooth) (sysdisk) (sysmem) {formattime(EWW_TIME,"%b %d, %Y %H:%M")} @@ -29,6 +29,26 @@ :class {entry.focused ? "focused" : ""} `${replace(entry.name,".*:","")}`)))) +(defwidget network [] + (button :onclick 'nm-connection-editor' + "🖧")) + +(defwidget bluetooth [] + (button :onclick 'blueman-manager' + "")) + +(defvar inhibit_active false) +(defwidget idleinhibit [] + (button :onclick 'notify-send "test"' + :class {inhibit_active ? "active" : ""} + {inhibit_active ? "" : ""})) + +(defvar vpn_active false) +(defwidget vpn [] + (button :onclick 'notify-send "test"' + :class {vpn_active ? "active" : ""} + {vpn_active ? "" : ""})) + (defwidget systemtray [] (systray :class "systray"