Bug 666 - New XKB option for Tux keys: request for addition
Summary: New XKB option for Tux keys: request for addition
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Input/Keyboard (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-24 08:58 UTC by Sergey V. Udaltsov
Modified: 2005-09-13 10:57 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch for XKB configuration files (2.59 KB, patch)
2004-05-24 08:58 UTC, Sergey V. Udaltsov
no flags Details | Splinter Review

Description Sergey V. Udaltsov 2004-05-24 08:58:07 UTC
Submitted by Daniel Elstner:

---

Basically, the bottom row of my keyboard (which is just a standard pc105
model with three replaced caps) now looks like this:

    <Ctrl> <Tux> <Alt> <----Space----> <AltGr> <Alt> <Tux> <Ctrl>

In order to make the keyboard work as advertised on the key caps, I need
to map the keys as follows:

    <LWIN> = Super_L
    <RWIN> = Alt_R Meta_R
    <MENU> = Super_R

So I did just that by putting another option into symbols/altwin:

// Layout for Tux key caps with additional right Alt key
partial modifier_keys 
xkb_symbols "alt_super_win" {
    key <LALT> {        [       Alt_L,  Meta_L          ]       };
    key <RWIN> {        [       Alt_R,  Meta_R          ]       };
    key <LWIN> {        [       Super_L                 ]       };
    key <MENU> {        [       Super_R                 ]       };
    modifier_map Mod1   { Alt_L, Alt_R, Meta_L, Meta_R };
    modifier_map Mod4   { Super_L, Super_R };
};

Obviously I also need put this line into rules/xfree86:

altwin:alt_super_win    =       +altwin(alt_super_win)
 
And finally there's the description entry in rules/xfree86.xml.  The
description was a little hard to keep short since this option actually
sets up two modifier mappings.  However, I'm not sure if splitting it
into separate options would actually be useful.  (This would require
adding another option group too, since in this one multiple selections
are disallowed.)  Anyway, here's the text:

<configItem>
  <name>altwin:alt_super_win</name>
  <description>Alt is mapped to the right Win-key and Super to Menu.</description>
</configItem>
 
If you look at the patch you'll see that I also changed two other option
entries in the XML file.  Those referred to option names which did not
exist; looks very much just like a copy-n-paste mistake.
Comment 1 Sergey V. Udaltsov 2004-05-24 08:58:51 UTC
Created attachment 315 [details] [review]
Patch for XKB configuration files
Comment 2 Sergey V. Udaltsov 2004-09-10 19:06:41 UTC
fixed in xkeyboard-config
Comment 3 Chris Lee 2005-09-14 03:57:18 UTC
Looks like this bug's status was never updated properly. Closing.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.