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

11 lines
252 B
Text
Raw Normal View History

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