Results 1 to 5 of 5

Thread: Map right command key to alt-gr (ISO_Level3_Shift)

  1. #1
    Join Date
    Feb 2008
    Location
    Eindhoven, NL
    Beans
    48
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Map right command key to alt-gr (ISO_Level3_Shift)

    I use a custom XKB keymap in which I access special characters using the alt-gr key, for example alt-gr + c -> ç. Now on my Macbook Pro, the alt-gr is a little bit too far to the right for my taste, and I keep pressing the right command key instead. Since I have no need for this key, I thought I'd simply remap it to alt-gr as well.

    I added the following to my XKB layout ( /usr/share/X11/symbols/ )
    include "level3(rwin_switch)"

    The gnome keyboard settings tool also has an option for doing a same thing graphically. However, it does not work in GTK/Gnome applications! IThe settings works fine in X itself and other applications like QT apps. But in Gnome, both alt-gr and the right command key cease to function. I think this is a bug so I filed a bug report here: https://bugzilla.gnome.org/show_bug.cgi?id=599270 .

    I wonder if anybody else has come across this problem and possibly found a solution?

  2. #2
    Join Date
    Sep 2008
    Location
    Stockholm, Sweden
    Beans
    11
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Map right command key to alt-gr (ISO_Level3_Shift)

    I have the exact same problem. Would be lovely with a solution to this.

  3. #3
    Join Date
    Feb 2007
    Location
    Germany
    Beans
    6
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Map right command key to alt-gr (ISO_Level3_Shift)

    as described in https://bugs.launchpad.net/ubuntu/+s...876/comments/6
    commenting out
    Code:
    modifier_map Mod4 { <LWIN> };
    modifier_map Mod4 { <RWIN> };
    in
    Code:
    /usr/share/X11/xkb/symbols/pc
    got my 3rd-level-chooser working again on my macbook-2,1.

  4. #4

    Re: Map right command key to alt-gr (ISO_Level3_Shift)

    Same problem with Karmic on MacBookPro 3,1. Fixed it with something close to previous post:

    Code:
    echo clear mod4 | xmodmap -

  5. #5
    Join Date
    Feb 2008
    Location
    Eindhoven, NL
    Beans
    48
    Distro
    Xubuntu 12.10 Quantal Quetzal

    Re: Map right command key to alt-gr (ISO_Level3_Shift)

    Thanks! Works like a charm now!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •