Fix EWW workspace order
This commit is contained in:
parent
23fcc7668f
commit
9ad9d2c4d7
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
spaces (){
|
spaces (){
|
||||||
ACTIVE_ID="$(hyprctl activeworkspace -j | jq -Mc '.id')"
|
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)')"
|
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)})'
|
echo "$WORKSPACES" | jq -Mc 'map(. as $ws | {id, name, monitor, active: (.id == '"$ACTIVE_ID"'), first: any('"$FIRSTS"' | .[] == $ws.id)})'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue