From 96fcdf5bceaa673fb9f5d1e9c150b17313294094 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 28 Apr 2026 21:20:40 +1000 Subject: [PATCH] fix: use hypr socket instead of hyprctl --- src/caelestia/subcommands/record.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/caelestia/subcommands/record.py b/src/caelestia/subcommands/record.py index 1fa76c6..7a24ba7 100644 --- a/src/caelestia/subcommands/record.py +++ b/src/caelestia/subcommands/record.py @@ -7,6 +7,7 @@ from argparse import Namespace from datetime import datetime from pathlib import Path +from caelestia.utils import hypr from caelestia.utils.notify import close_notification, notify from caelestia.utils.paths import recording_notif_path, recording_path, recordings_dir, user_config_path @@ -36,7 +37,7 @@ class Command: def start(self) -> None: args = ["-w"] - monitors = json.loads(subprocess.check_output(["hyprctl", "monitors", "-j"])) + monitors = hypr.message("monitors") if self.args.region: if self.args.region == "slurp": region = subprocess.check_output(["slurp", "-f", "%wx%h+%x+%y"], text=True)