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

13 lines
270 B
Bash
Executable File

#!/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