nix-conf/user/bin/record-audio
2025-07-13 14:40:51 -05:00

9 lines
175 B
Bash
Executable file

#!/bin/sh
monitor="$(pactl -f json info | jq -r '.default_sink_name + ".monitor"')"
exec ffmpeg \
-f pulse \
-i "$monitor" \
-loglevel error \
-ac 2 \
"${@:-a.mp3}"