Change default keyboard layout for virtual terminal

I use customized keyboard layout, which was set to default in UI gnome settings. It works well in gnome.

However, when I open a new virtual termnial (Ctrl+Shift+F4 orCtrl+Shift+F5 ) It does not use my prefered layout 🙁

Any idea how to make my layout the default everywhere ?

PS: When I was on uubntu 20, it was everywhere by default.
Now I ugraded to ubuntu 22 (and I’m using X11 server) and this problem appeared.

Asked By: n0tis


Edit the /etc/default/keyboard file to your liking. If you are not sure how to do it manually, there is a tool for the purpose:

sudo dpkg-reconfigure keyboard-configuration
Answered By: Gunnar Hjalmarsson