Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-04-2005, 03:35 PM   #1
Registered: May 2005
Location: Utah
Distribution: Fedora Core 4
Posts: 36

Rep: Reputation: 15
How do I switch the caps lock key out?

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!

Old 08-04-2005, 08:56 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,898

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
Have you investigated the man pages for 'keymaps' and 'xmodmap'?
Old 08-05-2005, 02:00 PM   #3
Registered: May 2005
Location: Utah
Distribution: Fedora Core 4
Posts: 36

Original Poster
Rep: Reputation: 15
Unhappy 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/, and rebooted my machine. Still no change. Nothing seams tobe having any effect at all


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
KVM-switch problem no scroll-lock key agts Linux - Newbie 8 12-21-2011 10:44 PM
switch caps lock and ctrl without X? rgiggs Slackware 2 01-26-2005 02:31 AM
RedHat 9.0 freezes with blinking Caps lock and Scroll lock queen-bee Linux - Software 0 07-30-2004 11:40 PM
switch caps lock and left control rgiggs Slackware 1 07-13-2004 01:14 PM
caps lock key neo77777 Linux - General 4 02-02-2002 12:32 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration