🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.editors
Article #3930

Cool trick : Ctrl & Caps Lock Trading Jobs

#3930
From: Steve
Date: Thu, 22 Aug 2002 22:02
58 lines
3225 bytes
A coworker recently told me about a keyboard designed for *nix
technologies called the "happy hacker keyboard".

One of the features that I was very impressed with was that the Ctrl
key located where the Caps Lock would have been on a conventional (
post 1990 ) pc keyboard.

I couldn't get over what a wonderful thing that would be.

The "normal" postion of the Caps Lock key is in a very friendly
position, yet I only use Caps Lock maybe  2-3 times a week if that,
but I use the Ctrl key to execute commands from all sorts of apps
about a zillion times a day.

Anyway, if you are using X-windows you don't have to spend the $40
-$60 for the happy hacker keyboard if this is the only feature you
want.

You can set up Xwindows to make the Caps Lock key act like the Ctrl
key and vice -versa.

Just put these lines in your ~/.Xmodmap file ( ~ == your home
directory ):

!! ~/.Xmodmap
!!
!! The leading `!' is the comment sign.
!!
!! Please note: the natural way to assign keys are their keycodes.
!! The only problem is, that keycodes do depend on the architecture,
!! therefore keysymbols are used herein.  This has the disadvantage
!! that this file can only be called once with the program xmodmap.
!! To get keycodes of the keys use the program xev.
!! The system Xmodmap is /usr/X11R6/lib/X11/Xmodmap, have a look.

!! First example: Swap control key with caps lock key just like on
!! lk401 from DEC or type 4 from Sun Microsystems
remove Lock      = Caps_Lock
remove Control   = Control_L
keysym Caps_Lock = Control_L
keysym Control_L = Caps_Lock
add    Lock      = Caps_Lock
add    Control   = Control_L

To be safe read the man page for "xmodmap".

These lines were already in my /~.Xmodmap file, all I had to do was
comment them out.  I am use Gnu Linux, Suse 7.2.  Your distro may
already have these lines in there, if not the man page for xmodmap has
a similar example you can cut/paste.

If you use emacs, vi or another keyboard intense application you
should give it a try.  Its an amazing difference having your "Ctrl"
key up where Caps Lock is.

Enjoy!

Steve
Technical Details
Message-ID: <6f8cb8c9.0208221402.c1b75d1@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff485,b1ecdedf52c5aa0f,start
X-Google-Attributes: gidff485,public
X-Google-Thread: 102b9a,b1ecdedf52c5aa0f,start
X-Google-Attributes: gid102b9a,public
X-Google-Thread: 103b8b,b1ecdedf52c5aa0f,start
X-Google-Attributes: gid103b8b,public
X-Google-Thread: 107393,b1ecdedf52c5aa0f,start
X-Google-Attributes: gid107393,public
X-Google-ArrivalTime: 2002-08-22 15:02:49 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail
From: stevesusenet@yahoo.com (Steve)
Newsgroups: comp.editors,comp.emacs,gnu.emacs.help,alt.religion.emacs
Subject: Cool trick :  Ctrl & Caps Lock  Trading Jobs
Date: 22 Aug 2002 15:02:48 -0700
Organization: http://groups.google.com/
Lines: 58
Message-ID: <6f8cb8c9.0208221402.c1b75d1@posting.google.com>
NNTP-Posting-Host: 166.90.31.37
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1030053768 19633 127.0.0.1 (22 Aug 2002 22:02:48 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 22 Aug 2002 22:02:48 GMT