When I want to record audio from line in, I have to open pavucontrol, go to Recording tab, click the dropdown menu and select Built-In Audio Analog Stereo (green underlined), because the default entry is **Monitor** of Built-In Audio Analog Stereo (red underlined)
I would make a bash script to set Built-In Audio Analog Stereo, using pactl or pacmd; I thought that would be enough to execute pactl set-default-source alsa_input.pci-0000_00_1b.0.analog-stereo but doesn’t do nothing.
How can I achieve this need with a bash script?
If the module is loaded in a default.pa configuration file omit the pactl command
The pacmd commands can be a bit temperamental when used in BASH scripts and sometimes fail
some (but not all) pactl commands work better without the daemon
There is a workaround for using pacmd in scripts, if required