How to subscribe to pulseaudio events from terminal instead of C?

5

I know that using libpulse one can subscribe to pulseaudio events (volume change, etc.) in a C program. Is there some way that I can achieve this from bash as well?

nullUser

Posted 2016-08-05T19:50:19.043

Reputation: 593

Answers

3

I think you are looking for patcl subscribe.

From the man page:

   subscribe
         Subscribe to events, pactl does not exit by itself, but keeps waiting for new events.

Sorry for the late reply but I just ran into this myself.

Marcel

Posted 2016-08-05T19:50:19.043

Reputation: 228