Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an Apple keyboard where the right command key (Super_R) is mapped to the right Alt key (ISO_Level3_Shift) with xmodmap:

$ cat ~/.Xmodmap 
clear mod4
keysym Super_R = ISO_Level3_Shift

In some applications though, like Firefox and Thunderbird, the right Command and Alt keys are disabled altogether. Is my .Xmodmap invalid?

I have also tried redefining keycodes in section xkb_keycodes of a dump from xkbcomp and then loading the keymap with xkbcomp but still no luck with Firefox and Thunderbird. Any clues?

share|improve this question
up vote 3 down vote accepted

This neat command solves the problem:

setxkbmap -option lv3:rwin_switch
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.