Bitcoin donations are welcome:14snQXeLcnJtWUduKZ6rC2MHdPYrYar1Tw

Wednesday, December 9, 2009

Multimedia shortcut keys in fluxbox

After having lot's of problems with multimedia key handling applets segfaulting, not reacting to keys and what-so-ever, I decided to go basic! And d*mn I'm glad I did so!

It took me 3 lines of work to get my Volume+, Volume- and Mute button to work like never before in fluxbox.

The short how-to:
1.) Open your ~.fluxbox/keys
2.) Add the following lines:

XF86AudioMute :Exec amixer set PCM toggle > /dev/null
XF86AudioLowerVolume :Exec amixer set PCM 1%- > /dev/null
XF86AudioRaiseVolume :Exec amixer set PCM 1%+ > /dev/null
3.) Save the file, reload fluxbox and it should work.

If you get no reaction, do this:
1.) Open an xterm
2.) run xev
3.) Push, let's say your Volume+ button, and see if you get a response containing the word "XF86AudioRaiseVolume". If it doesn't, you've found your problem. Find you X config files with all your keybindings and relocate it to the default settings.
4.) Try again :)

Lot's of more information and inspiration here! :)

No comments:

Post a Comment