Can context.exec be used to run a command on audio stream/source condition change?
Is there a condition that can be used to detect when an audio playback stream/source changes? My prospective use case involves using pkill -SIGRTMIN+2 i3status-rs
to send a signal to i3status-rust to immediately update/refresh the sample rate and bit depth information displayed in my custom i3status-rust block.
Can PipeWire's context.exec config handle this, or is this use case more suited to a session manager like pipewire-media-session and/or WirePlumber? I have not been able to find much info about context.exec beyond having it start session managers, and even then, systemd services are recommended to manage the session manager instead of using context.exec for that purpose.