Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (Not For Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (Not For Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 20th June 2009, 01:58 PM
louise Offline
Registered User
 
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.
Reply With Quote
  #2  
Old 30th June 2009, 01:49 PM
Silpheed2K Offline
Registered User
 
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.
Reply With Quote
Reply

Tags
caps, disable, f10, f11, keys, lock, remap, xmodmap

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Light for caps lock, num lock etc. not working marie@dk Hardware & Laptops 9 21st June 2009 06:19 AM
Mouse freezes and the keyboard blinks the caps lock and scroll lock? vetkasi Using Fedora 6 10th June 2009 10:18 PM
remap keys: jguy Programming & Packaging 0 9th May 2007 06:19 AM
How to remap keys in textmode and X louise Guides & Solutions (Not For Questions) 1 30th October 2006 09:22 PM
How to remap keys in textmode? louise Using Fedora 0 29th May 2006 11:27 PM


Current GMT-time: 12:37 (Tuesday, 23-05-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat