From owner-freebsd-questions Sat Sep 9 12:26:24 2000 Delivered-To: freebsd-questions@freebsd.org Received: from manatee.mammalia.org (manatee.mammalia.org [216.231.50.6]) by hub.freebsd.org (Postfix) with ESMTP id 5DB2137B422 for ; Sat, 9 Sep 2000 12:26:22 -0700 (PDT) Received: by manatee.mammalia.org (Postfix, from userid 1000) id 929D711CFF4; Sat, 9 Sep 2000 12:26:21 -0700 (PDT) Date: Sat, 9 Sep 2000 12:26:21 -0700 From: R Joseph Wright To: freebsd-questions Subject: Re: switching the ctrl key to caps lock Message-ID: <20000909122621.A1158@mammalia.org> References: <20000909142600.A40697@dogma.freebsd-uk.eu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20000909142600.A40697@dogma.freebsd-uk.eu.org>; from jcm@FreeBSD-uk.eu.org on Sat, Sep 09, 2000 at 02:26:00PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG And j mckitrick spoke: > > I figured out how to do this in X, but does anyone know if this can be done > for console mode as well? And if so, how? > > jcm > -- > "I drank WHAT ?!" - Socrates There is a program called kbdcontrol which loads a keyboard map file, normally located in /usr/share/syscons/keymaps. I took the one I preferred, us.emacs.kbd, copied it to us.joseph.kbd, and switched these two lines from this: 029 lctrl lctrl lctrl lctrl lctrl lctrl lctrl lctrl O 058 clock clock clock clock clock clock clock clock O to this: 029 clock clock clock clock clock clock clock clock O 058 lctrl lctrl lctrl lctrl lctrl lctrl lctrl lctrl O Change the keymap by running: $ kbdcontrol -l /usr/share/syscons/keymaps/your.keymap I also put this in /etc/rc.conf: ### Load my customized keymap ### keymap=us.joseph.kbd Joseph To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message