From 8ed26c5b9e3221a13bb7ad9c72dc2a735b7ed412 Mon Sep 17 00:00:00 2001 From: GaspardCulis Date: Fri, 26 Jan 2024 10:19:31 +0100 Subject: [PATCH] eww: Bar workspaces now sorted --- bar/eww/scripts/hypr/get-workspaces | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bar/eww/scripts/hypr/get-workspaces b/bar/eww/scripts/hypr/get-workspaces index 273e5aa..9975b87 100755 --- a/bar/eww/scripts/hypr/get-workspaces +++ b/bar/eww/scripts/hypr/get-workspaces @@ -1,11 +1,10 @@ #!/bin/dash spaces (){ - hyprctl workspaces -j | jq -c 'map({id: .id, windows: .windows, monitor: .monitorID})' + hyprctl workspaces -j | jq -c 'map({id: .id, windows: .windows, monitor: .monitorID}) | sort_by(.id)' } spaces socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do spaces done -