How to Change the Keyboard Layout in Linux

You don't have to be limited to the same keyboard layout.

Change Keyboard Layout Linux Featured

When you spend any real length of time working on a computer, you learn that your preferences matter. Having your computer set up exactly as you like can make the difference between getting work done smoothly and dragging through something that’d otherwise be simple. Your keyboard and its layout are a major factor here, whether you’re writing, coding, or just relying on hotkeys.

Even though they all have their own ways of handling it, every Linux desktop environment makes it simple to customize your keyboard layout for your language, region, and personal preference.


The Lightweight X11 Desktop Environment (LXDE) is a simple environment for modern Linux-based operating systems. Because it has a minimal design, changing the keyboard layout for LXDE is straightforward.

Keyboard Layout 19 Lxde Desktop
  1. Click the LXDE icon on the lower-left corner of your screen to bring up the Menu section, then hover the mouse cursor to “Preferences.”
  2. To change the keyboard layout, click “IBus Preferences.” The IBus Preferences window controls the behavior of the internal keyboard driver in Linux.
Keyboard Layout 20 Lxde Settings Select
  1. To change your keyboard layout, go to the “Input Method” tab.
Keyboard Layout 21 Lxde Keyboard Settings
  1. The preferences window will display all the keyboard layouts that you have in the machine. To add a new one, press “Add.”
  2. This will, in turn, bring up a smaller menu with a list of commonly-used languages. You can also click the vertical ellipsis (⋮) after the initial options to search for the other available languages.
Keyboard Layout 22 Lxde Add Keyboard
  1. Close the preferences window to save your configuration. You can now switch between different keyboard layouts by pressing the IBus icon in your LXDE taskbar.
Keyboard Layout 23 Lxde Language Switch


  1. Open your “Settings” application. Locate the “Keyboard” tab in the list on the left side of the window and click it.
Keyboard Layout 01 Gnome Settings
  1. The window’s body will shift to display your current input settings, and you’ll see a section for “Input Sources” where you can change or add keyboard layouts.
Keyboard Layout 02 Language Select
  1. Click the plus sign (+) directly below your current language. A new window will open and suggest some common options related to your current language of choice.
  2. If you’re looking for something different, press the three dots at the bottom of the list. The choices will expand to display even more related options. If you still don’t see what you’re looking for, select “Other” at the bottom of the list.
  3. When you have your layout and language of choice, click to highlight it and press the “Add” button in the upper-right corner of the window.

KDE Plasma

  1. Open the Plasma settings. Scroll down in the menu to the left of the window. Under the “Hardware” heading, locate “Input Devices” and click it.
Keyboard Layout 03 Kde Settings
  1. The window will shift to display the items under the “Input Devices” section. Make sure that “Keyboard” is the selected tab on the left, and turn your attention to the main body of the window.
Keyboard Layout 04 Input Settings
  1. Locate and select the “Layouts” tab toward the top of the window, then check the “Configure layouts” box and unlock your keyboard layout options.
Keyboard Layout 05 Kde Add Layout
  1. Press the “Add” button to configure a new keyboard layout. Plasma will open a new window that will let you choose your language, layout, and variant.
  2. You can give your new entry a name and even assign a hotkey to easily switch to it. When you’re done, press “OK” to add your new keyboard layout.


On XFCE you can find the keyboard layout settings under the keyboard settings application. You can either get there through the generic “Settings” app for XFCE or directly through “Keyboard” under the “Settings” section of your menu.

Keyboard Layout 06 Xfce Keyboard Settings
  1. When the window opens, select the “Layout” tab at the top. Everything will be grayed out, as XFCE will use your system language by default. Uncheck the “Use system defaults” box to open the controls.
  2. To change your keyboard layout, either select your existing layout and “Edit” it with that button or press the “Add” button for a new layout.
Keyboard Layout 07 Xfce Add Language
  1. A new smaller window will open, listing the available languages. If a language has available layout options, it’ll have a black arrow next to it. Click the arrow to display the options.
  2. Locate the language and layout you want and press “OK” at the bottom of the window to add it.


  1. You can find your keyboard settings under Cinnamon’s “Settings” application. Scroll to the bottom, and under the “Hardware” section, click “Keyboard” settings.
Keyboard Layout 08 Cinnamon Settings
  1. The window will shift to display the available settings. Near the top of the window, locate the “Layouts” tab and select it.
Keyboard Layout 09 Cinnamon Language Settings
  1. Your window will switch again to display your current keyboard layout in a box to the left with available options on the right. To add a new keyboard layout, press the plus sign (+) at the bottom of the box on the left.
