English Spanish
You can use [command]#grep# to search the output of the previous command for a specific keymap name. There are often multiple keymaps compatible with your currently set locale. For example, to find available Czech keyboard layouts, type:
~]${nbsp}pass:attributes[{blank}][command]#localectl# [option]`list-keymaps` | [command]#grep# `cz`
Setting the Keymap
To set the default keyboard layout for your system, use the following command as `root`:
[command]#localectl# [option]`set-keymap` _map_
Replace _map_ with the name of the keymap taken from the output of the [command]#localectl# [option]`list-keymaps` command. Unless the [option]`--no-convert` option is passed, the selected setting is also applied to the default keyboard mapping of the X11 window system, after converting it to the closest matching X11 keyboard mapping. This also applies in reverse, you can specify both keymaps with the following command as `root`:
[command]#localectl# [option]`set-x11-keymap` _map_
If you want your X11 layout to differ from the console layout, use the [option]`--no-convert` option.
[command]#localectl# [option]`--no-convert` [option]`set-x11-keymap` _map_
With this option, the X11 keymap is specified without changing the previous console layout setting.
Setting the X11 Keymap Separately
Imagine you want to use German keyboard layout in the graphical interface, but for console operations you want to retain the US keymap. To do so, type as `root`:
~]#{nbsp}localectl --no-convert set-x11-keymap pass:quotes[_de_]
Then you can verify if your setting was successful by checking the current status:
~]${nbsp}localectl status
System Locale: LANG=de_DE.UTF-8
VC Keymap: us
X11 Layout: de
Apart from keyboard layout (_map_), three other options can be specified:
[command]#localectl# [option]`set-x11-keymap` _map_ _model_ _variant_ _options_
Replace _model_ with the keyboard model name, _variant_ and _options_ with keyboard variant and option components, which can be used to enhance the keyboard behavior. These options are not set by default. For more information on X11 Model, X11 Variant, and X11 Options see the `kbd(4)` man page.
Additional Resources Recursos Adicionales
For more information on how to configure the keyboard layout on Fedora, see the resources listed below: