From owner-freebsd-questions@FreeBSD.ORG Thu Feb 28 14:22:14 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 722ED106566B for ; Thu, 28 Feb 2008 14:22:14 +0000 (UTC) (envelope-from jaj@hcl-club.lu) Received: from 0b10111.de (hcl-club.lu [62.75.155.129]) by mx1.freebsd.org (Postfix) with ESMTP id 29FF88FC15 for ; Thu, 28 Feb 2008 14:22:13 +0000 (UTC) (envelope-from jaj@hcl-club.lu) Received: from nirvana.my.domain (4be54-4-82-234-154-189.fbx.proxad.net [82.234.154.189]) by 0b10111.de (Postfix) with ESMTP id CB2B75FB80EC for ; Thu, 28 Feb 2008 14:04:39 +0000 (UTC) Received: by nirvana.my.domain (Postfix, from userid 1000) id 0B4F97ECF; Thu, 28 Feb 2008 15:03:38 +0100 (CET) Date: Thu, 28 Feb 2008 15:03:38 +0100 From: Jona Joachim To: questions@freebsd.org Message-ID: <20080228140338.GA4034@nirvana.my.domain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline X-PGP-Key: http://www.hcl-club.lu/~jaj/pubkey.asc User-Agent: Mutt/1.5.17 (2007-11-01) Cc: Subject: xmodmap not working from xinitrc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 14:22:14 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! My .xinitrc has an xmodmap tweak to switch the Ctrl and Caps keys. For some reason these changes are not applied when I start X, Ctrl is still= Ctrl and Caps is still Caps. However I have to run xmodmap twice when X has started to actually make it = work. It seems like the changes were applied but somehow not used by X, when I re= run xmodmap it seems like it switches the keys back to their original states an= d when I then run it again it finally works. Here's my .xinitrc: ------------------------ # X tweaks xsetroot -cursor_name left_ptr xset -b numlockx on xmodmap ~/.xmodmap # Desktop environment feh --bg-center ~/.themes/FreeBSD.jpg mydzen & xmonad & # Wait wait $! pkill dzen2 wait ------------------------ and here's my .xmodmap: ------------------------ 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 ------------------------ uname -a: FreeBSD nirvana.my.domain 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Wed Jan= 30 10:06:18 CET 2008 root@nirvana.my.domain:/usr/obj/usr/src/sys/HYPOC= ENTER i386 Installed versions: xorg-7.3_1 xmodmap-1.0.3 --=20 :wq Jona --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkfGvzoACgkQBLVThWGOYx73lgCgsYhwoXYzGOyLhZ+xwT/DUIDt YWQAnizXdi/RyidcvaqNtmkoz8buaBkD =i8QC -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT--