pointfichiers/bar/eww/scripts/hypr/get-workspaces

12 lines
238 B
Text
Raw Normal View History

2024-01-25 14:39:08 +01:00
#!/bin/dash
spaces (){
hyprctl workspaces -j | jq -c 'map({id: .id, windows: .windows, monitor: .monitorID})'
}
spaces
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
spaces
done