[pulseaudio-discuss] Automatic selection of an audio sink depending on value of ENV variable

Lennart Poettering lennart at poettering.net
Mon Oct 19 16:43:38 PDT 2009

On Mon, 19.10.09 16:38, Leszek Koltunski (leszek at koltunski.pl) wrote:

> Now, I would make me one happy duck if I could somehow tell Pulse to
> automatically route audio to hw:1.0 whenever I am working on the TV, that
> is, whenever DISPLAY is "1.0".

As the others already pointed out, the X11 props stuff is what you

Try something along these lines:

$ pax11publish -D :0 -O foobar -e
$ pax11publish -D :1 -O waldo -e

Where foobar and waldo are the two logical PA sink names to use.


Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

More information about the pulseaudio-discuss mailing list