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?


I think you are looking for patcl subscribe.

From the man page:

         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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.