Linux command line set audio volume with pactl and amixer
amixer commands to set audio volume:
amixer is a command-line mixer for ALSA soundcard driver
Shows a complete list of simple mixer controls
amixer scontrols
Increase volume by 5%
amixer -D pulse sset Master 5%+
amixer set 'Master' 5%+
Decrease volume by 5%
amixer -D pulse sset Master 5%-
amixer set 'Master' 5%-
Set volume to 50%
amixer -D pulse sset Master 50% amixer set 'Master' 50%
ALSA, amixer visual audio volume command:
alsamixer
pactl command is used to control a running PulseAudio sound server
Increase volume by 5%
pactl -- set-sink-volume 0 +5%
Decrease volume by 5%
pactl -- set-sink-volume 0 -5%
Set volume to 100%
pactl -- set-sink-volume 0 100%
Simple and easy
