Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!uwm.edu!lll-winken.llnl.gov!noc.near.net!saturn.caps.maine.edu!news.ycc.yale.edu!remote1-line12.cis.yale.edu!mrami From: mrami@remote1-line12.cis.yale.edu (Marc Ramirez) Newsgroups: comp.os.386bsd.misc Subject: Re: UNIX-style keyboards Date: 11 Dec 1994 18:22:59 GMT Organization: Yale University Student Host Lines: 24 Message-ID: <3cfg23$5ra@news.ycc.yale.edu> References: <3c01fk$fhb@news.panix.com> <1994Dec5.224620.13596@fsl.noaa.gov> <JUN.94Dec10152202@fox.fax.iwa.fujixerox.co.jp> NNTP-Posting-Host: remote1-line12.cis.yale.edu X-newsreader: xrn 7.00 I don't know about kbdcontrol, since I use X fairly exclusively, but I do have a 'different' default keyboard mapping. I map F1 to NumLock, then NumLock, KP /, KP *, and KP - to PF1, PF2, PF3, and PF4, and backspace to delete (okay, I really need an LK-201 :). The keycodes I found with xev, and the names are in (for me, at least) /usr/X11R6/include/X11/keysymdef.h. You are probably looking for something like: xmodmap -e "clear Lock" # clear X's notion of Caps Lock xmodmap -e "clear Control" # ... and Conrtol xmodmap -e "keycode 66 = Control_L" # make Left Control key #66 xmodmap -e "keycode 37 = Caps_Lock" # ... and Caps Lock #37 (from xev) xmodmap -e "add Lock = Caps_Lock" # reinstate Caps_Lock as the caps key xmodmap -e "add Control = Control_L" # and Control_L as the control key I just tried this, and it works for me. You're absolutely right, it is incredibly annoying to have your caps lock and control reversed! 8-) Marc. -- DeForrest Gump - "Dammit, Jim! Life is like a box of chocolates!"