Files
Dotfiles/.config/eww/scripts/get_workspaces.sh
2023-10-22 06:12:10 +02:00

11 lines
264 B
Bash
Executable File

#!/bin/bash
spaces (){
hyprctl workspaces -j | jq -Mc '[.[] | {id: (.id | tostring), windows: (.windows | tostring)}] | sort_by(.id)'
}
spaces
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
spaces
done