From d44facece964edcc2f1a8593548948c6b22b91cd Mon Sep 17 00:00:00 2001 From: kiana-S Date: Sat, 3 Aug 2024 09:49:15 -0400 Subject: [PATCH] fix(eww): fix incorrect path to hyprland socket2 --- home-manager/wayland/eww/scripts/active-window | 2 +- home-manager/wayland/eww/scripts/get-active-workspace | 2 +- home-manager/wayland/eww/scripts/get-workspaces | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/home-manager/wayland/eww/scripts/active-window b/home-manager/wayland/eww/scripts/active-window index 07ace63..2124d68 100755 --- a/home-manager/wayland/eww/scripts/active-window +++ b/home-manager/wayland/eww/scripts/active-window @@ -1,6 +1,6 @@ #!/usr/bin/env bash hyprctl activewindow -j | jaq -c . -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 grep -ose '^activewindow>>' | while read -r line; do hyprctl activewindow -j | jaq -c . done diff --git a/home-manager/wayland/eww/scripts/get-active-workspace b/home-manager/wayland/eww/scripts/get-active-workspace index 048bb63..b5d8dd3 100755 --- a/home-manager/wayland/eww/scripts/get-active-workspace +++ b/home-manager/wayland/eww/scripts/get-active-workspace @@ -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}' diff --git a/home-manager/wayland/eww/scripts/get-workspaces b/home-manager/wayland/eww/scripts/get-workspaces index 9e3a82e..37b9de6 100755 --- a/home-manager/wayland/eww/scripts/get-workspaces +++ b/home-manager/wayland/eww/scripts/get-workspaces @@ -7,6 +7,6 @@ workspaces() { } workspaces -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 workspaces done