[eww] Sort workspaces

This commit is contained in:
Viyurz 2024-10-21 16:51:01 +02:00
parent 866c052c26
commit 1ce5d3c2b2
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
hyprctl workspaces -j | jq -c '[.[].id] | map(tostring)'
hyprctl workspaces -j | jq -c '[.[].id] | sort | map(tostring)'
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
hyprctl workspaces -j | jq -c '[.[].id] | map(tostring)'
hyprctl workspaces -j | jq -c '[.[].id] | sort | map(tostring)'
done