Command to switch between keyboard layouts

All Gurus once were Newbies
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. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
dimit
Level 1
Level 1
Posts: 4
Joined: Sun Dec 09, 2012 7:38 am

Command to switch between keyboard layouts

Postby dimit » Sun Dec 09, 2012 7:49 am

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

User avatar
ElStellino
Level 3
Level 3
Posts: 115
Joined: Thu Nov 08, 2012 9:54 am
Location: Tenerife

Re: Command to switch between keyboard layouts

Postby ElStellino » Sun Dec 09, 2012 8:58 pm

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 18 Sarah – Cinnamon-64

Hardware: Core i3 530 2.93Ghz – 4Gb Ram Dual Channel.

dimit
Level 1
Level 1
Posts: 4
Joined: Sun Dec 09, 2012 7:38 am

Re: Command to switch between keyboard layouts

Postby dimit » Mon Dec 10, 2012 10:35 am

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

User avatar
axel668
Level 3
Level 3
Posts: 198
Joined: Wed Jul 08, 2009 11:56 am

Re: Command to switch between keyboard layouts

Postby axel668 » Mon Dec 10, 2012 12:01 pm

you can also use setxkbmap command
('setxkbmap de' switches to German layout)
“A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila” (Mitch Ratcliffe)

User avatar
Jim1938
Level 2
Level 2
Posts: 76
Joined: Thu Nov 29, 2012 8:49 pm
Location: USA

Re: Command to switch between keyboard layouts

Postby Jim1938 » Mon Dec 10, 2012 9:02 pm

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.
Wirth's law - Software is getting slower more rapidly than hardware becomes faster.

dimit
Level 1
Level 1
Posts: 4
Joined: Sun Dec 09, 2012 7:38 am

Re: Command to switch between keyboard layouts

Postby dimit » Wed Dec 12, 2012 10:05 am

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.


Return to “Newbie Questions”

Who is online

Users browsing this forum: LazyBonesLocker and 11 guests