Skip to content

Commit 99539b0

Browse files
committed
remove var in argument --audio="$(getaudiooutput)" with --audio
remove the whole function getaudiooutput() since it is no longer needed, wf-recorder selects the default PipeWire source automatically As per #737
1 parent 103a7a6 commit 99539b0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

screen-shot-and-record/record.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ RECORDING_DIR="$HOME/Videos"
2020
getdate() {
2121
date '+%Y-%m-%d_%H.%M.%S'
2222
}
23-
getaudiooutput() {
24-
pactl list sources | grep 'Name' | grep 'monitor' | cut -d ' ' -f2
25-
}
2623

2724
# parse --region <value> without modifying $@ so other flags like --fullscreen still work
2825
ARGS=("$@")
@@ -134,7 +131,7 @@ else
134131
fi
135132
fi
136133
if [[ $SOUND_FLAG -eq 1 ]]; then
137-
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$MANUAL_REGION" "${FILTER_ARGS[@]}" --audio="$(getaudiooutput)"
134+
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$MANUAL_REGION" "${FILTER_ARGS[@]}" --audio"
138135
else
139136
wf-recorder --pixel-format yuv420p -f './recording_'"$(getdate)"'.mp4' -t --geometry "$MANUAL_REGION" "${FILTER_ARGS[@]}"
140137
fi

0 commit comments

Comments
 (0)