Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save rlisowski/616ab741430358c22d8b5bb044d34fa9 to your computer and use it in GitHub Desktop.

Select an option

Save rlisowski/616ab741430358c22d8b5bb044d34fa9 to your computer and use it in GitHub Desktop.

Revisions

  1. @henrik242 henrik242 revised this gist Apr 3, 2020. No changes.
  2. @henrik242 henrik242 renamed this gist Apr 3, 2020. 1 changed file with 0 additions and 0 deletions.
  3. @henrik242 henrik242 revised this gist Apr 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Mute hotkey on macOS.md
    Original 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. Set hotkeys for each of your actions (e.g. control-cmd-option M)
    7. Find the `mute-microphone` service and set the hotkey (e.g. control-cmd-option M)
  4. @henrik242 henrik242 revised this gist Apr 3, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Mute hotkey on macOS.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    1. Open Automator.app
    2. Create new Quick Action
    3. Select Perform Applescript Procedure
    3. Select Run AppleScript
    4. Add this:

    ```
  5. @henrik242 henrik242 created this gist Apr 3, 2020.
    20 changes: 20 additions & 0 deletions Mute hotkey on macOS.md
    Original 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)