From owner-freebsd-questions@FreeBSD.ORG Wed Mar 25 14:13:28 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C586CBA1 for ; Wed, 25 Mar 2015 14:13:28 +0000 (UTC) Received: from mail.monochrome.org (e.febed1.client.atlantech.net [209.190.254.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail", Issuer "mail" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7AC20A34 for ; Wed, 25 Mar 2015 14:13:27 +0000 (UTC) Received: from [192.168.1.11] (tripel [192.168.1.11]) by mail.monochrome.org (8.14.9/8.14.9) with ESMTP id t2PECBHt090633 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 25 Mar 2015 10:12:12 -0400 (EDT) (envelope-from chris@monochrome.org) Date: Wed, 25 Mar 2015 10:12:53 -0400 (EDT) From: Chris Hill To: William Bulley Subject: Re: tried everything (Swap Caps_Lock and Control_L) nothing works! In-Reply-To: <20150325125708.GH3131@itcom245.staff.itd.umich.edu> Message-ID: References: <20150325125708.GH3131@itcom245.staff.itd.umich.edu> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Cc: 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:13:28 -0000 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. Here's mine, which works. Note the capital X. chris@tripel$ more /usr/home/chris/.Xmodmap ! Straight from the man page... ! ! 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... chris@tripel$ grep odmap .xinitrc usermodmap=$HOME/.Xmodmap sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap if [ -f $sysmodmap ]; then xmodmap $sysmodmap if [ -f $usermodmap ]; then xmodmap $usermodmap I don't have an xorg.conf. HTH. -- Chris Hill chris@monochrome.org ** [ Busy Expunging ]