mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-23 13:44:42 +01:00
18 lines
376 B
Plaintext
18 lines
376 B
Plaintext
|
(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"
|
||
|
)
|