diff --git a/res/eww-wayland/scripts/active-workspace.sh b/res/eww-wayland/scripts/active-workspace.sh index cbdf971..d4e6b87 100755 --- a/res/eww-wayland/scripts/active-workspace.sh +++ b/res/eww-wayland/scripts/active-workspace.sh @@ -2,5 +2,5 @@ hyprctl monitors -j | jq '.[] | 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}' diff --git a/res/eww-wayland/scripts/title.sh b/res/eww-wayland/scripts/title.sh index 9b19289..fd7b798 100755 --- a/res/eww-wayland/scripts/title.sh +++ b/res/eww-wayland/scripts/title.sh @@ -11,7 +11,7 @@ out () { init=$(hyprctl activewindow -j | jq --raw-output .title) out "$init" -socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}' | while read -r line ; do +socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | stdbuf -o0 awk -F '>>|,' '/^activewindow>>/{print $3}' | while read -r line ; do trunc=$(echo $line | cut -c-85) out "$trunc" done diff --git a/res/eww-wayland/scripts/workspaces.sh b/res/eww-wayland/scripts/workspaces.sh index a496f8f..963dbe8 100755 --- a/res/eww-wayland/scripts/workspaces.sh +++ b/res/eww-wayland/scripts/workspaces.sh @@ -6,6 +6,6 @@ spaces (){ } spaces -socat -u UNIX-CONNECT:/tmp/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do +socat -u UNIX-CONNECT:$XDG_RUNTIME_DIR/hypr/$HYPRLAND_INSTANCE_SIGNATURE/.socket2.sock - | while read -r line; do spaces done