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
1 changed files with 2 additions and 2 deletions

View File

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