You are not logged in.

#1 2014-07-30 12:42:00

torors
Member
Registered: 2012-09-28
Posts: 106

[Solved] Keyboard layout - best practice

I have two laptops running Arch Linux. On the first I have set norwegian keyboard with:

Option "XkbLayout" "no" 

in then keyboard section of /etc/X11/xorg.conf.d/10-evdev.conf.

On the second I have usede

 localectl set-x11-keymap no 

from CLI to set the keymap.

What ist best practice?

Last edited by torors (2014-07-30 14:53:22)

Offline

#2 2014-07-30 12:52:03

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved] Keyboard layout - best practice

localectl creates /etc/X11/xorg.conf.d/00-keyboard.conf

$ cat /etc/X11/xorg.conf.d/00-keyboard.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "pl"
EndSection

Another computer:

$ cat /etc/X11/xorg.conf.d/00-keyboard.conf
# Read and parsed by systemd-localed. It's probably wise not to edit this file
# manually too freely.
Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "pl"
        Option "XkbModel" "pc105"
        Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

Neither of hem has /etc/X11/xorg.conf.d/10-evdev.conf, but they have /usr/share/X11/xorg.conf.d/10-evdev.conf - xorg-server 1.16 style.

Last edited by karol (2014-07-30 12:54:24)

Offline

#3 2014-07-30 14:58:01

torors
Member
Registered: 2012-09-28
Posts: 106

Re: [Solved] Keyboard layout - best practice

Thanks. I think the "new" way of using localectl is better than the "old".

On a new system with xorg-server 1.16, I think we will have to copy  /usr/share/X11/xorg.conf.d/10-evdev.conf to /etc/X11/xorg.conf.d./10-evdev.conf and then edit the file "by hand". Localectl seems simpler.

Marking the qustion as solved.

Last edited by torors (2014-07-30 14:59:16)

Offline

Board footer

Powered by FluxBB