nicks-nix-config/modules/ewwbar/eww-config/scripts/get-active-workspace

7 lines
279 B
Text
Raw Normal View History

2023-10-24 18:31:26 -07:00
#!/usr/bin/env bash
2024-08-10 16:41:17 -07:00
# hyprctl monitors -j | jaq '.[] | select(.focused) | .activeWorkspace.id'
2023-10-24 18:31:26 -07:00
2024-08-10 16:41:17 -07:00
socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
stdbuf -o0 awk -F '>>|,' -e '/^workspace>>/ {print $2}' -e '/^focusedmon>>/ {print $3}'