From owner-freebsd-questions Mon Jan 26 15:35:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA20952 for questions-outgoing; Mon, 26 Jan 1998 15:35:35 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from whqvax.picker.com (whqvax.picker.com [144.54.1.1]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id PAA20938 for ; Mon, 26 Jan 1998 15:35:23 -0800 (PST) (envelope-from rhh@ct.picker.com) Received: from ct.picker.com by whqvax.picker.com with SMTP; Mon, 26 Jan 1998 17:34:19 -0500 (EST) Received: from elmer.ct.picker.com by ct.picker.com (4.1/SMI-4.1) id AA06357; Mon, 26 Jan 98 17:34:17 EST Received: by elmer.ct.picker.com (SMI-8.6/SMI-SVR4) id RAA17707; Mon, 26 Jan 1998 17:32:47 -0500 Message-Id: <19980126173246.37663@ct.picker.com> Date: Mon, 26 Jan 1998 17:32:46 -0500 From: Randall Hopper To: "Jeffrey M. Metcalf" Cc: questions@FreeBSD.ORG Subject: Re: Q: Can users customize their keyboard mappings? References: <000b01bd27aa$b60757a0$a40b3ccc@metcaljm_home.res.utc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: <000b01bd27aa$b60757a0$a40b3ccc@metcaljm_home.res.utc.com>; from Jeffrey M. Metcalf on Thu, Jan 22, 1998 at 09:57:52PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk Jeffrey M. Metcalf: |I am sure that there must be a way for users to |customize their keyboard mappings. It is obvious |from rc.conf that global keyboard mappings can be |set with kbdcontrol, but I was hoping somebody could |tell me the best way for users to remap the keyboard |settings for their and only their shells. | |Specifically, I would like to have the global keyboard |mapping set to the US standard (QWERTY), but some of |my users want to set theirs to DVORAK. Any ideas? |I'm running FreeBSD-2.2.2. I'm no keyboard-remapping GURU. I only remap two keys on my keyboard in both X and on the syscons console. So I'll just pass on what I did. For X, in .xinitrc: > xmodmap - << EOF 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 EOF For syscons, copy /usr/share/syscons/keymaps/us.iso.kbd somewhere, make these mods: < 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 And then point keymap="..." to it in rc.conf. You mention dvorak. Just browsing here, I see that there are us.dvorak.kbd and us.dvorakx.kbd keymaps in /usr/share/syscons/keymaps, in addition to the standard us.iso.kbd. So to satisfy your users, what it sounds like you want is a default set of kbdcontrols/xmodmaps in the global profile (shell startup scripts for console or xinitrc for X), and user-overrides in their local profiles (shell startup scripts or .xinitrc for X). Randall