rewrite bar-ws-monitor for niri support

This commit is contained in:
Schrottkatze 2025-03-13 17:26:57 +01:00
commit c7deaaa048
No known key found for this signature in database
4 changed files with 107 additions and 75 deletions

View file

@ -3,9 +3,10 @@
:class "workspaces"
(for workspace in workspaces
(button
:class "${workspace.urgent ? "urgent" : ""} ${workspace.focused ? "focused" : 0}"
:style "border-bottom: 4px solid ${workspace.color}"
:class "${workspace.active ? "focused" : 0}"
:onclick "swaymsg workspace ${workspace.name}"
(label :text "${workspace.name}")
(label :text "${workspace.idx}")
)
)
)