LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to map my extra keys to my applications? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-map-my-extra-keys-to-my-applications-529826/)

gregorian 02-17-2007 01:20 AM

How to map my extra keys to my applications?
 
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:
Quote:

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.



EDIT: 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.

gregorian 02-21-2007 03:08 AM

Ok, I did a little more research and found these two commands:

mplayer -input cmdlist
mplayer -input keylist

After reading the results of those two commands,I went to the input.conf file and entered:

VOLUME_UP volume 1

Mplayer still does not do anything when I press the key. What am I to do now?

gregorian 02-25-2007 08:16 PM

Hi, It's been quite a long time now. I'd appreciate any kind of help. Thank you.


All times are GMT -5. The time now is 03:49 PM.