1<?xml version="1.0" encoding="utf-8"?>
2<page xmlns="http://projectmallard.org/1.0/" type="topic" style="task" id="keyboard-layout" xml:lang="tr">
3
4  <info>
5    <link type="guide" xref="login#management"/>
6    <revision pkgversion="3.11" date="2014-01-29" status="draft"/>
7
8    <credit type="author copyright">
9      <name>minnie_eg</name>
10      <email>amany.elguindy@gmail.com</email>
11      <years>2012</years>
12    </credit>
13    <credit type="editor">
14      <name>Ekaterina Gerasimova</name>
15      <email>kittykat3756@gmail.com</email>
16      <years>2012</years>
17    </credit>
18    <credit type="editor">
19      <name>Petr Kovar</name>
20      <email>pknbe@volny.cz</email>
21      <years>2014</years>
22    </credit>
23
24    <include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
25
26    <desc>Populate the keyboard layout chooser on the login screen.</desc>
27  </info>
28
29  <title>Display multiple keyboard layouts on the login screen</title>
30
31  <p>You can change the system keyboard layout settings to add alternative
32  keyboard layouts for users to choose from on the login screen. This can be
33  helpful for users who normally use different keyboard layouts from the default
34  and who want to have those keyboard layouts available at the login screen.</p>
35
36  <steps>
37    <title>Change the system keyboard layout settings</title>
38    <item>
39      <p>Find the codes of the desired language layouts in the
40      <file>/usr/share/X11/xkb/rules/base.lst</file> file under the section
41      named <sys>! layout</sys>.</p>
42    </item>
43    <item>
44      <p>Use the <cmd>localectl</cmd> tool to change the system keyboard
45        layout settings as follows:</p>
46      <screen><cmd>localectl set-x11-keymap <var>layout</var></cmd></screen>
47      <p>You can specify multiple layouts as a comma-separated list. For example,
48        to set <sys>es</sys> as the default layout, and <sys>us</sys>
49        as the secondary layout, run the following command:
50      </p>
51      <screen><output>$ </output><input>localectl set-x11-keymap es,us</input></screen>
52    </item>
53    <item>
54      <p>Log out to find that the defined layouts are available at the top bar
55      on the login screen.</p>
56    </item>
57  </steps>
58  <p>Note that you can also use the <cmd>localectl</cmd> tool to specify
59    the machine-wide default keyboard model, variant, and options. See the
60    <cmd>localectl</cmd>(1) man page for more information.</p>
61
62  <section id="keyboard-layout-no-localectl">
63  <title>Display multiple keyboard layouts without using localectl</title>
64
65  <p>On systems that do not provide the <cmd>localectl</cmd> tool, you can
66  change the system keyboard layout settings by editing a configuration file in
67  <file>/usr/share/X11/xorg.conf.d/</file>.</p>
68
69  <steps>
70    <title>Change the system keyboard layout settings</title>
71    <item>
72      <p>Find the codes of the desired language layouts in the
73      <file>/usr/share/X11/xkb/rules/base.lst</file> file under the section
74      named <sys>! layout</sys>.</p>
75    </item>
76    <item>
77      <p>Add the layout codes to
78      <file>/usr/share/X11/xorg.conf.d/10-evdev.conf</file> in the following
79      way:</p>
80<screen>
81Section "InputClass"
82  Identifier "evdev keyboard catchall"
83  MatchIsKeyboard "on"
84  MatchDevicePath "/dev/input/event*"
85  Driver "evdev"
86  <input>Option "XkbLayout" "en,fr"</input>
87EndSection
88</screen>
89      <p>Multiple layouts can be added as a comma separated list, as shown in
90      the example for English (<sys>en</sys>) and French (<sys>fr</sys>)
91      layouts.</p>
92    </item>
93    <item>
94      <p>Log out to find that the defined layouts are available at the top bar
95      on the login screen.</p>
96    </item>
97  </steps>
98
99  </section>
100
101</page>
102