add gui workspace switching

This commit is contained in:
Schrottkatze 2024-09-02 20:40:47 +02:00
parent a9525ec467
commit 37a4235e5c
No known key found for this signature in database

View file

@ -45,7 +45,8 @@
:class "workspaces"
(for workspace in workspaces
(button
(label :markup "<span foreground=\"${workspace.urgent ? "#ff0000" : "#ffffff"}\" background=\"${workspace.focused ? "#383838" : "#282828"}\">${workspace.name}</span>")
:onclick "swaymsg workspace ${workspace.name}"
(label :markup "<span foreground=\"${workspace.urgent ? "#ff0000" : "#ffffff"}\" background=\"${workspace.focused ? "#484848" : "#282828"}\">${workspace.name}</span>")
)
)
)