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 Message-ID: <199611090057.TAA19466@elmer.ct.picker.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199611090057.TAA19466>