From owner-freebsd-questions@FreeBSD.ORG Sat Nov 27 22:38:14 2004 Return-Path: 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 5466F16A4CE for ; Sat, 27 Nov 2004 22:38:14 +0000 (GMT) Received: from blackwater.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7ED243D39 for ; Sat, 27 Nov 2004 22:38:12 +0000 (GMT) (envelope-from grog@lemis.com) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 966DD84AE8; Sun, 28 Nov 2004 09:08:09 +1030 (CST) Date: Sun, 28 Nov 2004 09:08:09 +1030 From: Greg 'groggy' Lehey To: Kees Plonsz Message-ID: <20041127223809.GJ42501@wantadilla.lemis.com> References: <20041127190845.A9CBA43D46@mx1.FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3W6riq+uV6J42Ub" Content-Disposition: inline In-Reply-To: <20041127190845.A9CBA43D46@mx1.FreeBSD.org> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: Josh Paetzel cc: freebsd-questions@freebsd.org Subject: Re: Key mapping in X.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Nov 2004 22:38:14 -0000 --u3W6riq+uV6J42Ub Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Saturday, 27 November 2004 at 20:08:39 +0100, Kees Plonsz wrote: > Josh Paetzel wrote: > >> I'm trying to set up a keybinding in X. I would like Right Shift + >> Enter to be treated the same way that Enter is when pressed alone. >> Right now pressing Right Shift + Enter doesn't appear to do anything >> at all. >> >> I've read through the xset and stty man pages and didn't spot what I >> need. stty is the wrong program. It doesn't handle remapping. kbdcontrol(1) does, but that's for virtual terminals, not X. >> A nudge in the right direction would be most appreciated. > > The program you ar looking for is: > > xkeycaps > > For a snapshot see: > > http://jeremino.homeunix.net/snapshot.jpg Heh. Nice program. But there are a number of reasons why it's not the one Josh is looking for: 1. It doesn't seem to understand X.org (at least not the version I just installed from the ports collection in /usr/ports/x11/xkeycaps). I get the message: A keyboard type was not specified, and the vendor ID string, "The X.Org Foundation" is not recognized. 2. The real program is xmodmap(1). xkeycaps is just a front end to it, and that's what you need to run when you start X. For example, in my .xinitrc I have: xmodmap -e 'keysym Alt_L = Meta_L Meta_L' xmodmap -e 'keysym Home = Select Select' xmodmap -e 'remove mod5 = Scroll_Lock' You can also put the translations in a file and get xmodmap to read it. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers. --u3W6riq+uV6J42Ub Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBqQHRIubykFB6QiMRAvqOAJ4tmq2O9kgwOdVkziYxeeN1wk/svgCgl3Jl InEvMsPtQw59jQTCdUdXa+0= =bbIc -----END PGP SIGNATURE----- --u3W6riq+uV6J42Ub--