Dotfiles/.config/eww/scripts/get-active-workspace

6 lines
271 B
Plaintext
Raw Permalink Normal View History

2024-03-17 14:59:22 +00:00
#!/usr/bin/env bash
hyprctl monitors -j | jq '.[] | select(.focused) | .activeWorkspace.id'
2024-07-23 10:19:57 +00:00
socat -u UNIX-CONNECT:/run/user/$UID/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'