Configure your keyboard layout

From Linuxintro
Revision as of 13:27, 13 November 2010 by imported>ThorstenStaerk (→‎Ubuntu 8.04)

If you are a translator you may want to configure your keyboard according to your wishes. For example you may want the character "l" to appear when you type the key "l", and a "ł" character to appear when you press ALT_GR+l. This is modifying your keyboard layout. To do it, find out your distribution and proceed accordingly:

Ubuntu 8.04

open a console and cd into /etc/X11/xkb/symbols. Now you must know which keyboard layout you are using. It can be de if you are in Germany or pl if you are in Poland and so on. Open this layout file, e.g.

kwrite de

You will see a lot of key definitions like

   key <AC11> { [ l, L, lstroke, Lstroke ] };

This means: The key on block A, line C (that is the line starting with Caps Lock), Number 11, is defined to deliver an "l" if you press it. Or an "L" is you press it together with the Shift key. Or an lstroke, "ł", if you press it with Alt_Gr. Or an Lstroke, "Ł", if you press it together with Shift and Alt_Gr.