[Novalug] "Exorcising Caps Lock"

donjr djr1952 at hotpop.com
Tue Jul 10 18:33:22 EDT 2007


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

--  
-- 
 Don E. Groves, Jr. 

$ /usr/games/fortune : 
 Perfect day for scrubbing the floor and other exciting things.


More information about the Novalug mailing list