Why is everyone talking over me today? How rude!
Ohhh for #$%&'s sake...
"Sorry guys! I didn't realize I was muted this whole time."
Problem Solved:
Mic Mute Toggle & Icon Indicator in Menubar
- Visual Awareness of Mic Status
- Toggle Mic On/Off by Clicking the Icon
- Toggle Mic On/Off with Any Action You Want
MenuBarMicToggle.bttpreset (50.8 KB)
Background & Details
I just wanted a simple microphone toggle and visual indicator for the Menubar which I could interact with using either a keyboard shortcut or a click.
There are many presets that include such things for Touchbar, but I don't have a Touchbar.
There are fancy preset packages which include things like this alongside a ton of other gizmos, but I don't want 9 features I'll never touch just for the one feature I actually do want. Nor did I want to have to access it through some context menu.
Anyways, this preset consists of two dead-simple Apple Scripts - one in a Menubar Item called MicToggleIcon, and the other in a Named Trigger called Mic Toggle.
Apple Scripts Used
Named Trigger: Mic Toggle
on getMicrophoneVolume()
input volume of (get volume settings)
end getMicrophoneVolume
on disableMicrophone()
set volume input volume 0
end disableMicrophone
on enableMicrophone()
set volume input volume 65
end enableMicrophone
if getMicrophoneVolume() is greater than 0 then
disableMicrophone()
else
enableMicrophone()
end if
Change the "65" value to whatever you prefer. That's just where my microphone works best. Most apps (especially for virtual meetings) automatically adjust this once your value is above 0 anyways.
Menubar Item: MicToggleIcon
on getMicrophoneVolume()
input volume of (get volume settings)
end getMicrophoneVolume
if getMicrophoneVolume() is greater than 0 then
return "False"
else
return "True"
end if
The Menubar Icon has the Mic Toggle as an Action, which is triggered by clicking the icon. You can additionally create any other Trigger you want (such as a key shortcut) and set the Action to Named Trigger: Mic Toggle.