on Tue, Jul 09, 2002, James Hughes (jhughes@kos.net) wrote:
> On Tue, Jul 09, 2002 at 08:31:08AM -0400, James Hughes wrote:
> > Hello,
> >
> > I like X, but lately I've been wanting to work a little more in
> > the console. One thing is missing, however.
> >
> > In X, I can remap the ctrl and caps-lock keys using xmodmap. Is
> > this possible in console mode? Caps-lock works much better as the ctrl
> > key.
> >
> > Thanks in advance for any pointers,
> >
> > James
>
> Um, never mind...
> A little googling showed me that `man dumpkeys` and `man loadkeys`
> are my friends in this case. A simple edit of /etc/console/boottime.keymap,
> and there you go...my left pinky's in heaven.
If anyone's interested, following remaps <ctrl> and <caps-lock> for me.
Because it includes the standard keymap (us.kmap.gz), which I've copied
to /etc so that it's available on boot *before* other partitions are
mounted, it's pretty short.
------------------------------------------------------------------------
/etc/console/default.kmap.gz (unzipped)
------------------------------------------------------------------------
# modified us.map
keymaps 0-2,4-6,8-9,12
alt_is_meta
include "/etc/console/us.kmap.gz"
strings as usual
# Swap caps-lock and control
keycode 58 = Control
keycode 29 = Caps_Lock
------------------------------------------------------------------------
Peace.
--
Karsten M. Self <kmself@ix.netcom.com> http://kmself.home.netcom.com/
What Part of "Gestalt" don't you understand?
If spam is the question, Spamassassin is the answer.
http://spamassassin.taint.org/
Attachment:
pgpqnFdvhFUgc.pgp
Description: PGP signature