Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by Anonymous Monk
on Nov 27, 2005 at 15:39 UTC ( #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.


Comment on Re^2: The most useless key on my keyboard is:
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
Node Status?
node history
Node Type: note [id://512027]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (9)
As of 2014-12-27 07:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls