mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-09 16:59:29 -05:00
internal: refactor scheme
Also use a single file to store scheme data
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user