I want to be able to change the volume from a range of 0% to 40%. Cap it there permanently.
Sometimes depending on the program I'm running, the audio get resetted resulting in a full blast of 100% volume in my headphones.
I tried using different commands. pactl, pacmd, and sink-volume commands, but nothing came as expected.
Thanks in advance if anyone knows how to do this! Google doesn't give out any solution as I've searched a lot.
nothing came as expected. Perhaps you should create a script that you run when required... – May 18 '17 at 12:58amixer -D pulse sset Master 5%+Decrease volume by 5%
amixer -D pulse sset Master 5%-Set volume to 50%
– May 18 '17 at 13:30amixer -D pulse sset Master 50%function get_volume() { mixer=$(amixer get Master | egrep -o "[0-9]+%") echo number is $mixer }Am I in the right direction?
– May 18 '17 at 14:46amixer get Mastergive a different output thanamixer -D pulse sget Masterwhere the separate channels are concerned. I will have a go at a script, be right back... – May 18 '17 at 15:05Some people claim that alsamixer won't save a configuration permanently, and PCM shouldn't be as high as it is (100%).
– May 18 '17 at 15:10