The '''KEYMAP''' variable is specified in the {{ic|/etc/rc.conf}} file. It defines what keymap the keyboard is in the virtual consoles. Keytable files are provided by the {{Pkg|kbd}} package.

+

The '''KEYMAP''' variable is specified in the [[Systemd#Console_and_keymap|{{ic|/etc/vconsole.conf}}]] file. It defines what keymap the keyboard is in the virtual consoles. Keytable files are provided by the {{Pkg|kbd}} package.

==Keyboard layouts==

==Keyboard layouts==

−

This is the list of known keymap settings to work for the corresponding keyboard layouts. Usually the "map.gz" extension can be ignored.

+

This is the list of known keymap settings to work for the corresponding keyboard layouts. Most keymaps can be found in the {{ic|/usr/share/kbd/keymaps/i386/''layout''}} (''layout''=qwerty, azerty, dvorak, etc.) directory.

−

Most keymaps can be found in the {{ic|/usr/share/kbd/keymaps/i386/''layout''}} (''layout''=qwerty, azerty, dvorak, etc.) directory.

+

Less common but nonetheless useful keymaps for Arch Linux are found in the {{ic|/usr/share/kbd/keymaps/''architecture''}} (''architecture''=mac, sun, etc.) directory.

Less common but nonetheless useful keymaps for Arch Linux are found in the {{ic|/usr/share/kbd/keymaps/''architecture''}} (''architecture''=mac, sun, etc.) directory.

Line 12:

Line 16:

{{Note|In an X session, you can use setxkbmap to instantly apply keyboard layout: {{Ic|setxkbmap -layout dvorak}}}}

{{Note|In an X session, you can use setxkbmap to instantly apply keyboard layout: {{Ic|setxkbmap -layout dvorak}}}}

−

{{Note|If these keymaps do not work for you, try removing the {{Ic|.map.gz}} from the keymap name. If that does not work, make sure the keymap file exists in {{ic|/usr/share/kbd/keymaps/}} using {{Ic|find}}: {{Ic|find /usr/share/kbd/keymaps/ -name "*[your desired keymap]*"}}}}

+

{{Note|If these keymaps do not work for you, make sure the keymap file exists in {{ic|/usr/share/kbd/keymaps/}} using {{Ic|find}}: {{Ic|find /usr/share/kbd/keymaps/ -name "*[your desired keymap]*"}}}}

−

+

−

<table border="1" cellpadding="2" cellspacing="0">

+

−

<tr>

+

−

<th>Keymap setting</th>

+

−

<th>Keyboard</th>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"be-latin1.map.gz"}}</td>

+

−

<td>Belgian</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"br-abnt2.map.gz"}}</td>

+

−

<td>Brazilian Portuguese</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"cf.map.gz"}}</td>

+

−

<td>Canadian-French</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"ca_multi.map.gz"}}</td>

+

−

<td>Canadian Multilingual (''currently only available in the [[Arch User Repository|AUR]]'')</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"colemak"}}</td>

+

−

<td>Colemak (US)</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"croat.map.gz"}}</td>

+

−

<td>Croatian</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"cz-lat2.map.gz"}}</td>

+

−

<td>Czech</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"dvorak"}}</td>

+

−

<td>Dvorak</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"fr-latin9.map.gz"}}</td>

+

−

<td>French</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"de-latin1.map.gz"}}</td>

+

−

<td>German</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"de-latin1-nodeadkeys.map.gz"}}</td>

+

−

<td>German (no dead keys)</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"lt.baltic.map.gz"}}</td>

+

−

<td>Lithuanian (qwerty)</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"no-latin1.map.gz"}}</td>

+

−

<td>Norwegian</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"lat2-16.psfu.gz"}}</td>

+

−

<td>Polish</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"pt-latin9.map.gz"}}</td>

+

−

<td>Portuguese</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"ro_win.map.gz"}}</td>

+

−

<td>Romanian</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"ru4.map.gz"}}</td>

+

−

<td>Russian</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"slovene"}}</td>

+

−

<td>Slovene</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"sv-latin1.map.gz"}}</td>

+

−

<td>Swedish</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"fr_CH-latin1.map.gz"}}</td>

+

−

<td>Swiss-French</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"sg-latin1.map.gz"}}</td>

+

−

<td>Swiss-German</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"de_CH-latin1.map.gz"}}</td>

+

−

<td>Swiss-German</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"es.map.gz"}}</td>

+

−

<td>Spanish</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"la-latin1.map.gz"}}</td>

+

−

<td>Spanish Latinoamerican</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"tr_q-latin5.map.gz"}}</td>

+

−

<td>Turkish</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"ua.map.gz"}}</td>

+

−

<td>Ukrainian</td>

+

−

</tr>

+

−

<tr>

+

−

<td>{{Ic|KEYMAP<nowiki>=</nowiki>"uk"}}</td>

+

−

<td>United Kingdom</td>

+

−

</tr>

+

−

</table>

+

−

+

+

