add workspace monitor to bottom bar and remove waybar

This commit is contained in:
Schrottkatze 2024-09-02 20:33:22 +02:00
parent 089740ffaf
commit a9525ec467
Signed by: schrottkatze
SSH key fingerprint: SHA256:hXb3t1vINBFCiDCmhRABHX5ocdbLiKyCdKI4HK2Rbbc
7 changed files with 144 additions and 22 deletions

View file

@ -15,7 +15,7 @@
(centerbox
(box
:halign "start"
(label :text "left")
(workspaceWidget)
)
(box
:halign "center"
@ -39,3 +39,19 @@
)
)
)
(defwidget workspaceWidget []
(box
:class "workspaces"
(for workspace in workspaces
(button
(label :markup "<span foreground=\"${workspace.urgent ? "#ff0000" : "#ffffff"}\" background=\"${workspace.focused ? "#383838" : "#282828"}\">${workspace.name}</span>")
)
)
)
)
(deflisten workspaces
:initial "[]"
"bar-ws-monitor"
)

View file

@ -1,3 +0,0 @@
def main [] {
mut workspaces = waymsg -rt get_workspaces | from json | select name focused urgent;
}