LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How do I switch the caps lock key out? (https://www.linuxquestions.org/questions/linux-software-2/how-do-i-switch-the-caps-lock-key-out-350000/)

timcharper 08-04-2005 02:35 PM

How do I switch the caps lock key out?
 
Hi
I want to get rid of the caps lock key and make it something useful, like an enter key or a backspace key (so i don't have to reach so far to hit them)

I've made this file ~/.xmodmaprc contain the following
remove Lock = Caps_Lock
keysym Return = Caps_Lock

when I execute it, via xmodmap ~/.xmodmaprc, it makes caps lock behave as the enter key, but it still turns caps lock on.

anyone have a clue how to eliminate the caps lock key for good?
thanks in advance!

Tim :Pengy:

bigrigdriver 08-04-2005 07:56 PM

Have you investigated the man pages for 'keymaps' and 'xmodmap'?

timcharper 08-05-2005 01:00 PM

hmmm
 
thanks so much for your reply! I tried investing that... but couldn't get any results


first, I logged in as root. then I typed dumpkeys > keys.txt

then, with vi, I edited the file keys.txt to change the line:
keycode 58 = Caps_Lock
to this:
keycode 58 = Return

I then typed:
loadkeys keys.txt

Nothing happened :(

I copied the modified keymap file to /usr/src/linux/drivers/char/defkeymap.map, and rebooted my machine. Still no change. Nothing seams tobe having any effect at all :(


All times are GMT -5. The time now is 04:19 PM.