You are not logged in.

#1 2010-07-10 20:36:55

dustinw
Member
Registered: 2009-03-16
Posts: 34

[SOLVED]showkey giving incorrect numbers

I'm trying to get my multimedia keys to work in openbox.
I used the showkey command and it told me that the keycode for my - volume button is 114
I created an Xmodmap file, edited my rc.xml file and rebooted.
the -volume key still doesn't work, but my right arrow button now turns down the volume. 
showkey tells me the right arrow button is 106

Xmodmap file:

keycode 114 = XF86AudioLowerVolume

rc.xml file:

    <keybind key="XF86AudioLowerVolume">
    <action name="Execute">
    <execute>amixer set Master 5- unmute</execute>
    </action>
     </keybind>

Is there another way to get keycodes or did I do something wrong?

Last edited by dustinw (2010-07-10 21:58:18)

Offline

#2 2010-07-10 21:32:17

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: [SOLVED]showkey giving incorrect numbers

Another way to get keycodes is using `xev`.

Offline

#3 2010-07-10 21:47:43

dustinw
Member
Registered: 2009-03-16
Posts: 34

Re: [SOLVED]showkey giving incorrect numbers

Proofrific wrote:

Another way to get keycodes is using `xev`.

That worked, thank you sir.

Offline

#4 2010-07-10 21:53:32

Proofrific
Member
Registered: 2008-01-05
Posts: 215

Re: [SOLVED]showkey giving incorrect numbers

dustinw wrote:

That worked, thank you sir.

Great!  Please edit the title of the thread so that "[SOLVED]" appears in the beginning.  So, it would be, "[SOLVED] showkey giving incorrect numbers".  Thanks!

Offline

Board footer

Powered by FluxBB