From 133b8f59fb328b33da59c2214580943420a19134 Mon Sep 17 00:00:00 2001 From: Leni Aniva Date: Fri, 31 May 2024 00:04:19 -0700 Subject: [PATCH] fix: Hyprland socket address update --- eww/bar/scripts/get-workspaces | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/eww/bar/scripts/get-workspaces b/eww/bar/scripts/get-workspaces index 4c2070d..649bd9b 100755 --- a/eww/bar/scripts/get-workspaces +++ b/eww/bar/scripts/get-workspaces @@ -113,7 +113,9 @@ def detect(): Main entry point, detects the type of compositor used """ if signature := os.environ.get("HYPRLAND_INSTANCE_SIGNATURE", None): - socket_addr = f"/tmp/hypr/{signature}/.socket2.sock" + # See https://wiki.hyprland.org/IPC/ + xdg_runtime_dir = os.environ["XDG_RUNTIME_DIR"] + socket_addr = f"/{xdg_runtime_dir}/hypr/{signature}/.socket2.sock" return hypr_listen(socket_addr) if signature := os.environ.get("SWAYSOCK", None): return sway_listen()