Does anyone know how I can select my audio output via the command line? I’m frequently switching between using my monitors inbuilt speakers and a USB audio interface and I’m finding it laborious to navigiggerate graphically through the settings in GNOME to do so.

What I’d like to do is set up a couple of bash aliases and do it in my terminal.

What’s the best way for me to do that?

Many thanks

  • wuphysics87
    link
    fedilink
    arrow-up
    5
    ·
    2 months ago

    pactl get short sinks

    gets you a list of devices with a numerical identifier. And

    pactl set-default-sink ID

    Sets the default sink to the desired ID. I only ever want to swap between two so I wrots a bash script to do that. I just type ‘aud’ and it does it for me.