Keyboard language with various language

Hi,

I am looking for the best manner to define various language for keyboard and define a shortcut keys to change it.

For the instance, i define two lang : “es,us”
And when i connect to the virtual console, i must able to switch from “Alt+Shift”.

Thank you in advance.

What have you done so far. Any approaches found?

No, i do not find anything how to do it with Rocky.

For the instance, if i define two lang : “es,us”,

how to do it on Rocky ?

And when i connect to the virtual console, i must able to switch from “Alt+Shift”.

How to do it ?

The Debian’s way :

cat /etc/default/keyboard

KEYBOARD CONFIGURATION FILE

Consult the keyboard(5) manual page.

XKBMODEL=“pc105”
XKBLAYOUT=“at,us”
XKBVARIANT=“”
XKBOPTIONS=“”
XKBOPTIONS=“grp:alt_shift_toggle”

BACKSPACE=“guess”

What do you mean by that, exactly?


One can change locale and keyboard layout with localectl. See man localectl
That is probably not the same as “have multiple layouts ready and switch on the fly” that the GUI offers.

A virtual console (VC) – also known as a virtual terminal (VT)
I do not use X.