Status-Bars: fix workspaces eww widget class (#777)

fix the workspaces eww widget code example so "current" class actually works
This commit is contained in:
xploien 2024-09-14 05:22:59 -06:00 committed by GitHub
parent 090e0edc99
commit 5342dfa2f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,8 +123,8 @@ workspaces. It requires [bash](https://linux.die.net/man/1/bash),
(label :text "${workspaces}${current_workspace}" :visible false)
(for workspace in workspaces
(eventbox :onclick "hyprctl dispatch workspace ${workspace.id}"
(box :class "workspace-entry ${workspace.id == current_workspace ? "current" : ""} ${workspace.windows > 0 ? "occupied" : "empty"}"
(label :text "${workspace.id}")
(box :class "workspace-entry ${workspace.windows > 0 ? "occupied" : "empty"}"
(label :text "${workspace.id}" :class "workspace-entry ${workspace.id == current_workspace ? "current" : ""}" )
)
)
)