diff --git a/modules/ewwbar/eww-config/scripts/get-active-workspace b/modules/ewwbar/eww-config/scripts/get-active-workspace index b1acc07..a95b286 100755 --- a/modules/ewwbar/eww-config/scripts/get-active-workspace +++ b/modules/ewwbar/eww-config/scripts/get-active-workspace @@ -1,6 +1,6 @@ #!/usr/bin/env bash -hyprctl monitors -j | jaq '.[] | select(.focused) | .activeWorkspace.id' +# hyprctl monitors -j | jaq '.[] | 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}' +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}'