From 173e9de30e24d4400d90e0822d2500de6852139e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthis=20K=C3=A4lble?= <69082876+matthis-k@users.noreply.github.com> Date: Sat, 4 Mar 2023 15:49:21 +0100 Subject: [PATCH] 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) --- pages/Useful Utilities/Status-Bars.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/Useful Utilities/Status-Bars.md b/pages/Useful Utilities/Status-Bars.md index fd6be8a..4541e22 100644 --- a/pages/Useful Utilities/Status-Bars.md +++ b/pages/Useful Utilities/Status-Bars.md @@ -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" } } -``` \ No newline at end of file +```