ArchLinux how to setup English Language with german keyboardlayout
To get system where your locale is en_US.UTF-8 (assuming you want utf-8, which is recommended) and keyboard layout in both X.Org and virtual consoles is de-latin1-nodeadkeys, do these steps:
- uncomment line "en_US.UTF-8" from
/etc/locale.gen
(e.g.sed -i 's/#en_US.UTF-8/en-US.UTF-8/' /etc/locale.gen
) locale-gen
echo LANG=en_US.UTF-8 > /etc/locale.conf
localectl set-keymap de-latin1-nodeadkeys
localectl set-x11-keymap de-latin1-nodeadkeys
Sidenote: localectl set-keymap
writes given keymap to /etc/vconsole.conf
to variable KEYMAP
.
There are european standards that you may want to have on your system, like
- metric system
- 24h time format
- week starting with monday
- date in ISO-8601
- comma as decimal mark
- paper size A4
- euro as currency
If you want english language and also the above standards, you may want to consider to use danish english instead of us english. To do so, just generate and use the locale en_DK.UTF-8 instead of en_US.UTF-8.
To use german keyboard layout:
echo KEYMAP=de-latin1 > /etc/vconsole.conf
More about this can be found in the german arch wiki.