From 1ce5d3c2b2515cf4f886f28606a1e62f8831ee8e Mon Sep 17 00:00:00 2001 From: Viyurz Date: Mon, 21 Oct 2024 16:51:01 +0200 Subject: [PATCH] [eww] Sort workspaces --- .config/eww/scripts/get-workspaces.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/eww/scripts/get-workspaces.sh b/.config/eww/scripts/get-workspaces.sh index ae24e98..1eac143 100755 --- a/.config/eww/scripts/get-workspaces.sh +++ b/.config/eww/scripts/get-workspaces.sh @@ -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