nicks-nix-config/modules/ewwbar/eww-config/scripts/get-active-workspace
2024-08-10 16:41:17 -07:00

6 lines
279 B
Bash
Executable file

#!/usr/bin/env bash
# hyprctl monitors -j | jaq '.[] | select(.focused) | .activeWorkspace.id'
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}'