dotfiles/.config/eww/scripts/get-workspaces

13 lines
270 B
Plaintext
Raw Normal View History

2023-06-09 10:34:28 +00:00
#!/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