Skip to content

Instantly share code, notes, and snippets.

Last active October 16, 2017 16:33
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save paincompiler/56adb36fd646d8c84f57 to your computer and use it in GitHub Desktop.
control OS X microphone input volume
osascript -e "set volume input volume 100"
# Check every minute for mic input < 100%; if it is, dial it up elegantly
* * * * * while (( `osascript -e "input volume of (get volume settings)"` < 100 )); do osascript -e "set volume input volume (input volume of (get volume settings) + 3)"; sleep 0.1; done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment