I have a Logitech keyboard with extra keys. In the KDE environment, I went to the Control Center and chose the correct keyboard. I ran xev to make sure that the system recognised the extra keys. When I pressed the keys, I got satisfactory results. For example, pressing the Play button gave me this:
KeyRelease event, serial 27, synthetic NO, window 0x2200001,
root 0x3f, subw 0x0, time 3067411, (-626,742), root:(53,762),
state 0x0, keycode 162 (keysym 0x1008ff14, XF86AudioPlay), same_screen YES,
XLookupString gives 0 bytes: ""
All the keys are recognised by Linux. I want to know how to link these keys to applications like XMMS, MPlayer etc. so that I can play the files using these extra keys.
Thank you for your help.
I just figured out how to map the keys in XMMS. You just have to go to Options>Preferences>General Plugins and Choose your keyboard. Click on Configure. Click on Grab and then press the appropriate key for the various controls. A number will appear in the previously empty box. Do the same for all the keys. Click on OK. Check the box "Enable Plugin" and click on OK. You should be done.
I wish it was this easy in MPlayer.
P.S. I know that there is an input.conf in the $HOME/.mplayer directory. I just don't know what I must enter in that file.