summaryrefslogtreecommitdiff
path: root/src/caelestia/utils/hypr.py
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-11 17:37:04 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-11 17:37:04 +1000
commitdc855e1b01e9b4526927b8bd69daca733afd97c2 (patch)
tree38adb17eb316e92d70b64df6824d3ad91901028f /src/caelestia/utils/hypr.py
parentparser: print help when no args (diff)
downloadcaelestia-cli-dc855e1b01e9b4526927b8bd69daca733afd97c2.tar.gz
caelestia-cli-dc855e1b01e9b4526927b8bd69daca733afd97c2.tar.bz2
caelestia-cli-dc855e1b01e9b4526927b8bd69daca733afd97c2.zip
internal: refactor scheme
Also use a single file to store scheme data
Diffstat (limited to 'src/caelestia/utils/hypr.py')
-rw-r--r--src/caelestia/utils/hypr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/caelestia/utils/hypr.py b/src/caelestia/utils/hypr.py
index d829f22..621e28e 100644
--- a/src/caelestia/utils/hypr.py
+++ b/src/caelestia/utils/hypr.py
@@ -5,7 +5,7 @@ import socket
socket_path = f"{os.getenv('XDG_RUNTIME_DIR')}/hypr/{os.getenv('HYPRLAND_INSTANCE_SIGNATURE')}/.socket.sock"
-def message(msg: str, json: bool = True) -> str or dict[str, any]:
+def message(msg: str, json: bool = True) -> str | dict[str, any]:
with socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) as sock:
sock.connect(socket_path)