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)})' }