commands.sh

setxkbmap

linux

Set the keyboard using the X Keyboard Extension.

More info →

Examples (6)

Set the keyboard in French AZERTY

Set multiple keyboard layouts, their variants and switching option

setxkbmap -layout us,de -variant ,qwerty -option 'grp:alt_caps_toggle'

List all layouts

localectl list-x11-keymap-layouts

List variants for the layout

localectl list-x11-keymap-variants de

List available switching options

localectl list-x11-keymap-options | grep grp:

Display help

setxkbmap -help
made by @shridhargupta | data from tldr-pages