Skip to content

Instantly share code, notes, and snippets.

@paincompiler
Last active October 16, 2017 16:33
Show Gist options
  • Save paincompiler/56adb36fd646d8c84f57 to your computer and use it in GitHub Desktop.
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