I would like to read the volume of sound currently playing for several pulseaudio clients.
The problem I want to solve is this: I listen to xmms music, then pause it to listen to the song my friend on youtube sent me. An hour later, I suddenly discovered that I was not listening to music!
The (most basic) solution I was thinking of is bash scripts that check the volume of all non xmms applications every second if any application makes sound, xmms pauses if there is no sound, and xmms is turned off, xmms is turned on . (I want to be able to do this in different ways, for example, pidgin should be ignored)
I could only find graphical tools for reading the volume, like pavucontrol, which displays it well. I really would not want to code all kinds of C programs to do such a simple thing, therefore:
- I think in the right direction or is there a simpler solution
- If this does not happen, how can I find out the current volume level for individual applications
source share