Key mapping in X.org

2004-11-27 Thread Josh Paetzel
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.  

A nudge in the right direction would be most appreciated.
-- 
Thanks,

Josh Paetzel
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Key mapping in X.org

2004-11-27 Thread Kees Plonsz
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.
 
 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


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Key mapping in X.org

2004-11-27 Thread Greg 'groggy' Lehey
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.


pgpIJSd5vFkKO.pgp
Description: PGP signature


Re: Key mapping in X.org

2004-11-27 Thread Kees Plonsz
Greg 'groggy' Lehey wrote:

 A keyboard type was not specified, and the vendor ID string,
  The X.Org Foundation is not recognized.

You got scared off by that warning message.
The programs works fine, I just programmed
control-return into a + sign.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Key mapping in X.org

2004-11-27 Thread Greg 'groggy' Lehey
On Saturday, 27 November 2004 at 23:53:06 +0100, Kees Plonsz wrote:
 Greg 'groggy' Lehey wrote:

  A keyboard type was not specified, and the vendor ID string,
   The X.Org Foundation is not recognized.

 You got scared off by that warning message.
 The programs works fine, I just programmed
 control-return into a + sign.

You're quoting me out of context.

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.


pgpyPOvQwN9M7.pgp
Description: PGP signature