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 this

Command to switch between keyboard layouts

Postby dimit on 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
dimit
Level 1
Level 1
 
Posts: 4
Joined: Sun Dec 09, 2012 7:38 am

Linux Mint is funded by ads and donations.
 

Re: Command to switch between keyboard layouts

Postby ElStellino on 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.
ImageImageImageImage
Core i3 530 2.93Ghz
4Gb Ram Dual Channel.
User avatar
ElStellino
Level 1
Level 1
 
Posts: 43
Joined: Thu Nov 08, 2012 9:54 am
Location: Tenerife

Re: Command to switch between keyboard layouts

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

Thank you.
You are right, it is exactly the same.
dimit
Level 1
Level 1
 
Posts: 4
Joined: Sun Dec 09, 2012 7:38 am

Re: Command to switch between keyboard layouts

Postby axel668 on 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
axel668
Level 3
Level 3
 
Posts: 183
Joined: Wed Jul 08, 2009 11:56 am

Re: Command to switch between keyboard layouts

Postby Jim1938 on 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.
User avatar
Jim1938
Level 2
Level 2
 
Posts: 79
Joined: Thu Nov 29, 2012 8:49 pm
Location: USA

Re: Command to switch between keyboard layouts

Postby dimit on 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.
dimit
Level 1
Level 1
 
Posts: 4
Joined: Sun Dec 09, 2012 7:38 am


Return to Newbie Questions

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 28 guests