Keyboard Layout 10 Cinnamon Add Language
  1. Cinnamon will open a new window that lists all the available languages and layouts alphabetically. Locate yours or use the provided search to speed things up. Select your layout and press “Add.”


  1. Find your keyboard settings under the “Preferences” section of the MATE menu and launch it.
Keyboard Layout 11 Mate Start Menu
  1. When the application opens, select the “Layouts” tab at the top of the window.
Keyboard Layout 12 Mate Keyboard Settings
  1. The window will change to display your current keyboard layout and a few options, like keyboard model. Press the “Add” button to choose a new keyboard layout.
Keyboard Layout 13 Mate Add New Layout
  1. MATE will open a new window that displays a large keyboard graphic. At the top you’ll see the option to switch between searching by language or by country. The results are the same, so use whichever you’re more comfortable with.
  2. Select either your language or country, then find the exact layout that you prefer.
  3. As you select layouts, you’ll see the keyboard graphic change to reflect them. When you’re set, press “Add.”


Enlightenment is a simple yet elegant desktop environment that you can install in modern Linux distributions. Knowing that, changing the keyboard layout for this environment is incredibly easy.

Keyboard Layout 14 Enlightenment Desktop
  1. Left-click on your desktop. This will bring up Enlightenment’s context menu where you can select the various functions of your system.
  2. Hover your mouse cursor to “Settings -> All -> Input.” This will bring you to Enlightenment’s Bindings menu where you can customize how the environment behaves on certain keyboard and mouse inputs.
Keyboard Layout 15 Enlightenment Setting Select
  1. Press “Keyboard” to open Enlightenment’s Keyboard Map window, then click “Add.” This will tell Enlightenment that you want to install a new keyboard map for your system.
Keyboard Layout 16 Enlightenment Keyboard Settings
  1. Keyboard maps vary between models, layouts and variants, so you can install both language-agnostic variants, such as DVORAK and the French AZERTY layout, under the same menu. In my case, since I am studying German, I will select “Layout” and then scroll down to select “German (de).”
Keyboard Layout 17 Enlightenment Add New Layout
  1. Doing that will load the German keyboard layout for my keyboard. However, to fully enable it, you need to increase the priority of the second layout by selecting it and moving it up in the Keyboard Map window.
Keyboard Layout 18 Enlightenment Change Keyboard
  1. Press “Ok” to save your changes.

Frequently Asked Questions

Is there a difference between a keyboard model, layout and variant?

Yes! While these three options look similar, model, layout and variant all refer to three distinct parts of Linux’s internal keyboard driver. The keyboard model refers to the general type of keyboard that is being used with the machine.

For example, a standard desktop keyboard would be a 110-key keyboard, while a laptop might be slightly less. The keyboard model value tells the Linux kernel what keys and signals it should expect while the user is typing.

The keyboard layout and variant, on the other hand, are the internal mappings for the keys of a specific keyboard model. Changing the layout or variant in a machine does not change the signals that the kernel expects, so a 110-key model can both be used for a French AZERTY layout and a German QWERTZ layout.

Is it possible to use a different keyboard layout even if I have an American keyboard?

Yes! As described above, a keyboard layout does not depend on the type of keyboard that you are using, so it is possible for you to install a keyboard layout for a language that uses a different keyboard. For example, I was able to install the German keyboard layout even though I am using an English keyboard.

One issue with this approach, however, is that the symbols printed on your keyboard will not line up properly to the internal symbol table in Linux. For example, pressing the Y key on a US keyboard that uses a German layout will print Z.

I changed my keyboard layout, and now some keys are not working. Is my keyboard broken?

No! This is a direct result of a mismatch between the keyboard model and layout in your machine. Some keyboard layouts require a specific model for them to function.

Because of that, some keyboard layouts will look for specific keyboard signals from the models that it expects while disregarding other signals from unknown models. For example, the Japanese keyboard layout uses a different keyboard model to accommodate switching between different character sets.

One way to solve this is to use the type of keyboard that the layout expects from the machine, so if you intend on using a Japanese layout, you will need to also use a Japanese keyboard model.

Image credit: The figure of Crime Scene Investigation on keyboard by 123RF. All screenshots by Ramces Red

Ramces Red
Ramces Red

Ramces is a technology writer that lived with computers all his life. A prolific reader and a student of Anthropology, he is an eccentric character that writes articles about Linux and anything *nix.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox