fix: Hyprland config update, eww bar integration #15
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue