diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-16 18:05:33 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-16 18:05:33 +1000 |
| commit | e325129f7a0bc07dbcabe90f020105b1287699dc (patch) | |
| tree | 98c7f2a62e93ace12dafafa9769ad7161057ccc9 /src/caelestia/subcommands | |
| parent | record: add NVIDIA GPU support with wf-recorder (#41) (diff) | |
| download | caelestia-cli-e325129f7a0bc07dbcabe90f020105b1287699dc.tar.gz caelestia-cli-e325129f7a0bc07dbcabe90f020105b1287699dc.tar.bz2 caelestia-cli-e325129f7a0bc07dbcabe90f020105b1287699dc.zip | |
record: fix region
Diffstat (limited to 'src/caelestia/subcommands')
| -rw-r--r-- | src/caelestia/subcommands/record.py | 10 |
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() |