Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .