rewrite bar-ws-monitor for niri support

This commit is contained in:
Schrottkatze 2025-03-13 17:26:57 +01:00
parent b08b46f4a8
commit c7deaaa048
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
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}")
)
)
)