Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In a shell script, I would like to change the selection of the input device (i.e. "Choose a device for sound input") in the "Input" tab of the "Sound Preferences" in Gnome.

Any ideas how to do this?

share|improve this question

1 Answer 1

Possibly "pacmd set-default-source" works if you are using pulseaudio, for example:

pacmd set-default-source alsa_input.usb-046d_0819_9F13DC90-02-U0x46d0x819.analog-mono

Find the source name using "pacmd list-source".

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.