Command to switch between keyboard layouts

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
dimit

Command to switch between keyboard layouts

Post by dimit »

I am new in Linux.
My OS is Nadia with Cinamon 64bit.
I use two keyboard layouts, English and Greek.

I 'd like to ask which is the command to switch between the two layouts. I want to use it to create a keyboard shortcut.

Thank you
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
ElStellino
Level 3
Level 3
Posts: 163
Joined: Thu Nov 08, 2012 9:54 am
Location: 192.168.1.136

Re: Command to switch between keyboard layouts

Post by ElStellino »

I have Maya Cinnamon 64 but it should be the same.
Go in Menu --> Preferences --> Keyboard Layout--> Click on the Layouts tab --> Options --> finally click on Key(s) to change layout, and choose one.

Image


Please remember to mark this thread title as [SOLVED] once you are done.
Linux Mint 21.1 – Cinnamon-64

Hardware, since 2009 – still rocking:
MB - ASRock H55DE3
Core i3 530 2.93Ghz 
4Gb DDR3 Ram Dual Channel
And there’s a new entry!
Acer laptop
Intel© Core™ i5-4200U CPU @ 1.60GHz × 2
6GB RAM
dimit

Re: Command to switch between keyboard layouts

Post by dimit »

Thank you.
You are right, it is exactly the same.
axel668

Re: Command to switch between keyboard layouts

Post by axel668 »

you can also use setxkbmap command
('setxkbmap de' switches to German layout)
Jim1938

Re: Command to switch between keyboard layouts

Post by Jim1938 »

I've used this setup with Ubuntu, Mint, and Crunchbang.
Change the Danish dk to the Greek 2-letters.

Go to etc/default/keyboard and make changes that fix your situation:

XKBMODEL="pc105"
XKBLAYOUT="us,dk"
XKBVARIANT=""
XKBOPTIONS="grp:ctrl_shift_toggle"

The last line is what I've found very easy to use to toggle between languages.
I use my left little finger to touch both shift and control keys together.
dimit

Re: Command to switch between keyboard layouts

Post by dimit »

Thank you guys.. thx a lot!!!
I asked for one way and I got three..!!
It seems that the Linux community is true of its name..
Many thanks.
Locked

Return to “Beginner Questions”