So, here is my solution. Shortcomings: - different keys for different languages - no "default" keyboard, if the window doesn't have own keymap. If you fire up fvwm, and an xterm, change the keymap in the xterm, and after that fire up a new xterm, then the keymap won't change back.
*FvwmEvent-LocalKeymap: focus_change RestoreKeymap Module FvwmEvent FvwmEvent-LocalKeymap DestroyFunc RestoreKeymap AddToFunc RestoreKeymap + I Piperead "echo SetEnv tmp_keymap $$\\[keymap_$[w.id]\\]" + I Echo "Autoswitch to $[tmp_keymap] keyboard layout" + I Exec setxkbmap $[tmp_keymap] DestroyFunc HuKeyboard AddToFunc HuKeyboard + I SetEnv keymap_$[w.id] hu + I Exec setxkbmap hu + I Echo "Switch to Hungarian keyboard" AddToFunc UsKeyboard + I SetEnv keymap_$[w.id] us + I Exec setxkbmap us Key Shift_L W M HuKeyboard Key Shift_R W M UsKeyboard -- +-[ Kontra, Gergely<[EMAIL PROTECTED]> PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+ -- Visit the official FVWM web page at <URL: http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
