0

I have recently upgraded my distro from Ubuntu 20.04 to 22.04. To do so, I used this guide. Everything went well, except for one thing, which is my own fault.

I had to configure a package during the upgrading, where I had to choose a keyboard shortcut to "change the keyboard layout to latin characters" or something like that.

Well I set it to the Alt Gr key (the one to the right of the space key).

The problem is, I always have to press that key when I am typing special characters (such as {, [, ], or }). And so it always switches my keyboard layout from the Canadian multilingual to the French AZERTY, before I get to type a special character.

I have checked in my shortcuts (those in Parameters > Keyboards > Shortcuts), the keyboard shortcut to change the keyboard layout is set to Super + space.

I can cycle through all my keyboards with Super + space, but whenever I press Alt Gr, I go back to the French AZERTY layout.

So I guess that, during the upgrade, I set a package that deals with this shortcut, but I can't remember which one. Again, I only remember that the shortcut is used to "revert to a latin layout" or something like that.

I am sorry that I can't describe my problem more properly.

Does anyone know the package that has this shortcut set, and how I can remove it?

Or is there a way to look for the packages that have keyboard shortcuts set?

Or, maybe, a workaround?

Thank you all in advance!

1 Answer 1

0

Install "Gnome Tweaks". On the "Keyboard & Mouse" tab, click the button "Additional Layout Options" and change the options under "Switching to another layout".

If that option was set as system default, you could remove it by editing the line XKBOPTIONS= in the file /etc/default/keyboard (as root, because this is a system file). The option to use AltGr is called grp:toggle. To remove all options, just make sure the line reads XKBOPTIONS="".

1
  • Thank you very much, it worked with the Gnome Tweaks!
    – lucanard
    Sep 12, 2022 at 11:27

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.