[Novalug] "Exorcising Caps Lock"
Nino Pereira
pereira at speakeasy.net
Tue Jul 10 19:37:30 EDT 2007
Don,
how do you read that boottime.kmap.gz file? Do you have
to unpack it first?
Nino
donjr wrote:
> On Tue, 2007-07-10 at 16:01 -0400, Doug Toppin wrote:
>> I haven't messed with the kbd config in quite a while but I frequently
>> seem to hit caps lock when I'm not paying attention and it completely
>> messes me up when in vim. The following has some useful little tips
>> on that subject:
>>
>> http://www.enterprisenetworkingplanet.com/netos/article.php/3687781
>>
>> I don't think that I've ever kept caps lock on so turning it off with:
>> modmap -e "remove lock = Caps_Lock"
>>
>> is about to become my default I think.
>>
>> Doug
>
> Oh I guess you mean:
> xmodmap -e "remove lock = Caps_Lock"
> /\ note the 'x'
>
> Also note the 'xmodmap' program only works when you're using an
> X-display.
> {-: IOW it DON'T work from plan old console type text terminals. :-}
>
> As the author of the above article pointed out if you are using Gnome or
> KDE do check out there "User Preference Keyboard" configuration utils as
> it may have a simple way to do what you want with NO hand editing of
> those nasty .*rc files, that a simple keystroke mistake can even prevent
> you from logging in.
>
> BTW
> Do you want to also handle it in at the console text terminals level?
> Then check out the program 'loadkeys'.
> The command in order to have the same effect is:
> echo 'keycode 58 = ' | loadkeys
>
> On Debian based systems see the file /etc/console/boottime.kmap.gz
> WARNING: if you decide to touch be VERY VERY careful. WARNING
>
> --
More information about the Novalug
mailing list