How to set up keyboard layout switching and indication in Xubuntu?

45,416

Solution 1

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

Solution 2

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. :)

Share:
45,416

Related videos on Youtube

Ivan
Author by

Ivan

Updated on September 18, 2022

Comments

  • Ivan
    Ivan over 1 year

    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?

    • Admin
      Admin about 11 years
      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
  • Ivan
    Ivan over 12 years
    Thanks, but it can't remember my preferences! askubuntu.com/questions/66096/…
  • Luís de Sousa
    Luís de Sousa about 10 years
    This solution also works on Xubuntu 12.04.
  • Ari Brodsky
    Ari Brodsky almost 10 years
    What does "Add it to the panel" mean? How do you do that?
  • Ari Brodsky
    Ari Brodsky almost 10 years
    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.
  • user000001
    user000001 over 8 years
    +1 This works also for xubutu 14.04
  • Felipe
    Felipe about 8 years
    For me it's setxkbmap -option grp:switch,grp:alt_shift_toggle br,ru, just making a note to my future self