Wiki homeEdit this page

Setting the keyboard layout in X

Index

Using command line or scripts

Use setxkbmap to set keyboard layout preferences.

# kiss b setxkbmap
# kiss i setxkbmap
$ setxkbmap latam
setxkbmap ru

exec dwm

Further reading/More information: man setxkbmap

Editing xorg configuration files

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

Further reading/More information: XKB-config