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've got some games running in Wine, but I can't figure out how to change the keyboard layout. By default, I use the dvorak layout in Ubuntu, which isn't very friendly for most games. I can change it back to QWERTY in Ubuntu, but when I fire up a game, it stays with my default dvorak. How can I change to QWERTY inside my wine application?

share|improve this question
up vote -1 down vote accepted

In the keyboard control panel, you can configure multiple keyboard layouts from the Layouts tab. Click on Options... and expand the Key(s) to change layout section. Pick the key combo you prefer and you should have an easy way to switch layouts.

If the Separate layout for each window checkbox is checked in the main keyboard control panel, then each window should remember which layout they are using separately rather than it being a global setting.

share|improve this answer
Where do I find the keyboard control panel? I tried "wine control" for the wine control panel, but it's not in there. – keithjgrant Apr 12 '11 at 16:14
This isn't a Wine specific control panel. Pick System -> Preferences -> Keyboard. – James Henstridge Apr 12 '11 at 23:54
Oh. Yeah, I've already got that down. It doesn't apply within a Wine application though. I guess I have to change my default entirely? That's a bit annoying. – keithjgrant Apr 13 '11 at 0:03
Really? I just tried it with Wine's Notepad application. I added both US and US Dvorak layouts and set the layout switch combo to ctrl+shift. The ctrl+shift combo successfully changed how my input was interpreted by Notepad. – James Henstridge Apr 13 '11 at 0:15
Crazy... yeah, it works for notepad, just not the game I'm playing ("Within a Deep Forest"). Odd. – keithjgrant Apr 13 '11 at 17:30

A lot of wine programs use the X keyboard layout instead of the window manager's layout. You have to change it by running

setxkbmap us

Then change back with

setxkbmap us dvorak
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.