LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-24-2005, 06:06 AM   #1
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Rep: Reputation: 30
switch caps lock and ctrl without X?


hi,
i can switch caps lock and the left control while running X with a properly configured xorg.config. however, sometimes, i run without X, which makes those 2 keys themselves. so can i switch caps lock and left control while not running X? if so, how?
thanks.
 
Old 01-25-2005, 09:52 AM   #2
vls
Member
 
Registered: Jan 2005
Location: The grassy knoll
Distribution: Slackware,Debian
Posts: 192

Rep: Reputation: 31
Re: switch caps lock and ctrl without X?

You need to edit a keymap in '/usr/share/kbd/keymaps/i386/qwerty'
defkeymap.map.gz is the default map loaded, I believe.

Copy it to another name:
$ cp my-keymap.map.gz
$ gunzip my-keymap.gz

Edit the file and change these two lines:
keycode 29 = Control
keycode 58 = Caps_Lock
to:
keycode 29 = Caps_Lock
keycode 58 = Control

Save the file then run:
$ loadkeys my-keymap.map

You should now be in business. Zip the file up:
$ gzip my-key.map

To set this up at boot time cd into /etc/rc.d/

Edit a file rc.keymap. Create it if it isn't there.

Add this to the file
loadkeys my-keymap.map
Save the file
NOTE: You don't have to call it my-keymap.gz; loadkeys knows to unzip the files.

$ chmod +x rc.keymap

and it will load at boot time.
 
Old 01-26-2005, 01:31 AM   #3
rgiggs
Member
 
Registered: Apr 2004
Location: berkeley, ca
Distribution: slk10, winxp
Posts: 313

Original Poster
Rep: Reputation: 30
sweeeeet!!! thanks a bunch.
 
  


Reply


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
Caps Lock and Num Lock leds dont work! npc Linux - Hardware 2 11-08-2005 10:40 AM
How do I switch the caps lock key out? timcharper Linux - Software 2 08-05-2005 01:00 PM
Num, Scroll, Caps/Lock all Lock up Slackware Zamochit Linux - Newbie 0 10-18-2004 07:47 PM
RedHat 9.0 freezes with blinking Caps lock and Scroll lock queen-bee Linux - Software 0 07-30-2004 10:40 PM
switch caps lock and left control rgiggs Slackware 1 07-13-2004 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:16 AM.

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