2024-09-02 19:07:19 +02:00
|
|
|
(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"
|
2024-09-02 20:33:22 +02:00
|
|
|
(workspaceWidget)
|
2024-09-02 19:07:19 +02:00
|
|
|
)
|
|
|
|
(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")
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2024-09-02 20:33:22 +02:00
|
|
|
|
|
|
|
(defwidget workspaceWidget []
|
|
|
|
(box
|
|
|
|
:class "workspaces"
|
|
|
|
(for workspace in workspaces
|
|
|
|
(button
|
2024-09-02 22:07:47 +02:00
|
|
|
:class "${workspace.urgent ? "urgent" : ""} ${workspace.focused ? "focused" : 0}"
|
2024-09-02 20:40:47 +02:00
|
|
|
:onclick "swaymsg workspace ${workspace.name}"
|
2024-09-02 22:07:47 +02:00
|
|
|
(label :text "${workspace.name}")
|
2024-09-02 20:33:22 +02:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
(deflisten workspaces
|
|
|
|
:initial "[]"
|
|
|
|
"bar-ws-monitor"
|
|
|
|
)
|