I'm trying to use the English (intl. with dead keys AltGr) layout, since I have a US keyboard, but need to write italian text.

The combination of AltGr+accent+letter works fine, but the layout also offers the shortcut AltGr+letter that has the problem that by default outputs vowels with acute accent (á, é, etc), while most italian words use the grave accent (à, è, etc).

Is there a way to change the base layout to use grave accented letters instead?

  • I use the Compose key (in my case, the Right Win key) to do accents. For example é is generated by pressing Right Win (which latches) then e '
    – 24601
    Nov 11 '19 at 12:45
  • Maybe the English (US, intl., with dead keys) layout would fit your needs better. Nov 11 '19 at 14:55

You can open the file /usr/share/X11/xkb/symbols/us for editing, go to the xkb_symbols "altgr-intl" variant, and add these modified lines:

    key <AD03> { [     e,          E,        egrave,           Egrave ] };
    key <AC01> { [     a,          A,        agrave,           Agrave ] };

The change should be effective instantly. Please note that you may need to redo it if the xkb-data package is updated.

  • Is there a service that I need to restart in order to apply these changes? Nov 11 '19 at 15:37
  • Nevermind, switching layout refreshes the map Nov 11 '19 at 15:42

We've tried to address this problem in the 'new' version of altgr-intl. Refer to this webpage for an explanation.

Instructions on how to install this layout at the bottom of mentioned page.

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.