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

+

[[fr:KEYMAP]]

+

[[ja:KEYMAP]]

+

[[pt:KEYMAP]]

+

[[tr:Klavye_düzeni]]

+

[[zh-CN:KEYMAP]]

+

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 {{Filename|/usr/share/kbd/keymaps/i386/''layout''}} (''layout''=qwerty, azerty, dvorak, etc.) directory.

−

Less common but nonetheless useful keymaps under Arch Linux are found in the {{Filename|/usr/share/kbd/keymaps/''architecture''}} (''architecture''=ppc, mac, 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.

−

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

+

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

−

<tr>

+

−

<th>Keymap setting</th>

+

{{Note|You can also use this method to modify single keys. This command would assign the compose functionality to the caps lock key: {{ic|setxkbmap -option 'compose:caps'}}

#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}}

+

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

Revision as of 12:59, 17 February 2013

zh-CN:KEYMAP
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: You can also use this method to modify single keys. This command would assign the compose functionality to the caps lock key: setxkbmap -option 'compose:caps'
This allows for example to write umlauts easily. Example for Umlaut A: CAPSLOCK, ", A -> Ä

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]*"

Note: You can see some instructions on how to use some keymaps in their respective files with: zless /usr/share/kbd/keymaps/.../.../xx.map.gz