From 17455b5d01c621a16b03d347cce95dacbc6c82a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Wed, 8 May 2024 14:18:05 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(home)=20update=20eww=20scripts,?= =?UTF-8?q?=20broken=20socket=20paths?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/wayland/eww/config/scripts/get-active-workspace | 2 +- home/wayland/eww/config/scripts/get-workspaces | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/home/wayland/eww/config/scripts/get-active-workspace b/home/wayland/eww/config/scripts/get-active-workspace index 1e7f45d..689ff07 100755 --- a/home/wayland/eww/config/scripts/get-active-workspace +++ b/home/wayland/eww/config/scripts/get-active-workspace @@ -2,5 +2,5 @@ hyprctl monitors -j | jaq '.[] | select(.focused) | .activeWorkspace.id' # print current active workspace id on workspace changes -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/wayland/eww/config/scripts/get-workspaces b/home/wayland/eww/config/scripts/get-workspaces index 860f53f..87b3d43 100755 --- a/home/wayland/eww/config/scripts/get-workspaces +++ b/home/wayland/eww/config/scripts/get-workspaces @@ -10,6 +10,6 @@ spaces (){ spaces # print info on workspace changes -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