13 lines
270 B
Plaintext
13 lines
270 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
monitor="${1}"
|
||
|
|
||
|
spaces (){
|
||
|
hyprctl workspaces -j | tr -d '\n' | jq -c "[.[] | select(.monitor | contains(\"${monitor}\"))]"
|
||
|
}
|
||
|
|
||
|
spaces
|
||
|
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
|
||
|
spaces
|
||
|
done
|