Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: The most useless key on my keyboard is:

by Anonymous Monk
on Nov 27, 2005 at 15:39 UTC ( [id://512027]=note: print w/replies, xml ) Need Help??


in reply to Re: The most useless key on my keyboard is:
in thread The most useless key on my keyboard is:

Hello,
I definitely use Caps Lock. Its original purpose is not only useless but even harmful, as I press it accidentally too often. Thus, I've remapped it to write accented letters: it's easy because it's not too far to reach and I can hold it with my left hand while I type the accented letters with my right. It now works like this both on console and X.
I'm curious to know how you did to map your capslock key to do that, could you point me to revelent infos or tell me what to do to get that behaviour too?

Thanks.

Replies are listed 'Best First'.
Re^3: The most useless key on my keyboard is:
by ambrus (Abbot) on Nov 27, 2005 at 19:54 UTC

    On the linux console, the loadkeys program loads a keymap. This program is part of the kbd package, and is usually invoked from an init script. Its input is a readable text file, which you can probably find if you follow the init scripts. You can also dump the keymap in this format with the dumpkeys utility.

    On my Gentoo system, the keymaps are in the /usr/share/keymaps, and the default keymap is given in the /etc/rc.conf file. I've set this to my keymap which I've made by changing and existing keymap (this modified keymap predates my Gentoo system though, I have it from the time I've been using SuSE).

    Here I include some relevant parts from the keymap file.

    The trickyer part is to get the keys right under X. I didn't do this part all alone, rather, I copied the configuration from a good friend and only done a couple of modifications on it. This configuration program loads a keymap with the xmodmap program (which should be on your system if you have X). I start this configuration program from my .xinitrc file so that it would start on every X session (depending on the X login manager, you may need to use a different file for this).

    I show some parts of this configuration too.

    (There are some other tricky details needed to set up X correctly to use national characters, but they aren't quite relevant to the caps-lock hack, so I won't show them here.)

    For further information, see the manpages of the above mentioned utilities, and also http://www.inf.bme.hu/~pts/pts-console-hu-latest.tar.gz; http://www.madore.org/~david/linux/.

    If anyone needs them, I can upload a copy of the exact config files I use.

      Thanks for such a quick reply and for the links, it is really helpfull.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://512027]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 14:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found