From owner-freebsd-questions@FreeBSD.ORG Wed Mar 25 14:19:57 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A1CE0F39 for ; Wed, 25 Mar 2015 14:19:57 +0000 (UTC) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5E214AAC for ; Wed, 25 Mar 2015 14:19:57 +0000 (UTC) Received: from r56.edvax.de (port-92-195-131-196.dynamic.qsc.de [92.195.131.196]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx02.qsc.de (Postfix) with ESMTPS id 9255C277CA; Wed, 25 Mar 2015 15:19:47 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id t2PEJkjf002654; Wed, 25 Mar 2015 15:19:46 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Wed, 25 Mar 2015 15:19:46 +0100 From: Polytropon To: Chris Hill Subject: Re: tried everything (Swap Caps_Lock and Control_L) nothing works! Message-Id: <20150325151946.88f90a76.freebsd@edvax.de> In-Reply-To: References: <20150325125708.GH3131@itcom245.staff.itd.umich.edu> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: William Bulley , freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Mar 2015 14:19:57 -0000 On Wed, 25 Mar 2015 10:12:53 -0400 (EDT), Chris Hill wrote: > On Wed, 25 Mar 2015, William Bulley wrote: > > > This is really annoying. I know I have used xmodmap(1) in the past > > and it served me well. I now have a Dell keyboard on a Dell system > > and I can't get the caps lock key swapped with the left control key. > > > > Here is what I have now (yes, both -- belt and suspenders...): > > > > unix% head -6 $HOME/.xmodmaprc > > 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 > > unix% grep modmap .xinitrc > > /usr/local/bin/xmodmap $HOME/.xmodmaprc > > unix% grep swap /etc/X11/xorg.conf > > Option "XkbOptions" "ctrl:swapcaps" > > unix% pkg info | grep xorg-server > > xorg-server-1.14.7_2,1 X.Org X server and related programs > > The filename might be case sensitive. It _is_, but he properly calls it: He cites "head -6 $HOME/.xmodmaprc" and "/usr/local/bin/xmodmap $HOME/.xmodmaprc", so this isn't a problem. Otherwise, the xmodmap program would report an error. This is my ~/.xinitrc entry for xmodmap, for comparison: [ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc You can always verify the desired xmodmap effect by calling it within an xterm. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...