...what Apple was thinking here, but if there's a way to conveniently control whether or not ones mic is muted without having to open the Sound panel or install a 3rd party app, I'll be honest: I'VE yet to find it.
...you're part of the precipitate. And while whatever activities YOU decide to precipitate in is your own business, and totally none of mine, I'd just as soon not listen to them across the next bridge you're on, either.
The code below, when added to your ~/.bash_profile
will add two new commands to your shell (well, three, strictly speaking, but the demographic about to get all up in a symantic snit about same likely isn't looking at this Gist).
Once installed, running
vol
will toggle the mute function on your Mac's speakers on or off, and runningvol <Percnt_Val>
(e.g.vol 25
) will set the speakers' volume to that precise value.
The
mic
command can be used exactly the same way (mic
to toggle,mic <New_Value>
to specify the threshold).
Because just about everything (Karabiner, Keyboard Maestro, Shortcuts, Automator, IFTTT, etc) can trigger a shell script. I included JUST the toggle portion in AppleScript, below, as well, if you're desperate to get the functionality from the Settings Panel natively, too.
By installing, implementing, using, distributing, reading, modifying, executing, and/or being aware of this code's existence, you agree to vote in the forthcoming US Presidential election in 2024, presupposing you are inside the USA, of legal age, and eligible to do so (if you DON'T meet these criteria, you're off the hook; treat it as MPL2 and go to town).
Nice!