33

I use 3 different languages (English, Czech and Russian) every day. I'd prefer to switch (preferably globally, I don't like per-window) between them with Left+Alt+Shift.

I'd also like to see the active language indication.

Unfortunately I couldn't find any obvious way to set this up in XUbuntu 11.10 - there is even no keyboard indicator applet available in the panel configuration. Any recommendations?

Eliah Kagan
  • 117,780
Ivan
  • 57,065
  • 10X man - you are godlike! This is it the easiest and the most efective way! Gave meaning to all the hours I've lost in searching for solution setxkbmap -option grp:switch,grp:caps_toggle us,bg –  Mar 24 '13 at 15:28

4 Answers4

32

There is a keyboard layout plugin for xfce - xfce4-xkb-plugin. Install it, if it's not installed, then add it to the panel. Right click its icon and add the layouts you want.

To configure only keyboard shortcut use:

setxkbmap -option grp:switch,grp:alt_shift_toggle us,ru
mikewhatever
  • 32,638
  • Thanks, but it can't remember my preferences! http://askubuntu.com/questions/66096/how-to-set-up-xfce4-xkb-plugin-to-remember-settings-over-reboots – Ivan Oct 14 '11 at 10:17
  • What does "Add it to the panel" mean? How do you do that? – Ari Brodsky Jun 23 '14 at 07:52
  • 1
    Well, I figured it out using the other answer, but for reference "the panel" means the horizontal panel at the top of the screen. Maybe it's obvious to most people, but I'm a newbie to Xubuntu. – Ari Brodsky Jun 23 '14 at 07:56
  • +1 This works also for xubutu 14.04 – user000001 Dec 11 '15 at 13:21
  • For me it's setxkbmap -option grp:switch,grp:alt_shift_toggle br,ru, just making a note to my future self – Felipe Apr 12 '16 at 07:44
21

Ran into the same issue with xubuntu 13.04. The old way many online docos referred to (via Settings > Keyboard > Layout Options) no longer worked because there was no such button any more. Here is the new conventional (as in, no shell commands or X11 conf editing required) method that worked for me, in detail:

  • Make sure the xfce4-xkb-plugin package has been installed (normally it should).
  • Right-click on the top panel and select Panel > Add New Items...
  • Select the Keyboard Layouts item from the list. A flag icon will appear in the panel.
  • Now right-click on the flag icon in the top panel and select Properties.
  • Now you will get the actual layout switch setup menu where you can choose your layout change key combo as well as customize other useful stuff including the list of layouts.

P.S. I don't mind using the shell or editing the X11 configuration. For that matter, I love using the shell. However, I hate it when the shell needs to be used to set up a GUI. :)

Yar
  • 311
  • 2
  • 2
1

In my case I've needed to add Keyboard Layouts. enter image description here enter image description here enter image description here enter image description here enter image description here

enter image description here

0
  • For setup keyboard layout, go to Settings > Keyboard > Add Layout
  • For langauge indication, got Panel > Add New Items > Keyboard Layouts
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center. – Community May 30 '23 at 12:53