Skip to content

Tiny macOS executable to toggle input sound on and off preserving prev volume level.

License

Notifications You must be signed in to change notification settings

artem-zinnatullin/macos-input-sound-toggle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

macOS Input Sound Toggle

Motivation

During podcasting or conference calls you might want to quickly toggle input volume on and off.

Solution

This project provides very simple Bash script that uses osascript to get and set system input volume level.

Very important aspect of this implementation is that when it turns input volume back on it restores volume level to previously saved value.

How To Use

  1. Download script or clone the repo.
  2. Add executable permissions: chmod +x ~/Downloads/toggle-sound-input (not required if you clone repo).
  3. Toggle your input sound on or off just by calling it ~/Downloads/toggle-sound-input!

Ouput example:

$ ~/Downloads/toggle-sound-input
- Sound input muted.

$ ~/Downloads/toggle-sound-input
+ Sound input level restored to 75.

Tips

Alias

You can make an alias for the script or add it to PATH.

Assign a Hotkey

You can assign a hotkey to run the script.

Credits

Thanks to Artur Dryomov for tweeting a snippet of osascript that was muting the sound, it made me try to script an implementation that'd do it pragmatically.

About

Tiny macOS executable to toggle input sound on and off preserving prev volume level.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages