Results 1 to 2 of 2

Thread: Identifying and using non-standard keys

  1. #1
    Join Date
    Dec 2004
    Location
    Stroud, UK
    Beans
    38

    Identifying and using non-standard keys

    Key bindings for special keys?

    I've reverted to Openbox after a while away, having inherited a slow old laptop.
    I use it with a plug-in keyboard and stand: "Logitech Alto keyboard"
    This thing has special keys to control volume and so on.

    How can I find out the key value for these special keys?
    Once I know this, how do I use them in my Openbox config?

  2. #2
    Join Date
    Jan 2008
    Location
    Cape Town, South Africa
    Beans
    23
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Identifying and using non-standard keys

    To find keycode run
    Code:
    xev
    position your cursor on the window that pops up (ignore output on terminal about mouse movements). Then press the key and note the output in the terminal.

    To set the keycode to another value

    Code:
    xmodmap -e "keycode xx = some-key-value-here"
    where xx is the keycode of the key and an example of some-key-value is Alt_L. (The man page of xmodmap contains some useful examples.)

    To see your current keyboard mapping (which will show keycodes and corresp values assigned to keys) type

    Code:
    xmodmap -pke

    To make these changes permanent you will then have to edit the keyboard map file.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •