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

18 lines
376 B
Text
Raw Permalink Normal View History

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