Hello everyone,
I’ve recently switched my keyboard layout to the standard US layout (on Manjaro Linux) so I can use a modal editor more effectively. Now I’m running into trouble typing Spanish-specific characters: ñ, Ñ, and accented vowels (á, é, í, ó, ú).
Could you please suggest how to configure my system so I can type those characters while keeping the US layout?
@Individual-Heart-719 use the link that @Mirdarthos linked above and in conjunction with the cinnamon settings for keyboards > select the key you wish to use for the Compose Key, in my case, I use the Right Alt key etc.
Here’s how you can enable a Compose Key in Cinnamon on Manjaro Linux so that you can type Spanish letters (ñ, á, é, etc.) with a US‑layout keyboard. I’ll include a GUI method + a fallback via terminal/config files.
GUI method (simplest)
Open Settings → Keyboard (or Keyboard & Mouse) in Cinnamon.
Go to the Layouts tab (or Input Sources / Layouts depending on version).
Click the Options… button.
Expand the section Position of Compose Key.
Choose a key you don’t normally use (e.g., Right Alt, Right Ctrl, Menu, CapsLock) to act as the Compose key. (Ask Ubuntu)
Apply/OK and close. Now: to type e.g. “á” you press then ' then a. For “ñ” you might press then ~ then n.
Fallback / Terminal method
If the GUI doesn’t work (or you prefer config), you can edit keyboard configuration:
Alternatively, you can add it to your user profile login scripts: e.g., in ~/.xprofile etc., but note some display managers may ignore these. (Arch Linux Forums)
Tips specific for Spanish and US layout
Using a Compose key lets you keep the US (English) layout for the keyboard but still type accented Spanish letters easily.
Example sequences: + ~ + n → ñ ; + ' + a → á ; + " + e → ë ; etc. (see full list of sequences) (It’s FOSS)
If you also often type Spanish letters, you might consider using the “US International (with dead keys)” layout instead of plain US, but if you prefer a Compose key, the above works well.