You are not logged in.
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"
EndSectionBut 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
In your .xinitrc file put setxkbmap yy & (yy=country code for example de) before it executes your de/wm.
Offline
I would like it to work in different WMs and therefore set it up globally.
Offline