···11#!/bin/sh
22-# shellcheck disable=SC1090,SC2154
22+# shellcheck disable=SC1090,SC1091,SC2154
3344# SC1090 & SC2154
55# The files sourced are user generated files that should contain the needed
···115115 [ "$microphone" ] && [ "$desktop_audio" ] && \
116116 { args="$args -filter_complex amix=inputs=2"; }
117117118118- # Pressing Ctrl+C will exit the script instead of just wf-recorder.
119119- # Intercept Ctrl+C and exit wf-recorder instead of the script
120120- trap 'kill -2 $aud_pid' INT
118118+ # Pressing Ctrl+C will exit the script instead of just ffmpeg.
119119+ # Intercept Ctrl+C and do nothing.
120120+ trap '' INT
121121122122 # shellcheck disable=SC2086
123123 # Word splitting is favorable here
···182182183183 # Pressing Ctrl+C will exit the script instead of just wf-recorder.
184184 # Intercept Ctrl+C and exit wf-recorder instead of the script
185185- trap 'kill -2 $rec_pid' INT
185185+ trap '' INT
186186187187 if [ "$output" ]; then set -- -o "$output"; else set -- -g "$(slurp)"; fi
188188 # Word splitting is favorable here