10 lines
246 B
Bash
10 lines
246 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
CMD="sort_by(.id) | [ .[] | select(.id > 0)]"
|
||
|
|
||
|
hyprctl workspaces -j | jq -c "$CMD"
|
||
|
|
||
|
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
|
||
|
hyprctl workspaces -j | jq -c "$CMD"
|
||
|
done
|