fix(eww): fix incorrect path to hyprland socket2

This commit is contained in:
Kiana Sheibani 2024-08-03 09:49:15 -04:00
parent b53b88577c
commit d44facece9
3 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
hyprctl monitors -j | jaq '.[] | select(.focused) | .activeWorkspace.id'
socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - |
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}'