You are not logged in.

#1 2010-01-20 11:23:24

ksemeks
Member
Registered: 2009-12-31
Posts: 51

Awesome volume control

Hi to all.
Im running awesome since this morning, and im nt rly familiar with it.
So i have a few questions:
how do i keybind the volume up/down keys to a command(say 'amixer -q sset Master 5-/+) ?

Thank you.

Offline

#2 2010-01-20 11:40:03

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: Awesome volume control

Use xev in a terminal and look for the keycode of your  key. Let's say it is 129

Then in your rc.lua:

awful.key({}, "#129", function () awful.util.spawn("amixer -q sset Master 5+", false) end),

Or you can use xbindkeys and start it with awesome

Last edited by Barghest (2010-01-20 11:40:39)

Offline

#3 2010-01-20 12:00:01

ksemeks
Member
Registered: 2009-12-31
Posts: 51

Re: Awesome volume control

Yes, i already did that. Thank you smile

The only thing now is that i cannot mute.
awful.key({modkey}, "m", funciton () awful.util.spawn("amixer -q sset Master toggle") end)

It does nothing, any idea?

Offline

#4 2010-01-20 12:03:20

ksemeks
Member
Registered: 2009-12-31
Posts: 51

Re: Awesome volume control

Oh, it s wotking now, i didnt add the false argument.
Do you mind tell me what it does ?

Offline

#5 2010-01-20 12:19:53

Barghest
Member
From: Hanau/Germany
Registered: 2008-01-03
Posts: 563

Re: Awesome volume control

I'm not that good in scripting but from what I've learned I think it has to do with the spawn command, that has three parameters:

spawn (cmd, sn, screen)

I guess the false says that there should not be a startup notification.

Please anyone correct me if I'm wrong.

Offline

Board footer

Powered by FluxBB