*BSD News Article 96410


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!uunet!in3.uu.net!128.230.129.106!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!su-news-hub1.bbnplanet.com!news.bbnplanet.com!newsout1.alt.net!news1.alt.net!inquo!news.mira.net.au!news.netspace.net.au!news.mel.connect.com.au!news.syd.connect.com.au!phaedrus.kralizec.net.au!gurney.zeta.org.au!usenet
From: andrew@gurney.zeta.org.au (Andrew Reilly)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Control, CapsLock key switch
Date: 29 May 1997 02:53:46 GMT
Organization: Andrew and Catherine Reilly at home
Lines: 40
Message-ID: <5mir3q$r3q@gurney.zeta.org.au>
References: <timleeEAs1HF.GyM@netcom.com> <5mfh3t$bel$1@bofh.noc.best.net>
    <timleeEAvLsM.3F1@netcom.com>
Reply-To: reilly@zeta.org.au
NNTP-Posting-Host: d18.syd2.zeta.org.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41789

In article <timleeEAvLsM.3F1@netcom.com>,
	nobody@not.for.email (Timothy J. Lee) writes:
> rone@bofh.noc.best.net (Ron Echeverri) writes:
>|In article <timleeEAs1HF.GyM@netcom.com>,
>|Timothy J. Lee <see-signature-for-email-address---ads-not-welcome> wrote:
>|>On FreeBSD 2.2.1, /usr/X11R6/lib/X11/XF86Config has a line which
>|>supposedly causes the Control and CapsLock keys to be switched:
>|>
>|>	XkbOptions  "ctrl:swapcaps"
>|>
>|>But it (uncommented) has no effect when using X.  What else must
>|>be done, and is there a solution that also works when not using X?
>|
>|My XF86Config lives in /etc; does your X setup look in the location
>|you've given above?
> 
> If I edit the file so that it has errors, I'll see errors when I try
> to startx.

I've never tried to do it with the XFree config, but I've
been using an xmodmap line in my .xsession file for years,
with the following args in a file ~/.modmap_ctrl_lock:

!
! 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

Pretty sure that's straight out of the xmodmap man page.

-- 
Andrew Reilly: reilly@zeta.org.au                  +61 2 9559 5029 (h)
36 Acton St.         Senior DSP Design Engineer    +61 2 9233 8655 (w)
Hurlstone Park       Lake DSP Pty Ltd         Fax: +61 2 9233 8656 (w)
NSW 2193 Australia   GPO Box 4067, Sydney 2001