mirror of
https://github.com/caelestia-dots/cli.git
synced 2026-06-05 14:59:29 -05:00
record: fix region
This commit is contained in:
@@ -58,11 +58,11 @@ class Command:
|
|||||||
else:
|
else:
|
||||||
region = self.args.region
|
region = self.args.region
|
||||||
args += ["-g", region.strip()]
|
args += ["-g", region.strip()]
|
||||||
|
else:
|
||||||
monitors = json.loads(subprocess.check_output(["hyprctl", "monitors", "-j"]))
|
monitors = json.loads(subprocess.check_output(["hyprctl", "monitors", "-j"]))
|
||||||
focused_monitor = next(monitor for monitor in monitors if monitor["focused"])
|
focused_monitor = next(monitor for monitor in monitors if monitor["focused"])
|
||||||
if focused_monitor:
|
if focused_monitor:
|
||||||
args += ["-o", focused_monitor["name"]]
|
args += ["-o", focused_monitor["name"]]
|
||||||
|
|
||||||
if self.args.sound:
|
if self.args.sound:
|
||||||
sources = subprocess.check_output(["pactl", "list", "short", "sources"], text=True).splitlines()
|
sources = subprocess.check_output(["pactl", "list", "short", "sources"], text=True).splitlines()
|
||||||
|
|||||||
Reference in New Issue
Block a user