Files
flake/modules/home/eww/bar/workspaces/get-workspaces.sh
2023-02-19 21:37:32 +09:00

11 lines
225 B
Bash
Executable File

#!/usr/bin/env bash
spaces (){
hyprctl workspaces -j | jq -c 'map(.id | select(. > 0)) | sort'
}
spaces
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
spaces
done