You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# a better approach is https://askubuntu.com/questions/1098683/how-do-i-make-ubuntu-select-my-headset-mic-as-default-input-automatically/1229519#1229519
(while [ $? = 0 ]; do
pactl list sources | grep -q 'analog-input-headset-mic.*not available' || dev=$(pactl list sources | grep '\(Name:\|analog-input-headset-mic\)' | grep -B1 'analog-input-headset-mic:' | sed -n 's/Name: //p') && pacmd set-source-port $dev analog-input-headset-mic