1

I know that on many Desktop Environments, Using win + Space one can switch between installed language inputs.

Is there a command line way of achieving the same ?

Severus Tux
  • 10,126

2 Answers2

2

Don't worry, there is a quick solution.
Open a new terminal and execute localectl set-locale LOCALEVAR=LOCALE to impose a new locale. Before executing the command, replace "LOCALE" with the desired locale from the output of localectl list-locales and "LOCALEVAR" with any variable name from the output of locale.

If you want to change the keyboard input locale of the terminal use localectl set-keymap LANGNAME; if you want to change the keyboard input locale of the GUI use localectl set-x11-keymap LANGNAME. Replace "LANGNAME" with the short-name of your language.

Explanation: the console command localectl is used to change the system locale and keyboard layout settings.
The system locale if for the system services and the GUI; the keyboard settings control the keyboard layout used on the console and of the GUI.

2

Trying to help by posting an own answer using the setxkbmap command.

To switch to English(US):

setxkbmap -layout us

To switch to Kannada:

setxkbmap -layout in -variant kan