You are not logged in.

#1 2012-01-27 22:55:13

martin101
Member
From: London
Registered: 2012-01-27
Posts: 6

Alsa Volume Control from script [SOLVED]

I currently have arch setup with a custom desktop environment with Compiz as my window manager and dmenu for launching apps. I love this setup, it's lean, mean and clean. However I would like to be able to control my computers volume by setting a custom command in ccsm and link it to a keyboard shortcut but I don't know how to directly control alsa via the command line to up and down the volume. If this at all possible. it would be very appreciated. Many thanks in advance.

Last edited by martin101 (2012-01-30 13:59:37)

Offline

#2 2012-01-27 23:04:12

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,595

Re: Alsa Volume Control from script [SOLVED]

man amixer

Offline

#3 2012-01-27 23:18:07

martin101
Member
From: London
Registered: 2012-01-27
Posts: 6

Re: Alsa Volume Control from script [SOLVED]

skunktrader wrote:
man amixer

Thanks for the quick reply, my word the syntax to control amixer seems rather convoluted. But thanks nonetheless.

Offline

#4 2012-01-27 23:19:34

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,595

Re: Alsa Volume Control from script [SOLVED]

louder

amixer set Master 5+

softer

amixer set Master 5-

Offline

#5 2012-01-27 23:29:16

martin101
Member
From: London
Registered: 2012-01-27
Posts: 6

Re: Alsa Volume Control from script [SOLVED]

Yep just worked it out, many thanks.

I'm using the following command

amixer -c 3 set PCM 2dB- to decrease the volume by 2dB

and

amixer -c 3 set PCM 2dB+ to increase the volume by 2dB

Wow the arch users are helpful. Thanks again mate.

Offline

#6 2012-01-27 23:52:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Alsa Volume Control from script [SOLVED]

Please remember to mark the thread as solved.
Ooops, I think I jumped the gun, sorry.

Last edited by karol (2012-01-28 00:04:37)

Offline

#7 2012-01-28 00:02:18

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

Re: Alsa Volume Control from script [SOLVED]

Can use xbindkeys.

Offline

Board footer

Powered by FluxBB