Starting a wine prefix with a different keyboard (layout)

Hi,

for my normal daily driving I use these settings:

LANG=de_DE.UTF-8
LANGUAGE=de:en_US
LC_ADDRESS=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_TIME=de_DE.UTF-8

For certain games, I would like to use the caret key (^, to the left of 1 on my keyboard). However, in my system caret is configured to wait for a second key so that it accents that second key. However, putting some functionality on the caret key in a game would need to execute it as soon as the caret is pressed.

I think I understand that this would be done by giving the game a new LC_LANG with the “nodeadkeys” option. I was however never successful by just overwriting the LC_LANG variable for the games I tried that with.

Is there a better way to get that functionality?

Well, usually forcing language is done simply by inserting that before wine call

LC_ALL=en_US.UTF-8

btw, usually it’s a good idea to force en_US.UTF-8 for Wine, sometimes some programs are really not fans of anything else and can lead to errors…