Having a keyboard with open firmware so you can carry the layout with you could help with this.
Unfortunately, it causes another problem: You can't use a keycode-based (as opposed to keysym) configuration without switching your keyboard back to qwerty.