mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-08 06:25:58 +01:00
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:
parent
090e0edc99
commit
5342dfa2f8
1 changed files with 2 additions and 2 deletions
|
@ -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" : ""}" )
|
||||
)
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue