From owner-freebsd-questions Thu Jan 30 6:22:41 2003 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 7D41737B401 for ; Thu, 30 Jan 2003 06:22:40 -0800 (PST) Received: from oak1a.cats.ohiou.edu (oak.cats.ohiou.edu [132.235.8.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AF9743F79 for ; Thu, 30 Jan 2003 06:22:39 -0800 (PST) (envelope-from tq101100@ohio.edu) Received: from [192.168.0.2] (dhcp024-208-182-170.columbus.rr.com [24.208.182.170]) (authenticated bits=0) by oak2a.cats.ohiou.edu (8.12.5/8.12.5) with ESMTP id h0UDiMWf1477502 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Thu, 30 Jan 2003 08:44:23 -0500 (EST) Date: Thu, 30 Jan 2003 08:44:25 -0500 From: Thaddeus Quintin To: freebsd-questions@FreeBSD.org Subject: Re: A question asked many times- Message-ID: <66102630.1043916265@[192.168.0.2]> In-Reply-To: <20030130092211.GA1262@gothmog.gr> References: <20030130092211.GA1262@gothmog.gr> X-Mailer: Mulberry/2.2.1 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This was the perfect answer! I wasn't sure if "meta" was something that would be recognized in the keymap files, but it worked like a charm. Rather than edit the file by hand, it was easer to do- sed 's/lalt/meta/g' us.iso.kbd > local.kbd Gotta utilize those UNIX tools! Thanks a lot Thaddeus >> I would like to map my "alt" keys to be "meta" keys. Is there any >> reason why I shouldn't do that? Is there a better/different >> solution? Using ESC just doesn't cut it... > > Copy the file /usr/share/syscons/keymaps/us.iso.kbd to a different > name, like /usr/share/syscons/keymaps/local.kbd. Then open local.kbd > with an editor and replace all instances of `lalt' with `meta' > (without quotes). This will make the left ALT key work as META. Load > the new keymap with: > > # kbdcontrol -l local.kbd > > To make "local.kbd" the default keymap at boot time, set > keymap="local" in your /etc/rc.conf file. > > You can also map the right ALT key to META if you change `ralt' to > `meta', but I don't suggest switching both left and right ALT keys to > META since that would make switching consoles a bit difficult. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message