{| class="wikitable" border="1"

+

|-

+

! Keyboard

+

! Keymap setting

+

|-

+

|Belgian

+

|{{Ic|KEYMAP<nowiki>=</nowiki>be-latin1}}

+

|-

+

|Brazilian Portuguese

+

|{{Ic|KEYMAP<nowiki>=</nowiki>br-abnt2}}

+

|-

+

|Canadian-French

+

|{{Ic|KEYMAP<nowiki>=</nowiki>cf}}

+

|-

+

|Canadian Multilingual (''in [[Arch User Repository|AUR]]'')

+

|{{Ic|KEYMAP<nowiki>=</nowiki>ca_multi}}

+

|-

+

|Colemak ''(US)''

+

|{{Ic|KEYMAP<nowiki>=</nowiki>colemak}}

+

|-

+

|Croatian

+

|{{Ic|KEYMAP<nowiki>=</nowiki>croat}}

+

|-

+

|Czech

+

|{{Ic|KEYMAP<nowiki>=</nowiki>cz-lat2}}

+

|-

+

|Dvorak

+

|{{Ic|KEYMAP<nowiki>=</nowiki>dvorak}}

+

|-

+

|Finnish

+

|{{Ic|KEYMAP<nowiki>=</nowiki>fi-latin1}}

+

|-

+

|French

+

|{{Ic|KEYMAP<nowiki>=</nowiki>fr-latin1}}

+

|-

+

|German

+

|{{Ic|KEYMAP<nowiki>=</nowiki>de-latin1}}

+

|-

+

|German ''(no dead keys)''

+

|{{Ic|KEYMAP<nowiki>=</nowiki>de-latin1-nodeadkeys}}

+

|-

+

|Italian

+

|{{Ic|KEYMAP<nowiki>=</nowiki>it}}

+

|-

+

|Lithuanian ''(qwerty)''

+

|{{Ic|KEYMAP<nowiki>=</nowiki>lt.baltic}}

+

|-

+

|Norwegian

+

|{{Ic|KEYMAP<nowiki>=</nowiki>no-latin1}}

+

|-

+

|Polish

+

|{{Ic|KEYMAP<nowiki>=</nowiki>pl}}

+

|-

+

|Portuguese

+

|{{Ic|KEYMAP<nowiki>=</nowiki>pt-latin9}}

+

|-

+

|Romanian

+

|{{Ic|KEYMAP<nowiki>=</nowiki>ro_win}}

+

|-

+

|Russian

+

|{{Ic|KEYMAP<nowiki>=</nowiki>ru4}}

+

|-

+

|Singapore

+

|{{Ic|KEYMAP<nowiki>=</nowiki>sg-latin1}}

+

|-

+

|Slovene

+

|{{Ic|KEYMAP<nowiki>=</nowiki>slovene}}

+

|-

+

|Swedish

+

|{{Ic|KEYMAP<nowiki>=</nowiki>sv-latin1}}

+

|-

+

|Swiss-French

+

|{{Ic|KEYMAP<nowiki>=</nowiki>fr_CH-latin1}}

+

|-

+

|Swiss-German

+

|{{Ic|KEYMAP<nowiki>=</nowiki>de_CH-latin1}}

+

|-

+

|Spanish

+

|{{Ic|KEYMAP<nowiki>=</nowiki>es}}

+

|-

+

|Spanish Latinoamerican

+

|{{Ic|KEYMAP<nowiki>=</nowiki>la-latin1}}

+

|-

+

|Turkish

+

|{{Ic|KEYMAP<nowiki>=</nowiki>tr_q-latin5}}

+

|-

+

|Ukrainian

+

|{{Ic|KEYMAP<nowiki>=</nowiki>ua}}

+

|-

+

|United Kingdom

+

|{{Ic|KEYMAP<nowiki>=</nowiki>uk}}

+

|}

==Configuring the Console Keymap==

==Configuring the Console Keymap==

−

<ol>

+

#{{ic|cd}} to {{ic|/usr/share/kbd/keymaps/i386/qwerty}}

−

<li>{{ic|cd}} to {{ic|/usr/share/kbd/keymaps/i386/qwerty}}</li>

+

#Copy your default keymap ({{ic|us.map.gz}}) to a new file {{ic|personal.map.gz}}

−

<li>Copy your default keymap ({{ic|us.map.gz}}) to a new file {{ic|personal.map.gz}}</li>

#Change the default keyboard layout file that will be used by editing {{ic|/etc/vconsole.conf}} (you might have to create this file) and changing the line that says {{ic|KEYMAP<nowiki>=</nowiki>us}} to {{ic|KEYMAP<nowiki>=</nowiki>personal}}

−

<li>Change the default keyboard layout file that will be used by editing {{ic|/etc/rc.conf}} and changing the line that says {{ic|KEYMAP<nowiki>=</nowiki>us}} to {{ic|KEYMAP<nowiki>=</nowiki>personal}}</li>

+

#Reboot to use your keymap the way nature intended (or run "loadkeys personal")

−

<li>Reboot to use your keymap the way nature intended</li>

+

−

</ol>

+

Revision as of 12:54, 28 December 2012

The KEYMAP variable is specified in the /etc/vconsole.conf file. It defines what keymap the keyboard is in the virtual consoles. Keytable files are provided by the kbd package.

Keyboard layouts

This is the list of known keymap settings to work for the corresponding keyboard layouts. Most keymaps can be found in the /usr/share/kbd/keymaps/i386/layout (layout=qwerty, azerty, dvorak, etc.) directory.

Less common but nonetheless useful keymaps for Arch Linux are found in the /usr/share/kbd/keymaps/architecture (architecture=mac, sun, etc.) directory.

Note: In an X session, you can use setxkbmap to instantly apply keyboard layout: setxkbmap -layout dvorak

Note: If these keymaps do not work for you, make sure the keymap file exists in /usr/share/kbd/keymaps/ using find: find /usr/share/kbd/keymaps/ -name "*[your desired keymap]*"