How to remove US keyboard layout?

I see issues, such as this https://forum.qubes-os.org/t/qubes-users-4-1-rc1-uk-keyboard-reverted-to-us-layout/7386 here, but none of them solve my problem.

Since upgrading to 4.1, I have the keyboard layout broken again problem.
In System Tools > Keyboard > Layout the US layout is not mentioned anywhere and I specified GB layout during install.

Have tried:

  • Both Debian 11 and Fedora 35 templates.

  • Setting localectl to this:

System Locale: LANG=en_GB.UTF-8
VC Keymap: gb
X11 Layout: gb
X11 Model: pc105

Then, the toggle key switches between US and another language if one is set in System Tools.
If another language is added to the localectl or dpkg-reconfigure or installing language packs, toggle key switches between 3 layouts - one of them always US.
I don’t have an indicator, and lose track which language is current.
In some VMs and certain apps, have to press the toggle key more than 3 times to get the second language to activate.

  • Setting dpkg-reconfigure in Debian to None or C default doesn’t fix this.
  • The only VM where GB layout works properly is where it is set:

System Locale: LANG=en_US.UTF-8
VC Keymap: n/a
X11 Layout: us
X11 Model: pc105

But I don’t know how I was able to set VC Keymap that way. Setting it all to US doesn’t fix the problem.

Is there no way to get rid of the US layout completely?

Did you remove US keymap during install? You shouldn’t do that.


When installing Qubes (any GNU/Linux) just install your preferred keymap on top of US.