diff --git a/nwg_panel/processes.py b/nwg_panel/processes.py index 880af10..35b44f9 100644 --- a/nwg_panel/processes.py +++ b/nwg_panel/processes.py @@ -51,7 +51,7 @@ def hyprctl(cmd): f"{xdg_runtime_dir}/hypr") else "/tmp/hypr" s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) - s.connect(f"{hypr_dir}/{os.getenv("HYPRLAND_INSTANCE_SIGNATURE")}/.socket.sock") + s.connect(f"{hypr_dir}/{os.getenv('HYPRLAND_INSTANCE_SIGNATURE')}/.socket.sock") s.send(cmd.encode("utf-8")) output = s.recv(20480).decode('utf-8') diff --git a/nwg_panel/tools.py b/nwg_panel/tools.py index e71954d..cf52c56 100644 --- a/nwg_panel/tools.py +++ b/nwg_panel/tools.py @@ -827,7 +827,7 @@ def hyprctl(cmd, buf_size=2048): s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) try: - s.connect(f"{hypr_dir}/{os.getenv("HYPRLAND_INSTANCE_SIGNATURE")}/.socket.sock") + s.connect(f"{hypr_dir}/{os.getenv('HYPRLAND_INSTANCE_SIGNATURE')}/.socket.sock") s.send(cmd.encode("utf-8")) output = b""