Skip to content

Instantly share code, notes, and snippets.

@LeZuse
Last active April 17, 2020 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LeZuse/30cb07c9d3adf100ba0ec9e04a373683 to your computer and use it in GitHub Desktop.
Save LeZuse/30cb07c9d3adf100ba0ec9e04a373683 to your computer and use it in GitHub Desktop.
Mac OS un/mute with notification using Automator
-- Credits: https://superuser.com/a/937488/44834
-- https://apple.stackexchange.com/a/346995/62041
set inputVolume to input volume of (get volume settings)
-- Zoom does not allow the input volume to drop to 0, so we check by "lower than"
if inputVolume < 10 then
set inputVolume to 100
set displayNotification to "Microphone Unmuted"
else
set inputVolume to 0
set displayNotification to "Microphone Muted"
end if
set volume input volume inputVolume
display notification displayNotification
delay 1
@LeZuse
Copy link
Author

LeZuse commented Apr 17, 2020

Setup

  1. Create Quick action in Automator
  2. Switch "Workflow receives" to "no input"
  3. Paste the script from this gist
  4. Save with a recognizable name
  5. Go to System Preferences > Keyboard > Shortcuts
  6. Find your Quick action under "General" and assign a shortcut to it
  7. Profit! 🚀

Screenshot 2020-04-17 15 08 40
Screenshot 2020-04-17 15 07 50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment