nix-configs/modules/desktop-environment/home/panels/eww/configDir/bottomBar/bottomBar.yuck

58 lines
1.3 KiB
Text

(defwindow bottomBar
:monitor 0
:stacking "fg"
:wm-ignore true
:exclusive true
:geometry (geometry
:width "100%"
:height "32px"
:anchor "bottom center")
(bottomBar))
(defwidget bottomBar []
(overlay
:class "bottomBar"
(centerbox
(box
:halign "start"
(workspaceWidget)
)
(box
:halign "center"
(label :text "mid")
)
(box
:halign "end"
(label :text "right")
)
)
(box
:class "lesbianFlag"
:height 1
( flagEl :flipped true :color "#D52D00")
( flagEl :flipped true :color "#EF7627")
( flagEl :flipped true :color "#FF9A56")
( flagEl :flipped true :color "#FFFFFF")
( flagEl :flipped true :color "#D162A4")
( flagEl :flipped true :color "#B55690")
( flagEl :flipped true :color "#A30262")
)
)
)
(defwidget workspaceWidget []
(box
:class "workspaces"
(for workspace in workspaces
(button
:onclick "swaymsg workspace ${workspace.name}"
(label :markup "<span foreground=\"${workspace.urgent ? "#ff0000" : "#ffffff"}\" background=\"${workspace.focused ? "#484848" : "#282828"}\">${workspace.name}</span>")
)
)
)
)
(deflisten workspaces
:initial "[]"
"bar-ws-monitor"
)