SuSE GmbH

SuSE Support Database

Title: XFree86: Changing the keyboard layout in the X Windows environment

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

XFree86: Changing the keyboard layout in the X Windows environment

Applies to

XFree86: Versions since 3.3

Request:

You'd like top switch between different keyboard mappings without having to reconfigure and restart the XFree86 system every time.

Procedure:

First, you'll need the keymap information for the specific keyboards you wish to use. These can be generated with the tool xmodmap.

After you've created the necessary keymaps proceed as follows:

  1. Start your X Window system and open a terminal window (e.g. xterm or the like)
  2. Save the actual keyboard configuration (in this case English) in your home directory with the following commands:
    xmodmap -pke > Xmodmap.en
  3. After this reconfigure the X Window sxystem (using, for example, SaX or xf86config) for the second keymap you'd like to use (in this example French).
  4. Restart X Windows again, open a terminal window and save the active (new) keymap:
    xmodmap -pke > Xmodmap.fr
  5. Repeat these steps to save as many extra configurations as desired.
  6. After all necessary keymaps have been created reconfigure the X Window system for the defualt keymap you wish to use, that is, the one that XFree86 starts with.
To change the keymap w/o restarting X simply call xmodmap in a terminal window as follows:
xmodmap ~/Xmodmap.fr
In this case we've changed to the French keymap we saved earlier.

----------

See also:

----------

Keywords: XFREE86, KEYBOARD, XMODMAP

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-js_xmodmap, Copyright SuSE GmbH, Nuremberg, Germany - Version: 16. Nov 1999
SuSE GmbH - Last generated: 16. Nov 1999 14:36:27 by wimer with sdb_gen 1.00.0