Unix Technical Forum

X.org keyboard gotcha with Hyper/Super keys (and a solution)

This is a discussion on X.org keyboard gotcha with Hyper/Super keys (and a solution) within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I just built and installed X.org (X11R6.7.0) from source. That went painlessly and everything seemed to be working fine. ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 02:02 PM
Steve Youngs
 
Posts: n/a
Default X.org keyboard gotcha with Hyper/Super keys (and a solution)

I just built and installed X.org (X11R6.7.0) from source. That went
painlessly and everything seemed to be working fine.

Fine until I discovered that my Hyper key wasn't working. This was
rilly rilly bad as my WM (XEmacs+XWEM) uses the Hyper key
extensively. Also my Super key didn't seem to be working either.

I have a fairly stock-standard 104 key qwerty keyboard. Under XF86
4.3, the Super key was bound to the windoze "flag" keys by default and
Hyper wasn't on _any_ key. I had defined the windoze "menu" key
to be the Hyper key like this...

xmodmap -e "keycode 117 = Hyper_R"
xmodmap -e "add mod3 = Hyper_R"

I removed those lines from my ~/.xinitrc to see what the hell was
going on. There was _no_ Super key, and there was a Hyper
key... where my Super key was supposed to be!

X.org has set up the Hyper/Super modifier keys in almost the exact
_opposite_ way to XF86 4.3. :-(

My solution, putting Hyper on the windoze "menu" key and putting Super
on the windoze "flag" keys is...

xmodmap -e "remove mod4 = Super_L"
xmodmap -e "add mod3 = Super_L"
xmodmap -e "add mod3 = Super_R"
xmodmap -e "keycode 117 = Hyper_R"
xmodmap -e "add mod4 = Hyper_R"

HTH someone.

Have fun!

--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| Genius - Is the ability to reduce |
| the complicated to the simple |
|----------------------------------<steve@youngs.au.com>---|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com