Skip to content

Instantly share code, notes, and snippets.

@alexlopes
Created June 16, 2020 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexlopes/e200d6baee8183820413f948c13f04f9 to your computer and use it in GitHub Desktop.
Save alexlopes/e200d6baee8183820413f948c13f04f9 to your computer and use it in GitHub Desktop.
Mac Os Low Volume - Keep Input Volume Mic under 50 %
# thanks to https://apple.stackexchange.com/a/236425/379437
#!/bin/bash
while true ; do
while (( `osascript -e "input volume of (get volume settings)"` > 50 )); do
osascript -e "set volume input volume (input volume of (get volume settings) - 2)";
sleep 0.01;
done;
sleep 1;
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment