From ad533a0dd46d493bcaa3284914def50e6a9f13f1 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 1 Jun 2026 21:06:04 +1000 Subject: [PATCH] fix: only screenshot focused monitor in fs mode --- src/caelestia/subcommands/screenshot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/caelestia/subcommands/screenshot.py b/src/caelestia/subcommands/screenshot.py index 9a8cd60..95b84ff 100644 --- a/src/caelestia/subcommands/screenshot.py +++ b/src/caelestia/subcommands/screenshot.py @@ -2,6 +2,7 @@ import subprocess from argparse import Namespace from datetime import datetime +from caelestia.utils import hypr from caelestia.utils.notify import notify from caelestia.utils.paths import screenshots_cache_dir, screenshots_dir @@ -33,7 +34,12 @@ class Command: swappy.stdin.close() def fullscreen(self) -> None: - sc_data = subprocess.check_output(["grim", "-"]) + cmd = ["grim"] + focused_monitor = next(monitor for monitor in hypr.message("monitors") if monitor["focused"]) + if focused_monitor: + cmd += ["-o", focused_monitor["name"]] + cmd += ["-"] + sc_data = subprocess.check_output(cmd) subprocess.run(["wl-copy"], input=sc_data)