From owner-freebsd-questions Thu Jul 30 12:41:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA06570 for freebsd-questions-outgoing; Thu, 30 Jul 1998 12:41:05 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA06564 for ; Thu, 30 Jul 1998 12:41:02 -0700 (PDT) (envelope-from rhh@ct.picker.com) Received: from ct.picker.com by whqvax.picker.com with SMTP; Thu, 30 Jul 1998 11:40:06 -0400 Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA25624; Thu, 30 Jul 98 11:40:04 EDT Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id LAA24968; Thu, 30 Jul 1998 11:39:42 -0400 Message-Id: <19980730113942.B24562@ct.picker.com> Date: Thu, 30 Jul 1998 11:39:42 -0400 From: Randall Hopper To: gkshenaut@ucdavis.edu, questions@FreeBSD.ORG Subject: Re: caps-lock/ctrl exchange Mail-Followup-To: gkshenaut@ucdavis.edu, questions@FreeBSD.ORG References: <199807292112.OAA19686@bogslab.ucdavis.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <199807292112.OAA19686@bogslab.ucdavis.edu>; from Greg Shenaut on Wed, Jul 29, 1998 at 02:12:06PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Shenaut: |This may be a very dumb question, but I haven't been able to find |the answer to it. I have several computers with the traditional |ctrl-next-to-A layout, and an increasing number with the bogus |but IBM-mandated ctrl-lost-somewhere-down-next-to-the-space-bar |layout, some of which are laptops so that I cannot just use an |alternate keyboard. There *must* be a way to swap these keys in |a way that will work with the standard console as well as with X |windows. Could someone please tell me how to do it? (A compile |time flag would be fine, a sysctl variable even better, an ioctl |on the kbd device would be best.) I swap these keys on the console and on X myself. Much easier on the fingers, especially in Emacs (Ctrl-). I see Johnathon already told you about how to do it on the console. For X, simply create file (e.g. $HOME/cfg/xmodmap/swapctlcaps) with this in it: ! ! Swap Caps_Lock and Control_L ! remove Lock = Caps_Lock remove Control = Control_L keysym Control_L = Caps_Lock keysym Caps_Lock = Control_L add Lock = Caps_Lock add Control = Control_L and add this command to your $HOME/.xinitrc: xmodmap - < $HOME/cfg/xmodmap/swapctlcaps Randall To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message