PulseAudio FAQs contain this sentence :
If set to $ DISPLAY, the library tries to connect to this server and looks for the PULSE_SERVER root window property for connecting the host.
For a given $ DISPLAY, how can I get this and other properties of the root window, from, say, bash or Python?
source
share