This script works with Karabiner Elements and OneKey Mute Button Edition.
When the button is pressed it performs one of these actions evaluated in this order:
- If MS Teams is the frontmost application then it toggles mute.
- If Chime is the frontmost application then it toggles mute.
- Else it brings Chime to the front and toggles mute.