mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-22 20:55:59 +01:00
Fix for eww listeners not updating properly
I've noticed the listeners do not update while their values are only present in the class attribute, so either the scripts would have to be merged to one output or one can use a hidden element like this to keep the variables updated. For further context see [this issue on eww](https://github.com/elkowar/eww/issues/669)
This commit is contained in:
parent
23397a424b
commit
173e9de30e
1 changed files with 2 additions and 1 deletions
|
@ -89,6 +89,7 @@ This widget displays a list of workspaces 1-10. Each workspace can be clicked on
|
|||
(defwidget workspaces []
|
||||
(eventbox :onscroll "bash ~/.config/eww/scripts/change-active-workspace {} ${current_workspace}" :class "workspaces-widget"
|
||||
(box :space-evenly true
|
||||
(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"}"
|
||||
|
@ -202,4 +203,4 @@ To activate blur, set `blurls=NAMESPACE` in your hyprland configuration, where `
|
|||
"namespace": "namespace name"
|
||||
}
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue