fix: use hypr socket instead of hyprctl

This commit is contained in:
2 * r + 2 * t
2026-04-28 21:20:40 +10:00
parent eddee4deca
commit 96fcdf5bce
+2 -1
View File
@@ -7,6 +7,7 @@ from argparse import Namespace
from datetime import datetime from datetime import datetime
from pathlib import Path from pathlib import Path
from caelestia.utils import hypr
from caelestia.utils.notify import close_notification, notify from caelestia.utils.notify import close_notification, notify
from caelestia.utils.paths import recording_notif_path, recording_path, recordings_dir, user_config_path 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: def start(self) -> None:
args = ["-w"] args = ["-w"]
monitors = json.loads(subprocess.check_output(["hyprctl", "monitors", "-j"])) monitors = hypr.message("monitors")
if self.args.region: if self.args.region:
if self.args.region == "slurp": if self.args.region == "slurp":
region = subprocess.check_output(["slurp", "-f", "%wx%h+%x+%y"], text=True) region = subprocess.check_output(["slurp", "-f", "%wx%h+%x+%y"], text=True)