How to Enable and Set the “Compose” Key on Linux

How to Enable and Set the “Compose” Key on Linux

by | Jan 7, 2025 | Useful Tech

Looking for a new and convenient way to insert accented or special characters on Linux without lifting your hands from the keyboard? Find out here how to enable and configure the “Compose” key on Linux (Gnome and KDE) for advanced shortcuts.

First, Coffee Spelled Another Way

When the sweet scent of cinnamon buns, cakes and pastries blends into that of freshly ground roasted coffee in Sweden’s homes, cafés and out of doors, it’s time for fika, the country’s famously joyous and regular gathering of friends.

If legend is to be believed, the tradition started with coffee—and the old Swedish word for it, “kaffi”—alone. For the gathering, the word’s two syllables switched places, and “fika” was born.

Now, with this way of composing words from words in mind, let’s see to composing characters from characters:

How to Enable and Set the “Compose” Key on Linux

Gnome

Time needed: 3 minutes

To pick a Compose key for entering special characters under Linux using Gnome:

  1. Open the Settings app.

    Here’s how: Open the quick settings menu from the top right corner, for example, and select the settings gear icon (⚙).

  2. Go to the Keyboard category.

  3. Select Compose Key under Special Character Entry.

  4. Enable Compose Key (if the option is present).

  5. Turn off Use layout default (if the option is present).

  6. Now choose the key you want to use as the Compose key.

    Set the “Compose” key using Gnome Linux

Keyboard layouts for all kinds of characters: How to Change the Keyboard Layout on Linux

KDE

To pick the Compose key using KDE Plasma:

  1. Open the System Settings app.
    Here’s how: Open the Application Launcher menu, for example, then choose System Settings in the Settings category.
  2. Go to the Input Devices category under Hardware.
  3. Switch to the Advanced tab.
  4. Expand the Position of Compose key.
  5. Check the key (or keys) you want to use as the Compose key.
  6. Now click Apply.
    Change the Linux “Compose” key using KDE Plasma

How to Enable and Set the “Compose” Key on Linux: FAQ

Can I set the Compose key using configuration files?

Yes.

Using X11 configuration files, you can also set the Compose key mapping directly.

How do I use the Compose key?

To inset a special character using the “Compose” key on Linux:

  1. Position the text cursor where you want to insert the character.
  2. Press the key Compose (if your keyboard includes one) or the key you set up to act as the “Compose” key (see above).
  3. Now type the key combination that will produce the desired character.
    Using the “Compose” key on Gnome Linux

What are some examples characters I can compose using the “Compose” key?

You can use key sequences with the Compose key for entering accented letters, for example, and special characters—amongst them:

Compose % O‰ (per mille)
Compose 3 4¾
Compose , Cç
Compose ? ?¿
Compose O R®

Special characters without the “Compose” key: How to Insert Emoji and Special Characters on Linux

(How to enable and set the Compose key on Linux tested with Gnome 46–47 and KDE Plasma 6.1–6.2; first published August 2024, last updated January 2025)

Home » Useful Tech » How to Enable and Set the “Compose” Key on Linux