Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-17-2007, 02:20 AM   #1
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
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:
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.

Last edited by gregorian; 02-17-2007 at 07:18 PM.
Old 02-21-2007, 04:08 AM   #2
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
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?
Old 02-25-2007, 09:16 PM   #3
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Hi, It's been quite a long time now. I'd appreciate any kind of help. Thank you.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring extra keys in Slackware Yalla-One Slackware 9 11-27-2006 06:54 AM
How to use extra keys in GNU/Linux deepclutch Linux - Hardware 3 01-18-2006 09:44 AM
Map Keys Under 3dDesktop michaeljh2000 Slackware 0 01-07-2005 03:38 PM
how to map extra keys on k/b need some help here! jollyjoice Slackware 1 07-24-2004 10:51 AM
Map two keys to same thing Wynd Linux - General 1 05-07-2003 09:47 AM > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration