mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 14:59:29 -05:00
fix: use hypr socket instead of hyprctl
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user