From owner-freebsd-questions Fri Nov 8 17:04:30 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA24144 for questions-outgoing; Fri, 8 Nov 1996 17:04:30 -0800 (PST) Received: from central.picker.com (central.picker.com [144.54.31.2]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id RAA24091 for ; Fri, 8 Nov 1996 17:04:04 -0800 (PST) Received: from ct.picker.com by central.picker.com with smtp (Smail3.1.28.1 #3) id m0vM1mM-0004sJC; Fri, 8 Nov 96 20:00 EST Received: from elmer.ct.picker.com ([144.54.57.34]) by ct.picker.com (4.1/SMI-4.1) id AA27035; Fri, 8 Nov 96 19:57:47 EST Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id TAA19466; Fri, 8 Nov 1996 19:57:23 -0500 Message-Id: <199611090057.TAA19466@elmer.ct.picker.com> Date: Fri, 8 Nov 1996 19:57:23 -0500 From: rhh@ct.picker.com (Randall Hopper) To: dcoffin@intermind.com Cc: questions@freebsd.org Subject: Re: Remapping the Caps Lock Key X-Mailer: Mutt 0.49 Mime-Version: 1.0 Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Don Coffin writes: > I was wondering if anyone has a keyboard map file that > remaps the Control key to the Caps Lock key. Failing > that, could you walk me through the remapping process > using "kcon" or something similar...? I do the same thing. With the PC AT & newer Sun keyboards, you about have to if you use Emacs (unless your pinky finger's double jointed :-) For X Windows: xmodmap - < $HOME/cfg/swapctlcaps where $HOME/cfg/swapctlcaps contains: 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 For syscons: Tweak the keymap setting in /etc/sysconfig: # Choose keyboard map from /usr/share/syscons/keymaps/* or NO if default. #keymap=NO keymap=/opt/share/syscons/keymaps/swapctlcaps.kbd and create swapctlcaps.kbd, where the contents is the output of "kbdcontrol -d < /dev/ttyv0" with the following diffs applied (assuming you're using an AT-style keyboard): < 029 lctrl lctrl lctrl lctrl lctrl lctrl lctrl lctrl O --- > 029 clock clock clock clock clock clock clock clock O < 058 clock clock clock clock clock clock clock clock O --- > 058 lctrl lctrl lctrl lctrl lctrl lctrl lctrl lctrl O Randall Hopper rhh@ct.picker.com