Skip to content

Instantly share code, notes, and snippets.

@kalkin
Created June 7, 2023 08:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kalkin/bff3553773f7935956930b07867a54a3 to your computer and use it in GitHub Desktop.
Save kalkin/bff3553773f7935956930b07867a54a3 to your computer and use it in GitHub Desktop.
Set Compose Key to Left Control in Gnome

Enable Left Control Key as Compose Key on Gnome

In recent updates, Gnome Tweak Tool and the standard Gnome Keyboard Settings no longer provide the option to set the left control key as a Compose key. If you want to customize your keyboard configuration to use the left control key as a Compose key, follow these instructions.

Inspect Current Keyboard Settings

First, check your current keyboard settings by running the following command in your terminal:

gsettings list-recursively org.gnome.desktop.input-sources

Upon execution, you will see an output similar to the one below:

org.gnome.desktop.input-sources current uint32 0
...
org.gnome.desktop.input-sources xkb-options ['ctrl:nocaps']

For this tutorial, our main focus will be the last line of the output, specifically the xkb-options section.

Modify XKB Options

Next, we need to add 'compose:lctrl' to the xkb-options list. To do this, run the following command:

gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps', 'compose:lctrl']"

In this command, we're adding 'compose:lctrl' to the existing list of xkb-options, which effectively enables the left control key to serve as a Compose key.

And that's it! You've successfully customized your Gnome keyboard settings to enable the left control key as a Compose key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment