You are not logged in.

#1 2010-12-22 16:47:52

Kaloos
Member
Registered: 2009-04-27
Posts: 29

[SOLVED] Hotkeys and Xmodmap

Hi,

I need to know why i don't have /usr/share/X11/XKeysymDB on my setup. I need it to configure hotkeys.
In fact i tried to use that configuration for my .Xmodmap :

keycode 164 = XF86AudioPlay
keycode 166 = XF86AudioStop
keycode 114 = XF86AudioLowerVolume
keycode 115 = XF86AudioRaiseVolume
keycode 165 = XF86AudioPrev
keycode 163 = XF86AudioNext
keycode 113 = XF86AudioMute

I found the keycodes with showkeys but after typing xmodmap ~/.Xmodmap, there is only the Stop button which works.

Thanks in advance !

Kaloos


EDIT : Solved by using xev to get the keycodes instead of showkeys. I don't know why but they were all wrong.

Last edited by Kaloos (2010-12-25 17:08:29)

Offline

#2 2010-12-22 17:12:56

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Hotkeys and Xmodmap

Which package do you expect to have that file?
/usr/share/X11/XKeysymDB returns no results from http://arm.konnichi.com/find

Offline

#3 2010-12-22 19:24:15

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [SOLVED] Hotkeys and Xmodmap

I don't know. In this wiki page it says that special functions can be found in /usr/share/X11/XKeysymDB, which i don't have. And there is no explanation on how to get this file.

One more thing : In Qmmp, when i press on the stop button , Qmmp receives XF86AudioPlay even though i'm sure it's the key 166 which should be mapped to XF86AudioStop.

Last edited by Kaloos (2010-12-22 19:30:33)

Offline

#4 2010-12-22 19:33:31

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Hotkeys and Xmodmap

Try this one http://cgit.freedesktop.org/xorg/lib/li … bd2a2b99d5
You have sort of an explanation why it isn't there anymore.

Last edited by karol (2010-12-22 19:38:16)

Offline

#5 2010-12-22 20:00:18

Kaloos
Member
Registered: 2009-04-27
Posts: 29

Re: [SOLVED] Hotkeys and Xmodmap

Thanks for your time, but it doesn't work.
I found something to tell me what hal events a program would receive if I pressed those buttons, and I get the right ones :

[alexb@Arch ~]$ lshal -m program

Start monitoring devicelist:
-------------------------------------------------
20:56:03.791: usb_device_1532_10b_noserial_if1_logicaldev_input condition ButtonPressed = play-pause
^@20:56:05.319: usb_device_1532_10b_noserial_if1_logicaldev_input condition ButtonPressed = stop-cd
20:56:06.431: usb_device_1532_10b_noserial_if1_logicaldev_input condition ButtonPressed = volume-down
^@20:56:06.983: usb_device_1532_10b_noserial_if1_logicaldev_input condition ButtonPressed = volume-up
^@20:56:07.751: usb_device_1532_10b_noserial_if1_logicaldev_input condition ButtonPressed = previous-song
^@20:56:08.343: usb_device_1532_10b_noserial_if1_logicaldev_input condition ButtonPressed = next-song
^@20:56:09.287: usb_device_1532_10b_noserial_if1_logicaldev_input condition ButtonPressed = mute

Now how do I get Qmmp to use these events ?

Offline

Board footer

Powered by FluxBB