Add systray to eww bar
Some checks failed
/ check (push) Has been cancelled

This commit is contained in:
Daniel Flanagan 2024-12-20 11:03:50 -06:00
parent cce109e79d
commit 7078e5b872
3 changed files with 13 additions and 10 deletions

View file

@ -38,7 +38,7 @@ $rosewater: #f5e0dc;
font-size: 12.0pt;
}
.sidestuff slider {
.leftsidestuff slider {
color: $sapphire;
}

View file

@ -1,8 +1,9 @@
(defwidget bar []
(centerbox :orientation "h"
(sidestuff)
(leftsidestuff)
(box)
(music)))
(rightsidestuff)
))
(defwindow bar0
:monitor 0
@ -30,14 +31,16 @@
:anchor "bottom center")
(bar))
(defwidget sidestuff []
(box :class "sidestuff" :orientation "h" :space-evenly false :halign "start" :valign "center" :spacing 10
time
; TODO: indicator/tray/taskbar/toolbar icons and management? (probably should use something standalone?)
; https://github.com/elkowar/eww/issues/111
(defwidget rightsidestuff []
(box :class "rightsidestuff" :orientation "h" :space-evenly false :halign "end" :valign "center" :spacing 10
(music)
(systray)
))
(defwidget leftsidestuff []
(box :class "leftsidestuff" :orientation "h" :space-evenly false :halign "start" :valign "center" :spacing 10
time
; TODO: idle inhibitor?
; TODO: hyprland workspaces?
; TODO: get these to align properly? icons seem lower than they should be?
(box :class "mic" (
box :class {micMuted == "false" ? "live" : "muted"} {micMuted == "false" ? " " : " "}

View file

@ -43,7 +43,7 @@
border-color=${urgent}
[urgency=high]
background-color=${urgent}AA
background-color=${urgent}EE
border-color=${urgent}
text-color=${bg}
'';