eww: Bar workspaces now sorted

This commit is contained in:
GaspardCulis 2024-01-26 10:19:31 +01:00
parent 3fb913b104
commit 8ed26c5b9e

View file

@ -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