Appendix B. The Russian/Ukrainian keyboard layout file

For the benefit of Ukrainian users of KKBSwitch and XFree86 versions before 4.3, a Russian/Ukrainian keyboard layout file is included with the distribution (users of XFree86 4.3 and later, including X.Org server, read the note in the end of this appendix). This file is experimental, so report any problems with it to the author of KKBSwitch. The file is named ru_ua and by default gets installed to the directory /usr/X11R6/lib/X11/xkb/symbols, where this type of XKeyboard configuation file is supposed to go. The file defines a configuration with 3 keyboard groups (layouts): US/ASCII, Russian and Ukrainian. To use this layout, you can do one of the following.

  1. If you feel comfortable editing your XF86Config file and know its structure you can simply edit the file (usually /etc/X11/XF86Config-4 for XFree86 4.x), and in InputDevice section for keyboard set XkbLayout option to "ru_ua". It is recommented to set XkbVariant to "winkeys", since only this variant was tested.

  2. If you are using Red Hat® Linux®, you may create a file named .Xkbmap in your home directory and write the text "ru_ua" (without quotes) in it. The default X session startup script will pick this file and activate the layout named in it.

  3. Run the command setxkbmap ru_ua either manually from command prompt our in one of your X session startup script.


Users of XFree86 4.3 and later versions, including X.Org server, don't need any additional files if they want a three-language layout. Just specify XkbLayout "us,ru,ua" in your XF86Config (xorg.conf for X.Org server) file.