You are not logged in.
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
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
Yes, i already did that. Thank you
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
Oh, it s wotking now, i didnt add the false argument.
Do you mind tell me what it does ?
Offline
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