setting volume level from the command line using amixer (i3 tip)

using amixer to change volume level

use this to show the available “controls”

tatico@tortuguita:~$ amixer scontrols
Simple mixer control 'Master',0
Simple mixer control 'Capture',0

use this to set the volume

tatico@tortuguita:~$ amixer set 'Master' 0%
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 0 [0%] [on]
Front Right: Playback 0 [0%] [on]
tatico@tortuguita:~$ amixer set 'Master' 60%
Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined penum
Playback channels: Front Left - Front Right
Limits: Playback 0 - 65536
Mono:
Front Left: Playback 39322 [60%] [on]
Front Right: Playback 39322 [60%] [on]

Leave a Reply

Your email address will not be published. Required fields are marked *