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,6 @@
#!/usr/bin/env sh
hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id'
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'