- Open Automator.app
- Create new Quick Action
- Select Run AppleScript
- Add this:
set inputVolume to input volume of (get volume settings)
if inputVolume = 0 then
set inputVolume to 100
display notification "Volume set to 100" with title "✅ Microphone is on"
else
set inputVolume to 0
display notification "Volume set to 0" with title "❌ Microphone is off"
end if
set volume input volume inputVolume
- Save as
mute-microphone
- Go to System Preferences -> Keyboard -> Shortcuts -> Services -> General
- Find the
mute-microphone
service and set the hotkey (e.g. control-cmd-option M)
Thanks a lot. works great for sonoma!
if you can add or explain how to add an icon in status menu item (i'm not sure about the name, near the clock). It will be perfect. I don't find yet.
mac newbie.