You are not logged in.

#1 2014-02-28 13:02:51

t-o-mm-y
Member
Registered: 2012-11-01
Posts: 4

Can't change the keyboard layout in Xorg

I tried the different possibilities in the wiki to change the keyboard layout in X. setxkbmap does work, but I'd like to keep the settings across reboots. I tried the two methods in the wiki, here are my config files:

/etc/X11/xorg.conf.d/00-keyboard.conf (created by localectl)

# 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" "de,ru"
        Option "XkbModel" "pc104"
        Option "XkbVariant" ","
        Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

/etc/X11/xorg.conf.d/10-keyboard.conf (manually created)

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "de,ru"
        Option "XkbModel" "pc104"
        Option "XkbVariant" ","
        Option "XkbOptions" "grp:alt_shift_toggle"
EndSection

But the output of "setxkbmap -print -verbose 10" shows german and us-english layout:

Setting verbose level to 10
locale is C
Trying to load rules file ./rules/evdev...
Trying to load rules file /usr/share/X11/xkb/rules/evdev...
Success.
Applied rules from evdev:
rules:      evdev
model:      pc104
layout:     de,us
variant:    ,
options:    grp:alt_shift_toggle
Trying to build keymap using the following components:
keycodes:   evdev+aliases(qwertz)
types:      complete
compat:     complete
symbols:    pc+de+us:2+inet(evdev)+group(alt_shift_toggle)
geometry:   pc(pc104)
xkb_keymap {
	xkb_keycodes  { include "evdev+aliases(qwertz)"	};
	xkb_types     { include "complete"	};
	xkb_compat    { include "complete"	};
	xkb_symbols   { include "pc+de+us:2+inet(evdev)+group(alt_shift_toggle)"};
	xkb_geometry  { include "pc(pc104)"	};
};

Does anybody know what I am doing wrong? I would appreciate any help.
Thomas

Offline

#2 2014-02-28 13:07:30

tkdncty2
Member
Registered: 2012-05-24
Posts: 24

Re: Can't change the keyboard layout in Xorg

In your .xinitrc file put setxkbmap yy & (yy=country code for example de) before it executes your de/wm.

Offline

#3 2014-02-28 13:27:06

t-o-mm-y
Member
Registered: 2012-11-01
Posts: 4

Re: Can't change the keyboard layout in Xorg

I would like it to work in different WMs and therefore set it up globally.

Offline

Board footer

Powered by FluxBB