Skip to content

Instantly share code, notes, and snippets.

@paincompiler
Last active October 16, 2017 16:33
Embed
What would you like to do?
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