internal: refactor scheme

Also use a single file to store scheme data
This commit is contained in:
2 * r + 2 * t
2025-06-11 17:37:04 +10:00
parent a4f5138d41
commit dc855e1b01
6 changed files with 211 additions and 124 deletions
+1 -1
View File
@@ -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)