Adjust the volume from the command line on macOS.
Using Homebrew:
brew tap meowmeowmeowcat/taps
brew install meowmeowmeowcat/taps/volume
Using Mint:
mint install meowmeowmeowcat/volume@v0.0.2
Install manually:
- Download the release from the release page
- Add it to the PATH
USAGE: volume [--input] [--alert] [--all] <up|down|value>
ARGUMENTS:
<up|down|value> Use up or down to increase or decrease the volume.
Input a value(0-100) to adjuct the volume.
Default to output volume.
OPTIONS:
-i, --input Set input volume.
-a, --alert Set alert volume.
--all Set all volumes to the same level.
Including output, input and alert volume.
--version Show the version.
-h, --help Show help information.
Increase the output volume:
$ volume up
Decrease the output volume:
$ volume down
Set the output volume to 10:
$ volume 10
Set the input volume to 60:
$ volume --input 60
Set the alert volume to 100:
$ volume --alert 100
Set all volume(including output, input and alert volume) to 50:
$ volume --all 50
If you want to adjust the volume from the command line faster, using alias
would be a good choice:
alias vol="volume"