2023-05-28 21:48:36 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# print current active workspace id
|
2023-06-10 18:36:41 +00:00
|
|
|
hyprctl monitors -j | jaq '.[] | select(.focused) | .activeWorkspace.id'
|
2023-05-28 21:48:36 +00:00
|
|
|
|
|
|
|
# print current active workspace id on workspace changes
|
|
|
|
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
|
2023-06-10 18:36:41 +00:00
|
|
|
stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'
|