Forked from henrik242/Microphone mute hotkey on macOS.md
Created
October 21, 2022 09:42
-
-
Save rlisowski/616ab741430358c22d8b5bb044d34fa9 to your computer and use it in GitHub Desktop.
Revisions
-
henrik242 revised this gist
Apr 3, 2020 . No changes.There are no files selected for viewing
-
henrik242 renamed this gist
Apr 3, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
henrik242 revised this gist
Apr 3, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,4 +17,4 @@ set volume input volume inputVolume 5. Save as `mute-microphone` 6. Go to System Preferences -> Keyboard -> Shortcuts -> Services -> General 7. Find the `mute-microphone` service and set the hotkey (e.g. control-cmd-option M) -
henrik242 revised this gist
Apr 3, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ 1. Open Automator.app 2. Create new Quick Action 3. Select Run AppleScript 4. Add this: ``` -
henrik242 created this gist
Apr 3, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ 1. Open Automator.app 2. Create new Quick Action 3. Select Perform Applescript Procedure 4. 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 ``` 5. Save as `mute-microphone` 6. Go to System Preferences -> Keyboard -> Shortcuts -> Services -> General 7. Set hotkeys for each of your actions (e.g. control-cmd-option M)