FedoraForum.org - Fedora Support Forums and Community
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2005
    Posts
    57

    F10, F11: How to remap keys (disable Caps Lock and so on with xmodmap)

    In Fedora 10 they decided to change to "evdev", so if you used xmodmap in F9, these mapping have changed in F10 and F11 for that matter.

    In order to find the new key values start
    Code:
    xev
    and press a button you would like to know the keycode for. Write this value down.

    When done, make a file ".xmodmap" and put in the values. "man xmodmap" explains the format. Not easy to understand! So here is how mine looks like.

    Code:
    clear Lock
    keycode 112 = Caps_Lock
    keycode 118 = Delete
    keycode 119 = Home
    keycode 117 = End
    keycode 110 = Prior
    keycode 115 = Next
    keycode  49 = 0
    What is does:
    • * Disable Caps Lock
    • * Map Page Up (112) -> Caps Lock (because Caps was disabled in line one, this key is now completely dead)
    • * Map Delete (119) -> Home
    • * ...
    • * Map the law sign (49) -> 0


    Now start "gnome-session-properties" and click Add, and type in a title and the command should be
    Code:
    xmodmap /home/louise/.xmodmap
    and replace "louise" with your own user name.

    And before anyone asks why I have mapped the keys the way I have, then look at this

    Code:
    +--------+------+-------+
    |        |      |       |
    | Delete | Up   | Dead  |
    |        |      |       |
    +--------+------+-------+
    |        |      |       |
    | Left   | Down | Right |
    |        |      |       |
    +--------+------+-------+
    This layout is MUCH more logical than the original. Now Delete is the key just to the right of the Backspace key. Back spaces deletes to the left, and Delete deletes to the right, so these keys shoudl of course be next to each other

    Page Up, Page Down, Home, and End now have the same structure as the arrow keys below.

    This layout makes it much easier to navigate without looking at the keys, because now the layout makes sense

    And why shouldn't 0 be to the left of 1? of course it should. 0 is lower than 1.

  2. #2
    Join Date
    Aug 2008
    Posts
    587
    There's also a cool little program called xkeycaps you might want to check it.. makes things a bit easier.
    You can check it out by doing the following
    Code:
    su -
    yum install xkeycaps
    check it out and hope it helps.

Similar Threads

  1. Light for caps lock, num lock etc. not working
    By marie@dk in forum Hardware & Laptops
    Replies: 9
    Last Post: 21st June 2009, 06:19 AM
  2. Replies: 6
    Last Post: 10th June 2009, 10:18 PM
  3. remap keys:
    By jguy in forum Programming & Packaging
    Replies: 0
    Last Post: 9th May 2007, 06:19 AM
  4. How to remap keys in textmode and X
    By louise in forum Guides & Solutions (Not For Questions)
    Replies: 1
    Last Post: 30th October 2006, 10:22 PM
  5. How to remap keys in textmode?
    By louise in forum Using Fedora
    Replies: 0
    Last Post: 29th May 2006, 11:27 PM

Tags for this Thread

Posting Permissions

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