fix: Hyprland config update, eww bar integration #15

Merged
aniva merged 15 commits from wayland/hypr into main 2024-09-03 13:15:08 -07:00
1 changed files with 3 additions and 1 deletions
Showing only changes of commit 133b8f59fb - Show all commits

View File

@ -113,7 +113,9 @@ def detect():
Main entry point, detects the type of compositor used Main entry point, detects the type of compositor used
""" """
if signature := os.environ.get("HYPRLAND_INSTANCE_SIGNATURE", None): 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) return hypr_listen(socket_addr)
if signature := os.environ.get("SWAYSOCK", None): if signature := os.environ.get("SWAYSOCK", None):
return sway_listen() return sway_listen()