mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-12-24 01:55:51 +01:00
17 lines
376 B
Text
17 lines
376 B
Text
(defwidget workspaceWidget []
|
|
(box
|
|
:class "workspaces"
|
|
(for workspace in workspaces
|
|
(button
|
|
:class "${workspace.urgent ? "urgent" : ""} ${workspace.focused ? "focused" : 0}"
|
|
:onclick "swaymsg workspace ${workspace.name}"
|
|
(label :text "${workspace.name}")
|
|
)
|
|
)
|
|
)
|
|
)
|
|
|
|
(deflisten workspaces
|
|
:initial "[]"
|
|
"bar-ws-monitor"
|
|
)
|