Date: Sun, 28 Nov 2004 09:08:09 +1030 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: Kees Plonsz <kees@jeremino.homeunix.net> Cc: freebsd-questions@freebsd.org Subject: Re: Key mapping in X.org Message-ID: <20041127223809.GJ42501@wantadilla.lemis.com> In-Reply-To: <20041127190845.A9CBA43D46@mx1.FreeBSD.org> References: <list.freebsd.questions#200411271243.18678.josh@tcbug.org> <20041127190845.A9CBA43D46@mx1.FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041127223809.GJ42501>
