Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

From what I found from xkeyboard-config man page there is no such combination, which is very upset. Is there any workaround for that?

Because I want layout change to be as in winXP.

share|improve this question

Indeed it seems that the combination of Alt_L+Shift_R isn't provided by default.

But you can define it.

Look for example at this answer: How to put some keyboard layout aside from layout switching ring?

Just put in the mysymbols file a section like this:

partial modifier_keys 
xkb_symbols "l_alt_r_shift_toggle" {
    virtual_modifiers Alt;
    key <LALT> {
        symbols[Group1]= [ NoSymbol,    ISO_Next_Group ],
        virtualMods= Alt
    key <RTSH> {
        symbols[Group1]= [ Shift_R,     ISO_Next_Group ]

and in the ~/.xkb/keymap/mykbd file, on the xkb_symbols line add "+mysymbols(l_alt_r_shift_toggle)"

Note, however, that this actually defines also Shift_l+Alt_l and Alt_R+Shift_R (actually, if shift (any shift) is pressed first, then the redefinition of Alt_R is triggered; and if alt (any alt) is pressed first, then the redefinition of Shift_R is triggered) To restrict the toggle to ONLY Alt_l+Shift_r it would require a lot more thinking and hacking, I don't think it would be worth the trouble.

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.