nix-configs/modules/desktop-environment/home/panels/eww/configDir/bottomBar/workspaces.yuck

18 lines
376 B
Plaintext
Raw Permalink Normal View History

2024-09-10 22:07:27 +02:00
(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"
)