Automatic selection of an audio sink depending on value of ENV variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
want.

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

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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux