You are not logged in.

#1 2008-10-07 12:58:48

LonelyStar
Member
Registered: 2007-12-09
Posts: 123

Increasing sound volume with amixer

Hi,

I know, I can set the sound volume with something like this:

> amixer set Master 10

But is it also possible to relattivly set the sound? Can I somehow in example increase the volume by 10%?
I want to set keyboard shortcuts for turning volume up and down!

Thanks!
Nathan

Offline

#2 2008-10-07 13:14:07

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: Increasing sound volume with amixer

Read "man amixer":

set or sset <SCONTROL> <PARAMETER> ...
              Sets the simple mixer control contents. The parameter can be the
              volume either as a percentage from 0% to 100% with %  suffix,  a
              dB  gain  with  dB  suffix  (like -12.5dB), or an exact hardware
              value.  The dB gain can be used only for the mixer elements with
              available  dB  information.   When plus(+) or minus(-) letter is
              appended after volume value, the volume is incremented or decre-
              mented from the current value, respectively.

For keyboard shortcuts, use e.g. xbindkeys or xhotkeys or keytouch.

Offline

Board footer

Powered by FluxBB