From owner-freebsd-questions@FreeBSD.ORG Tue Jan 11 10:38:32 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 143B416A4CE for ; Tue, 11 Jan 2005 10:38:32 +0000 (GMT) Received: from male.aldigital.co.uk (male.thebunker.net [213.129.64.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFF1243D64 for ; Tue, 11 Jan 2005 10:38:30 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from gravitas.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by male.aldigital.co.uk (Postfix) with ESMTP id CD82797773; Tue, 11 Jan 2005 10:38:29 +0000 (GMT) Received: from [127.0.0.1] (localhost [127.0.0.1])j0BAcLOI028277; Tue, 11 Jan 2005 10:38:29 GMT (envelope-from m.seaman@infracaninophile.co.uk) Message-ID: <41E3AC96.4010008@infracaninophile.co.uk> Date: Tue, 11 Jan 2005 10:38:14 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Mozilla Thunderbird 1.0 (X11/20041229) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joe Schmoe References: <20050111002612.66934.qmail@web53309.mail.yahoo.com> In-Reply-To: <20050111002612.66934.qmail@web53309.mail.yahoo.com> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA7BF4F61EC7FD46E3A2002F9" cc: freebsd-questions@freebsd.org Subject: Re: switching key mappings on a laptop (function and ctrl) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Jan 2005 10:38:32 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA7BF4F61EC7FD46E3A2002F9 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Joe Schmoe wrote: > I have a new laptop that has the FN (function) key in > the very lower left, and the CTRL key one key to the > right of it ... > > but I like the CTRL key to be in the far lower left > ... > > Is it possible to switch the function of these two > keys (not just in X, but in the console, virtual > terminals, etc.) Yes, this is certainly possible. In fact, there are two separate mechanisms for doing this -- one for use under X-win, the other for use under the console. Under X, see xmodmap(1) and the sections in X(7) on keyboards, and these other man pages: % man -k xkb setxkbmap(1) - set the keyboard using the X Keyboard Extension xkbcomp(1) - compile XKB keyboard description xkbevd(1) - XKB event daemon xkbprint(1) - print an XKB keyboard description For modifying the console see kdbcontrol(1), kbdmap(1), kbdmap(5) -- the keymap files in /usr/share/syscons/keymaps are pretty easy to understand and create customised versions of. See also the allscreens_kbdflags variable in /etc/defaults/rc.conf for how to get your changes to happen automatically on reboot. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 8 Dane Court Manor School Rd PGP: http://www.infracaninophile.co.uk/pgpkey Tilmanstone Tel: +44 1304 617253 Kent, CT14 0JL UK --------------enigA7BF4F61EC7FD46E3A2002F9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iQCVAwUBQeOsnJr7OpndfbmCAQIdUwQA2TCJP3B8hBupVucxJ1ETTKcgwqNP5QGf 5hyD3Z5YOkBn2ftiKllJjcKBG+HqN5ehta5oo/vvI8lDpwx82crtcER9pjGGpD8W CEyvgmi/kz88+a3nIGyPthNxmTz2FSGCNXcq8LejuBotQZs6+EvWq/o2F+znwuM2 AJ+cXOC4RAg= =5y3V -----END PGP SIGNATURE----- --------------enigA7BF4F61EC7FD46E3A2002F9--