Difference between revisions of "KEYMAP"

From ArchWiki
Jump to: navigation, search
(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)
(34 intermediate revisions by 27 users not shown)
Line 1: Line 1:
[[Category:Internationalization]]
+
#REDIRECT [[Keyboard Configuration in Console]]
[[es:KEYMAP]]
+
[[pt:KEYMAP]]
+
[[tr:Klavye_düzeni]]
+
[[zh-CN:KEYMAP]]
+
{{Temporary i18n}}
+
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.
+
 
+
==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.
+
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.
+
 
+
{{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]*"}}}}
+
 
+
{| class="wikitable" border="1"
+
|-
+
!  Keymap setting
+
!  Keyboard
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"be-latin1.map.gz"}}
+
|Belgian
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"br-abnt2.map.gz"}}
+
|Brazilian Portuguese
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"cf.map.gz"}}
+
|Canadian-French
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"ca_multi.map.gz"}}
+
|Canadian Multilingual (''currently only available in the [[Arch User Repository|AUR]]'')
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"colemak"}}
+
|Colemak (US)
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"croat.map.gz"}}
+
|Croatian
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"cz-lat2.map.gz"}}
+
|Czech
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"dvorak"}}
+
|Dvorak
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"fr-latin9.map.gz"}}
+
|French
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"de-latin1.map.gz"}}
+
|German
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"de-latin1-nodeadkeys.map.gz"}}
+
|German (no dead keys)
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"lt.baltic.map.gz"}}
+
|Lithuanian (qwerty)
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"no-latin1.map.gz"}}
+
|Norwegian
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"lat2-16.psfu.gz"}}
+
|Polish
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"pt-latin9.map.gz"}}
+
|Portuguese
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"ro_win.map.gz"}}
+
|Romanian
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"ru4.map.gz"}}
+
|Russian
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"slovene"}}
+
|Slovene
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"sv-latin1.map.gz"}}
+
|Swedish
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"fr_CH-latin1.map.gz"}}
+
|Swiss-French
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"sg-latin1.map.gz"}}
+
|Swiss-German
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"de_CH-latin1.map.gz"}}
+
|Swiss-German
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"es.map.gz"}}
+
|Spanish
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"la-latin1.map.gz"}}
+
|Spanish Latinoamerican
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"tr_q-latin5.map.gz"}}
+
|Turkish
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"ua.map.gz"}}
+
|Ukrainian
+
|-
+
|{{Ic|KEYMAP<nowiki>=</nowiki>"uk"}}
+
|United Kingdom
+
|}
+
 
+
==Configuring the Console Keymap==
+
 
+
#{{ic|cd}} to {{ic|/usr/share/kbd/keymaps/i386/qwerty}}
+
#Copy your default keymap ({{ic|us.map.gz}}) to a new file {{ic|personal.map.gz}}
+
#{{ic|gunzip}} the new map file
+
#Edit {{ic|personal.map}} using your favorite editor. Examples:
+
#*'''Make the Right Alt key same as Left Alt key (Emacs)'''<br>change the line {{ic|include "linux-with-alt-and-altgr"}} to {{ic|include "linux-with-two-alt-keys"}}
+
#*'''Swap CapsLock with Escape (Vim)'''<br>make {{ic|keycode 1 <nowiki>=</nowiki> Caps_Lock}} and {{ic|keycode 58 <nowiki>=</nowiki> Escape}}
+
#*'''Make CapsLock another Control key'''<br>change the line {{ic|keycode 58 <nowiki>=</nowiki> Caps_Lock}} to {{ic|keycode 58 <nowiki>=</nowiki> Control}}
+
#{{ic|gzip}} the map file
+
#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}}
+
#Reboot to use your keymap the way nature intended
+

Revision as of 11:17, 15 September 2013