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.

Attachment: pgpIJSd5vFkKO.pgp
Description: PGP signature

Reply via email to