The system locale controls the language settings of system services and of the UI before the user logs in, such as the display manager, as well as the default for users after login.
The keyboard settings control the keyboard layout used on the text console and of the graphical UI before the user logs in, such as the display manager, as well as the default for users after login.
Note that the changes performed using this tool might require the initramfs to be rebuilt to take effect during early system boot. The initramfs is not rebuilt automatically by localectl.
Note that systemd-firstboot(1) may be used to initialize the system locale for mounted (but not booted) system images.
The following options are understood:
The following commands are understood:
set-keymap MAP [TOGGLEMAP]
set-x11-keymap LAYOUT [MODEL [VARIANT [OPTIONS]]]
list-x11-keymap-models, list-x11-keymap-layouts, list-x11-keymap-variants [LAYOUT], list-x11-keymap-options
On success, 0 is returned, a non-zero failure code otherwise.
systemd(1), locale(7), locale.conf(5), vconsole.conf(5), loadkeys(1), kbd(4), m[blue]The XKB Configuration Guidem, systemctl(1), systemd-localed.service(8), systemd-firstboot(1), mkinitrd(8)