- 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)
I meant to follow up on this gist tbh, but in the end I ended up building a whole Hammerspoon script: https://github.com/chessmango/SimpleMicMute.spoon
I wanted a bit more out of it and speed was an issue for me, so fitting into a known-good framework for this type of thing felt more fitting. I've been using it since just before my last commit successfully, with a nice menubar indicator.