You are not logged in.

#1 2012-11-24 15:25:06

Dorian_Hawkoom
Member
Registered: 2012-11-24
Posts: 2

Change the layout of keyboard

I installed Arch 64-bits, openbox and Slim. It works, but i want to change my keyboard to spanish and don't matter what i do, i can't.
In /etc/locale.gen i have this line uncommented (es_ES.UTF-8 UTF-8) and then executed locale-gen. After that I tried all of this and no one works for me:

-> edit /etc/X11/xorg.conf.d/10-evdev.conf

Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "XkbLayout" "es"
EndSection

tried with this too

Option "XkbLayout" "latam"
Option "xkbLayout" "es"

-> edit /etc/vconsole.conf

KEYMAP=es

another configuration:
KEYMAP=es
FONT=Lat2-Terminus16

-> create a /etc/X11/xorg.conf.d/10-keyboard.conf

Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbLayout" "es"
EndSection

(now i deleted this file)


How I change the layout?

PD: sorry for my english ^^U

Last edited by Dorian_Hawkoom (2012-11-24 17:26:03)

Offline

#2 2012-11-24 15:33:09

strpeter
Member
From: Geneva
Registered: 2012-11-24
Posts: 24

Re: Change the layout of keyboard

I think the following is what you are looking for:
KEYMAP

Offline

#3 2012-11-24 15:44:30

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Change the layout of keyboard

The file vconsole.conf configures the keymap for the virtual kernel consoles, you have to reboot for the settings to take effect.
The file 10-evdev.conf configures the keymap for the graphical xorg session and you have to restart the xorg server for the settings to take effect.
Have you already rebooted?

Offline

#4 2012-11-24 16:14:13

grobar87
Member
From: Македонија
Registered: 2010-08-25
Posts: 174

Re: Change the layout of keyboard

I add this in my .xinitrc file:

setxkbmap -option "grp:switch,grp:alt_shift_toggle,grp_led:scroll" -layout "us,mk"  &

When i press alt+shift it change keymap to macedonian.Just change "mk" to "es".


And... here... we... go!

Offline

#5 2012-11-24 16:29:09

10PinkPanther
Member
From: Croatia
Registered: 2012-11-10
Posts: 374

Re: Change the layout of keyboard

Loadkeys es?For croatian keys I type in terminal:loadkeys croat.map.gz.For english/US is:loadkeys us.

Last edited by 10PinkPanther (2012-11-24 16:31:07)

Offline

#6 2012-11-24 16:39:26

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Change the layout of keyboard

Welcome to the forum, Dorian_Hawkoom. First of all, please use [ code ] tags when posting code. It's easier to read this way. Also: https://wiki.archlinux.org/index.php/Fo … s_and_Code

As for the keyboard layout, there are two types: for the console and for Xorg. When installing Arch Linux, assuming you followed the Beginners' Guide, you ran into these:

https://wiki.archlinux.org/index.php/Be … e_language
https://wiki.archlinux.org/index.php/Be … and_keymap
https://wiki.archlinux.org/index.php/Be … onfigure_X

Read these three sections and I'm sure you'll find something useful. And don't forget to mark the topic as solved (by editing the first post) so that other people (including yourself sometimes) may find useful.


"How to Succeed with Linux"

I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).

Offline

#7 2012-11-24 16:40:36

grobar87
Member
From: Македонија
Registered: 2010-08-25
Posts: 174

Re: Change the layout of keyboard

Sorry.You're right @10PinkPanther. On my system i use "mk" to change to macedonian keys for example.I don't know for spanish keys...


And... here... we... go!

Offline

#8 2012-11-24 17:48:21

Dorian_Hawkoom
Member
Registered: 2012-11-24
Posts: 2

Re: Change the layout of keyboard

teateawhy wrote:

The file vconsole.conf configures the keymap for the virtual kernel consoles, you have to reboot for the settings to take effect.
The file 10-evdev.conf configures the keymap for the graphical xorg session and you have to restart the xorg server for the settings to take effect.
Have you already rebooted?

The keymap for the virtual kernel consoles works, but i have problems with the keymap for the graphical xorg, I read and tried all the links you gave me and rebooted after every change i made, without results.


grobar87 wrote:

I add this in my .xinitrc file:

setxkbmap -option "grp:switch,grp:alt_shift_toggle,grp_led:scroll" -layout "us,mk"  &.

When i press alt+shift it change keymap to macedonian.Just change "mk" to "es"

Your solution works, but after login. If anyone knows how to change the layout before login, will be great!
In another case, don't mind, i'm happy with that. smile

Offline

Board footer

Powered by FluxBB