From owner-freebsd-questions@FreeBSD.ORG Wed Mar 25 13:32:10 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 A51CBB24 for ; Wed, 25 Mar 2015 13:32:10 +0000 (UTC) Received: from vps.markoturk.info (vps.markoturk.info [95.154.208.14]) by mx1.freebsd.org (Postfix) with ESMTP id 6C537295 for ; Wed, 25 Mar 2015 13:32:10 +0000 (UTC) Received: by vps.markoturk.info (Postfix, from userid 1001) id C5DC02739D; Wed, 25 Mar 2015 14:31:55 +0100 (CET) Date: Wed, 25 Mar 2015 14:31:55 +0100 From: Marko Turk To: freebsd-questions@freebsd.org Subject: Re: tried everything (Swap Caps_Lock and Control_L) nothing works! Message-ID: <20150325133155.GA56359@vps.markoturk.info> References: <20150325125708.GH3131@itcom245.staff.itd.umich.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="n8g4imXOkfNTN/H1" Content-Disposition: inline In-Reply-To: <20150325125708.GH3131@itcom245.staff.itd.umich.edu> User-Agent: Mutt/1.5.23 (2014-03-12) 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 13:32:10 -0000 --n8g4imXOkfNTN/H1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 25, 2015 at 08:57:08AM -0400, 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. >=20 > Here is what I have now (yes, both -- belt and suspenders...): >=20 > unix% head -6 $HOME/.xmodmaprc > remove Lock =3D Caps_Lock > remove Control =3D Control_L > keysym Control_L =3D Caps_Lock > keysym Caps_Lock =3D Control_L > add Lock =3D Caps_Lock > add Control =3D 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 >=20 > I have rebooted the system as well as restarting Xorg to make sure > everything was running from a fresh beginning. >=20 > One of the above should have worked, but in my xterm window(s) the > caps lock is still CAPS LOCK, sigh... Can anyone provide a clue? >=20 Hi, this works for me (I put it in .xinitrc): setxkbmap -option ctrl:nocaps BR, Marko --n8g4imXOkfNTN/H1 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJVErjLAAoJEDcRe7P/w1sjocAP/2hrzq2hxB1Mp3uE6DGkqtIy hZmv+PQQ0vlqpK+op2L6UqXoW8lymcNyBDA2qm7n9hbQL9e0GT06EtXrwoZy8rSd 3oKeWOQUoXLo6OACJXqPkeY2gsWWxbMFFcKWJR0ZzrWP14N3gFwjN1+2vyRxwr7p 3aqop7nMHCHkgIb40p54Ta3tFJhCohN7oCPGMMJ16BhF/ZmkXVVLRCEyCiCnhFZZ n0/sF2aLt/FLqNLX7lcMmPJgGyt5+6z2pYMAiY3P0T5Egf4/mq0ElR/d7IUkzgI0 20Wn8lQSMSyJUEyX+DvF60p+dlm9lrnbkDTV28qVTzmKMZHPjJG5LQzMQ9EL3iKz hHqKqNgkePdFUtF6bli+vDt2MJpl1j1hp+t0i6VSP1qRasbxW/iPjXLKuBlHmQsQ qsm4vI8MKQZ+ZxY2WaoVAg8hqTfc/yx3OlUHB6zhIpVPGvK80TnS1z3Hh2UtyJ9i gI8k0moDbhTBStfV97wyTrQsvKyQzVxEJ1QKJlWB2ZUQlYrJb8RQuQ8CxgGG6blr m/1k7B9tYldw3m0dGw2zNPePBU/xXBE4MEuhuYZtO2TeFTqKaoBNpKqFsVBGQach i6yCG3DLjDS5dZdaxnvBUcK8AZoAQtNu6L35fz2hLpC/cOqjsc6WlG79poOqN/If 0RoS8o+205oLqpxG3aZi =KbMD -----END PGP SIGNATURE----- --n8g4imXOkfNTN/H1--