I am using Gentoo and dwm. My keyboard is configured with the command

setxkbmap us -variant alt-intl

but whenever I need to use double or single quotes or cedilla, I need to press the alt key. How can I configure my keyboard so I don't have to press alt, just the quote key?


You're better off with the English (intl, with AltGr dead keys) layout. How you install/select it will vary with your distro and desktop environment. For example, I explained how to do so with Lubuntu with this answer.

Using this layout means you don't have to press the quote button twice, but you still have access to the characters you're (probably) looking for.

In this case, the 'AltGr' means your right Alt key. Pressing and holding the right Alt key outputs this:

äåéëþúíóö (small example)

There's also the SHIFT key modifier.Pressing both the right Alt and SHIFT keys together outputs this:

ÄÅÉËÞÜÚÍÓÖ (small example)

And, more importantly, just pressing the ' once will output the ' as the expected behavior. This English keyboard layout is suitable for most characters that one will need in day-to-day operations.

Because it will depend on your desktop environment and distro, I can only show you how it looks on my system. This is where I went to configure this:

Keyboard Layout Handler

| improve this answer | |
  • This works in parts. Before I didn't need to press alt to put the tilde now I need it and I still need to hold the alt to put the cedilla. – Lucas Martins Soares Aug 8 at 17:31
  • I tried these: intl, alt-intl, altgr-intl. – Lucas Martins Soares Aug 8 at 17:35
  • Yes, you'll have to use both the alt key and (sometimes) the shift key. Unless you choose a specific language (other than English) these two things are your only real options - that I'm aware of. – KGIII Aug 8 at 17:42
  • I set the locale to pt_BR.UTF-8 UTF-8. Now I can use the ç ã without pressing alt, but the quotation marks cannot. – Lucas Martins Soares Aug 8 at 19:55
  • If your local keyboard settings don't meet your needs, you pretty much have to use the alt key. You can re-map keys, if you want. If you do, then you'll want to start with a keyboard layout that most closely matches your needs and go from there. Follow this link to learn more. However, I'd recommend acclimating to using the alt key. In time, you'll get used to it and it becomes second nature. Personally, I've used it for decades. It's just ingrained at this point. – KGIII Aug 8 at 20:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.