Difference between revisions of "KEYMAP"

From ArchWiki
Jump to navigation Jump to search
m (Configuring the console keymap: rm section - merged into Extra Keyboard Keys in Console)
(everything is covered in Keyboard Configuration in Console and Keyboard Configuration in Xorg, redirect to the former because KEYMAP is used to configure console keymap)
Line 1: Line 1:
#REDIRECT [[Keyboard Configuration in Console]]
==Introduction and basic configuration==
The virtual console (keyboard mapping, console font, and console map) is configured in {{ic|/etc/vconsole.conf}}. It defines what keymap the keyboard is in the virtual consoles. Keytable files are provided by the {{Pkg|kbd}} package. An example {{ic|/etc/vconsole.conf}} is shown below:
{{Note|As of {{pkg|systemd}}-194, the built-in ''kernel'' font and the ''us'' keymap are used if {{ic|1=KEYMAP=}} and {{ic|1=FONT=}} are empty or not set.}}
Another way to set the keyboard mapping (keymap) is using {{ic|localectl}}:
# localectl set-keymap de
{{ic|localectl}} can also be used to set the X11 keymap:
# localectl set-x11-keymap de
See {{ic|man 1 localectl}} and {{ic|man 5 vconsole.conf}} for details.
== Keyboard layouts ==
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.
Less common but nonetheless useful keymaps for Arch Linux are found in the {{ic|/usr/share/kbd/keymaps/''architecture''}} (''architecture''=mac, sun, etc.) directory.
You can find more info about your keyboard layout with:
{{ic|less /usr/share/X11/xkb/rules/base.lst}}
* In an X session, you can use setxkbmap to instantly apply keyboard layout: {{ic|setxkbmap -layout dvorak}}
* 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'}}. This allows for example to write umlauts easily. Example for Umlaut A: {{ic| CAPSLOCK, ", A}}  ->  Ä. You can also configure the right Windows key as a Compose key with {{ic|setxkbmap -option 'compose:rwin'}}
* 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]*"}}
* You can see some instructions on how to use some keymaps in their respective files with: {{ic|zless /usr/share/kbd/keymaps/.../.../xx.map.gz}}}}
{| class="wikitable" border="1"
!  Keymap setting
|Armenian (Eastern)
|{{ic|KEYMAP<nowiki>=</nowiki>am -variant eastern}}
|Brazilian Portuguese
|Canadian Multilingual (''in [[AUR]]'')
|Colemak ''(US)''
|German ''(no dead keys)''
|Lithuanian ''(qwerty)''
|Spanish Spaniard
|Spanish Latin American
|Spanish Dvorak
|United Kingdom

Revision as of 11:17, 15 September 2013