From 5342dfa2f8b723f8fdae5cac86db8cbf800617a8 Mon Sep 17 00:00:00 2001 From: xploien <84977515+xploien@users.noreply.github.com> Date: Sat, 14 Sep 2024 05:22:59 -0600 Subject: [PATCH] Status-Bars: fix workspaces eww widget class (#777) fix the workspaces eww widget code example so "current" class actually works --- pages/Useful Utilities/Status-Bars.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/Useful Utilities/Status-Bars.md b/pages/Useful Utilities/Status-Bars.md index df2bf6d..66e55e7 100644 --- a/pages/Useful Utilities/Status-Bars.md +++ b/pages/Useful Utilities/Status-Bars.md @@ -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" : ""}" ) ) ) )