#!/bin/bash
# ~/record2mics.sh
# reconfigure Pulseaudio for dual microphone recording

#pactl load-module module-null-sink sink_name=line1 sink_properties=device.description="Line 1"
pactl load-module module-null-sink sink_name=line1
# sink_properties=device.description="Line 1"

pactl load-module module-loopback sink=line1
pactl set-default-source line1.monitor
#make it executable
#chmod +x record2mics.sh

#and then create a launcher to run
#sh ~/record2mics.sh

#not as polished as the PCLinuxOS mixer on/off button
#but will get the same result with 1 click to start recording

#modules can be unloaded when no longer needed by restarting Pulseaudio
#systemctl --user restart pulseaudio