I want to start listing to music again during work, but receive a lot of Microsoft Teams calls. I am working on Ubuntu Linux and use Spotify.

Is there a script / software to auto-pause the music whenever a teams call is coming in?

There is

https://github.com/kyleneideck/BackgroundMusic (for Mac)

https://github.com/samjgalbraith/Spotify-auto-pause (for Windows)

and different questions to Microsoft and spotify, none with a solution.


1 Answer 1


I found a workaround, which will prioritize all audio streams without role over music, so also the teams streams:

$ pacmd unload-module module-role-cork
$ pacmd load-module module-role-cork trigger_roles=no_role global=1

hint found here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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