2009-03-25

Fluxbox - assign custom buttons for various program / operation in fluxbox

After some brief hiccups on fluxbox customization, some of you might be asking how to bind those volume keys (or other keys of that matter) into fluxbox. Wait no more, here it is :


step 1 : use :
xev
to identify the "keycode"
e.g.
keycode 121 is for mute key
keycode 122 is for volume decrease key
keycode 121 is for volume increase key


step 2 : assign key to volume operation in ~/.fluxbox/keys
e.g.
None 121 :ExecCommand /usr/bin/amixer sset Master,0 toggle

None 122 :ExecCommand /usr/bin/amixer sset Master,0 5%-

None 123 :ExecCommand /usr/bin/amixer sset Master,0 5%+



Step 3 : re-launch fluxbox by right click any empty space in desktop and click on "Restart".

Voilla !!!

No comments: