treewide: preliminary Wayland!

This commit is contained in:
LavaDesu 2024-01-17 15:33:46 +07:00
parent 67798937bb
commit 2602b8bc1c
Signed by: cilly
GPG key ID: 6500251E087653C9
11 changed files with 197 additions and 11 deletions

View file

@ -0,0 +1,11 @@
#!/usr/bin/env sh
spaces (){
WORKSPACE_WINDOWS=$(hyprctl workspaces -j | jq 'map({key: .id | tostring, value: .windows}) | from_entries')
seq 1 10 | jq --argjson windows "${WORKSPACE_WINDOWS}" --slurp -Mc 'map(tostring) | map({id: ., windows: ($windows[.]//0)})'
}
spaces
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do
spaces
done