[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: multimedia keyboard



leva@ecentrum.hu writes:
> Hello!
> 
> I have a Logitech Internet Navigator Keyboard, and I want to use the
> extra buttons on it (like e-mail, search etc...). Someone has
> recommended me the 'hotkeys' program. I have tried all of the
> supported keyboard's plugins, but no success. Neither of them
> supports all the buttons on my keyboard. I noticed that, these
> plugins are very simple, and can be easily adjusted, but it needs
> some "keycode" for every button. Now here is my question: How can I
> get those keycodes? How should I know my buttons keycode?  Or if you
> have another working program like 'hotkeys' that would be a great
> help too.

You're using X windows? If so you can use /usr/bin/X11/xev. If you're
talking about the Linux console then you can use showkey. 

Here's how I do what you're trying to do in X with the sawfish window
manager:

        1) Get the keycode(s) via xev

        2) Create a script with commands like:
                xmodmap -e 'keycode 223=F20'
                xmodmap -e 'keycode 158=F21'

        where 223 and 158, for example, are the keycode I found using
        xev. 

        (Note that I'm using F20, F21, etc., since those are already
        defined key symbols, but I don't have them on my
        keyboard. There is a way to define your own key symbols, but
        that info long ago dropped off the top of my memory stack).

        3) Now I go into sawfish customization (middle mouse on
           background)->Customize->Bindings and use sawfishes little
           GUI to assign these keys to some function. I assume other
           window managers have similar functionality.

Gary



Reply to: