How to put the keyboard in Spanish in Arch Linux

Keyboard

One of the most common problems that arises after installing Arch Linux is that the keyboard layout is in English . This is largely inconvenient for most of us Latin Americans, since the keyboard layout we use is for Spanish.

Although we set the language in the vconsole.conf file during the installation process , for some strange reason this change is not saved and when the system starts the key map is in English by default.

To change the keyboard layout to the Spanish language, it is simple, it does not require much.

The first step is to open a terminal and grant superuser permissions to proceed to type the following in the terminal:

The first thing that will be to check, what configuration we have for the keymap:

localectl status

System Locale: LANG=es_ES.utf8

LC_NUMERIC=es_ES.UTF-8

LC_TIME=es_ES.UTF-8

LC_MONETARY=es_ES.UTF-8

LC_PAPER=es_ES.UTF-8

LC_MEASUREMENT=es_ES.UTF-8

VC Keymap: es

X11 Layout: es

Here I share some methods to be able to change the keymap in our distribution.

One of them would be, edit the vconsole.conf file to put the keyboard in Spanish, we edit it with nano:

nano /etc/vconsole.conf

And inside the file we will write the following:

KEYMAP=es

Another method is to edit the 10-keymap.fdi file

Then with nano we edit this file:

nano /etc/hal/fdi/policy/10-keymap.fdi

Already inside the file we look for this line:

us

and we replace the "us" by "es" with what would be like this:

es

The last one is to edit is another file.

nano /etc/X11/xorg.conf.d/10-evdev.conf

In this file we look for the following:

Section "InputClass"Identifier "evdev keyboard catchall"

MatchIsKeyboard "on"

MatchDevicePath "/dev/input/event*"

Driver "evdev"

EndSection

Between MatchDevicePath and Driver we put the following:

Option "XkbLayout" "es"

We reboot and we already have our keyboard layout configured.

It should be noted that this tutorial is only valid for Spanish in Spain, not in South America.


Add as preferred source in Google