Peppermint | Linux OS Community Forum
 
It is currently Sat Jul 26, 2014 1:05 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: switch multiple keyboard layout in peppermint linux (Solved)
PostPosted: Sat Dec 08, 2012 2:28 am 
Offline

Joined: Sat Dec 08, 2012 1:58 am
Posts: 1
If you want to use multiple keyboard layouts in the peppermint follow these instructions:

1.Menu->Preferences->language support->install/remove languages
Then choose your language (in my case persian) then ->Apply changes

2.Right click on the panel (For newbies:Panel is the place at the bottom of your desktop)
Then choose "Add/remove panel items" ->add->keyboard layout switcher

3.Menu->accessories->Terminal
Type in ->setxkbmap -layout "us,ir"
*us ,means english and ir means persian language.For finding out what is the abbreviation for your language you have to open Lxkeymap.
Menu->Preferences->keyboard layout
in there you can see a list of countries and their languages.
For example:
French->fr
Persian->ir
English->us

4.Now after this you can see at your panel ,bottom of the screen ,the right side.there is a sign for language.if you left click on it you can switch languages.

*I also added a thing to change the layout with shortcut .open the terminal and type:
setxkbmap us,ir -option "grp:alt_shift_toggle"
Now you can switch by pressing alt+shift

you can see the image in here:http://i.minus.com/i3Xre19uJPK3g.png


Last edited by johira on Sat Dec 08, 2012 11:06 am, edited 1 time in total.

Top
 Profile  
 
 

 Post subject: Re: switch multiple keyboard layout in peppermint linux (Sol
PostPosted: Sat Dec 08, 2012 7:43 am 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
I nearly said "glad you solved your problem", then realised it was a tutorial :)

Thanks johira.

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: switch multiple keyboard layout in peppermint linux (Sol
PostPosted: Tue Jul 09, 2013 7:46 am 
Offline

Joined: Tue Jul 09, 2013 7:07 am
Posts: 9
hello johira,
your method works for me (I manage to have french, spanish and german keyboard, and the switcher icon in the panel), but everything is lost when I reboot or even leave and return to my session... then I return to only default (spanish) with the icon ES that doesn't react on clicking, as if spanish was the only language installed.....what is the problem ? thanks,
cricri


Top
 Profile  
 
 Post subject: Re: switch multiple keyboard layout in peppermint linux (Sol
PostPosted: Tue Jul 09, 2013 9:51 am 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
does it start to work again if you run:
Code:
setxkbmap -layout "es,us"

(obviously change the layout entries to what you used before)

if so, run:
Code:
sudo gedit /etc/xdg/lxsession/Peppermint/autostart

and add a single NEW LINE at the bottom that reads:

@setxkbmap -layout "es,us"

(obviously change the layout entries to what you used before)
SAVE the file .. reboot, or log off on to test.

=======================================================

If you also want to be able to use the key combo Alt+Shift to be able to toggle between keybaord layouts .. change that entry to:-

@setxkbmap -option grp:alt_shift_toggle "es,us"

(obviously change the layout entries to what you used before)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
 Post subject: Re: switch multiple keyboard layout in peppermint linux (Sol
PostPosted: Tue Jul 09, 2013 10:35 am 
Offline

Joined: Tue Jul 09, 2013 7:07 am
Posts: 9
works now ! thanks alot !
cricri


Top
 Profile  
 
 Post subject: Re: switch multiple keyboard layout in peppermint linux (Sol
PostPosted: Tue Jul 09, 2013 10:43 am 
Offline
User avatar

Joined: Tue Apr 17, 2012 12:25 pm
Posts: 5521
Location: Cornwall, England
No problem :)

_________________
Please be sure to sign up to the new Peppermint forum and post any new question there .. this forum will be made read-only on the 1st April 2014

You can read the announcement here:
http://peppermintos.net/viewtopic.php?f=6&t=6608
Or here's a direct link to the new forum:
http://forum.peppermintos.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron

Powered by php B.B. © 2000, 2002, 2005, 2007 php B.B. Group
Template made by DEVPPL