From 9ad9d2c4d7571c324b937cafe9435b0e6d711a44 Mon Sep 17 00:00:00 2001 From: Michael Bradley Date: Wed, 1 Jan 2025 00:05:50 +1300 Subject: [PATCH] Fix EWW workspace order --- eww/scripts/get-workspaces | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eww/scripts/get-workspaces b/eww/scripts/get-workspaces index 5190179..b2ef864 100755 --- a/eww/scripts/get-workspaces +++ b/eww/scripts/get-workspaces @@ -4,7 +4,7 @@ spaces (){ ACTIVE_ID="$(hyprctl activeworkspace -j | jq -Mc '.id')" - WORKSPACES="$(hyprctl workspaces -j | jq -Mc 'sort_by(.name)')" + WORKSPACES="$(hyprctl workspaces -j | jq -Mc 'sort_by(.id)')" FIRSTS="$(echo "$WORKSPACES" | jq -Mc 'group_by(.monitor) | map(.[0].id)')" echo "$WORKSPACES" | jq -Mc 'map(. as $ws | {id, name, monitor, active: (.id == '"$ACTIVE_ID"'), first: any('"$FIRSTS"' | .[] == $ws.id)})' }