Tuesday, May 4, 2010

Keyboard Localization on CentOS 5

If you would like to switch between more than one keyboard layout (for example English and Russian), edit /etc/X11/xorg.conf and restart X server.

Example:
Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "us,ru"
        Option      "XkbVariant" ",winkeys"
        Option      "XkbOptions" "grp:shifts_toggle,grp_led:scroll"
EndSection

Here, XkbOptions allows you to toggle between keyboard layouts by simply pressing both Shifts. This will also toggle the Scroll Lock light on or off, thanks to the grp_led:scroll option. This is a handy visual indicator of which keyboard layout you are using at the moment.

0 comments:

Post a Comment