Meerdere toetsenbordindelingen weergeven op het aanmeldingsscherm

U kunt de toetsenbordinstellingen van het systeem wijzigen om alternatieve toetsenbordindelingen beschikbaar te maken voor alle gebruikers op het aanmeldingsscherm. Dit kan behulpzaam zijn voor gebruikers die normaal een andere toetsenbordindeling gebruiken dan de standaardindeling, en die die andere indeling op het aanmeldingsscherm beschikbaar willen hebben.

De toetsenbordinstellingen van het systeem wijzigen

  1. Find the codes of the desired language layouts in the /usr/share/X11/xkb/rules/base.lst file under the section named ! layout.

  2. Gebruik localectl om de systeemtoetsenbordinstellingen te wijzigen:

    localectl set-x11-keymap layout

    You can specify multiple layouts as a comma-separated list. For example, to set es as the default layout, and us as the secondary layout, run the following command:

    $ localectl set-x11-keymap es,us
  3. Log out to find that the defined layouts are available at the top bar on the login screen.

Note that you can also use the localectl tool to specify the machine-wide default keyboard model, variant, and options. See the localectl(1) man page for more information.

Meerdere toetsenbordindelingen weergeven zonder localectl

On systems that do not provide the localectl tool, you can change the system keyboard layout settings by editing a configuration file in /usr/share/X11/xorg.conf.d/.

De toetsenbordinstellingen van het systeem wijzigen

  1. Find the codes of the desired language layouts in the /usr/share/X11/xkb/rules/base.lst file under the section named ! layout.

  2. Add the layout codes to /usr/share/X11/xorg.conf.d/10-evdev.conf in the following way:

    Section "InputClass"
      Identifier "evdev keyboard catchall"
      MatchIsKeyboard "on"
      MatchDevicePath "/dev/input/event*"
      Driver "evdev"
      Option "XkbLayout" "en,fr"
    EndSection

    Multiple layouts can be added as a comma separated list, as shown in the example for English (en) and French (fr) layouts.

  3. Log out to find that the defined layouts are available at the top bar on the login screen.