View previous topic :: View next topic |
Author |
Message |
mimmozzo n00b
Joined: 11 Nov 2006 Posts: 13
|
Posted: Sat Nov 17, 2007 12:19 am Post subject: XMMS GNOME key binding - no keycodes for xmodmap |
|
|
Hello, i am trying to get the key bindings working for XMMS on Gnome, but i cant.
First of all, i installed the plugin XF86Audio Key Control for XMMS. This requires keys mapped like:
Code: | xmodmap -e 'keycode 161 = XF86AudioLowerVolume'
xmodmap -e 'keycode 163 = XF86AudioRaiseVolume'
xmodmap -e 'keycode 176 = XF86AudioMute'
xmodmap -e 'keycode 162 = XF86AudioPlay'
xmodmap -e 'keycode 146 = XF86AudioNext'
xmodmap -e 'keycode 164 = XF86AudioPrev'
xmodmap -e 'keycode 160 = XF86AudioStop' |
(keycodes reported are examples).
Unluckily, keys i want to map (special keys on HP Pavilion dv9244ea laptop) have not a keycode.
Well, you say, find the scancode with xev, and associate a free keycode with xmodmap.
The problem is that xev doesn't give a scancode on the press event of these keys.
output of xev (pressing next track key)
Code: | KeymapNotify event, serial 29, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
output of xev (pressing a "normal" key, F10)
Code: | KeyPress event, serial 29, synthetic NO, window 0x3400001,
root 0x1a5, subw 0x0, time 1256863135, (961,811), root:(967,886),
state 0x10, keycode 76 (keysym 0xffc7, F10), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 29, synthetic NO, window 0x3400001,
root 0x1a5, subw 0x0, time 1256863204, (961,811), root:(967,886),
state 0x10, keycode 76 (keysym 0xffc7, F10), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
|
Gnome, instead, maps these keys with a exadecimal code, example:
I just cant understand why gnome can map these keys, why X cant...
Any help is appreciated, i am just getting crazy, so thanks in advance. _________________ Try to know! |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
|
Back to top |
|
|
mimmozzo n00b
Joined: 11 Nov 2006 Posts: 13
|
Posted: Sun Nov 18, 2007 2:15 am Post subject: |
|
|
Thanks for help...
I have only a doubt, if I swap to compiz, will these work? They seem to be handled by metacity... _________________ Try to know! |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Sun Nov 18, 2007 8:46 am Post subject: |
|
|
No idea. I got that link from a google search; I've never done what it says. |
|
Back to top |
|
|
mimmozzo n00b
Joined: 11 Nov 2006 Posts: 13
|
Posted: Sun Nov 18, 2007 11:25 am Post subject: |
|
|
It didnt work... btw i emerged rhythmbox, was getting bored ty anyway _________________ Try to know! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|