*BSD News Article 96315


Return to BSD News archive

From: David E. O'Brien <obrien@relay.nuxi.com>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Control, CapsLock key switch
Date: 27 May 1997 22:15:44 GMT
Organization: University of California, Davis
Lines: 34
Message-ID: <5mfmeg$732$1@mark.ucdavis.edu>
References: <timleeEAs1HF.GyM@netcom.com> <5mdc2m$kkj$7@mark.ucdavis.edu> <timleeEAtvyy.Hwt@netcom.com>
NNTP-Posting-Host: nuxi.ucdavis.edu
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.Hawaii.Edu!news.lava.net!news.flex.com!www.nntp.primenet.com!nntp.primenet.com!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!newsfeed.internetmci.com!news.wwa.com!news.ucdavis.edu!relay.nuxi.com!obrien
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:41713

Timothy J. Lee <nobody@not.for.email> wrote:
> Thanks, but this only works in non-X.  

Sorry, I thought that was what was being asked for.

> When using X after this kbdcontrol, the Control and CapsLock keys are
> still unswapped, regardless of whether the "ctrl:swapcaps" line in the
> XF86Config is commented or uncommented.  Any ideas?

Here is a Keyboard section that works for me:


Section "Keyboard"
   Protocol        "Standard"
   AutoRepeat      500 5
   LeftAlt         Meta
   RightAlt        Meta
   ScrollLock      Compose
   RightCtl        Control
   XkbKeycodes     "xfree86"
   XkbTypes        "default"
   XkbCompat       "default"
   XkbSymbols      "us(pc101)"
   XkbGeometry     "pc"
   XkbKeymap       "xfree86(us)"
   XkbRules        "xfree86"
   XkbModel        "pc101"
   XkbLayout       "us"
   XkbOptions      "ctrl:nocaps"
EndSection

-- 
-- David    (obrien@NUXI.com  -or-  obrien@FreeBSD.org)