summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-16 18:05:33 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-16 18:05:33 +1000
commite325129f7a0bc07dbcabe90f020105b1287699dc (patch)
tree98c7f2a62e93ace12dafafa9769ad7161057ccc9
parentrecord: add NVIDIA GPU support with wf-recorder (#41) (diff)
downloadcaelestia-cli-e325129f7a0bc07dbcabe90f020105b1287699dc.tar.gz
caelestia-cli-e325129f7a0bc07dbcabe90f020105b1287699dc.tar.bz2
caelestia-cli-e325129f7a0bc07dbcabe90f020105b1287699dc.zip
record: fix region
-rw-r--r--src/caelestia/subcommands/record.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/caelestia/subcommands/record.py b/src/caelestia/subcommands/record.py
index f251cf3..6481a0a 100644
--- a/src/caelestia/subcommands/record.py
+++ b/src/caelestia/subcommands/record.py
@@ -58,11 +58,11 @@ class Command:
else:
region = self.args.region
args += ["-g", region.strip()]
-
- monitors = json.loads(subprocess.check_output(["hyprctl", "monitors", "-j"]))
- focused_monitor = next(monitor for monitor in monitors if monitor["focused"])
- if focused_monitor:
- args += ["-o", focused_monitor["name"]]
+ else:
+ monitors = json.loads(subprocess.check_output(["hyprctl", "monitors", "-j"]))
+ focused_monitor = next(monitor for monitor in monitors if monitor["focused"])
+ if focused_monitor:
+ args += ["-o", focused_monitor["name"]]
if self.args.sound:
sources = subprocess.check_output(["pactl", "list", "short", "sources"], text=True).splitlines()