Switch between keyboard layouts easily in LXDE

Asked by Christopher Forster on 2012-04-18

Hi, I have configured two keyboard layouts in GNOME & I can switch between them easily.

gnome-shell --version

I'm shure the setxkbmap command can set the keyboard layout. Is there a keyboard layout applet in LXDE?

Question information

English Edit question
Ubuntu lxde-common Edit question
No assignee Edit question
Solved by:
Christopher Forster
Last query:
Last reply:

Can you give the output of:

lsb_release -a


"LXKeymap is an application that allows you to easily switch between keyboard layouts."

LXKeymap works but is currently missing support for multiple keyboard layouts. https://bugs.launchpad.net/lxkeymap/+bug/904386

Within the console, ran from Terminal:
sudo dpkg-reconfigure keyboard-configuration

Switching keyboard layout works with Persian & English by pressing Alt + Shift.

However I need to switch keyboard layout between Persian & Swedish - Northern Saami (Sweden)

Xfce Desktop Environment
xfce4-xkb-plugin is designed for the Xfce4 panel. I don't want to use the Xfce4 panel. Picture shows "keyboard layout applet" http://screenshots.debian.net/screenshots/x/xfce4-xkb-plugin/7897_large.png see British flag.

"lsb_release -a" will get a follow-up latter Deo Volente (God willing).

Best regards,

lsb_release -a
No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 12 Lisa
Release: 12
Codename: lisa

mint isn't supported here. Mint has an entirely separate support from ubuntu.

I suggest you post here:

Thank you. I still believe they have much in common. Does this also affect Ubuntu as well as any derivative of Ubuntu? Does the Ubuntu community support Lubuntu - Ubuntu that uses LXDE?

Launchpad Janitor (janitor) said : #6

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Swedish with Northern Sámi & Persian Keyboard Layout in Lubuntu 12.04???

Find Keyboard Layout

Keyboard Layout exists in Lubuntu?
pcmanfm /usr/share/X11/xkb/symbols

Keyboard Layout Switcher plugin for LXPanel
Right clicking the panel , Select Add / Remove Panel Items, Panel Applets, Add, Keyboard Layout Switcher.

Configuring keyboard configuration
sudo dpkg-reconfigure keyboard-configuration

Select Keyboard Layout
setxkbmap __

echo '@setxkbmap -option grp:ctrl_shift_toggle "se,ir"' | sudo tee -a /etc/xdg/lxsession/Lubuntu/autostart

Source of inspiration: Switching keyboard layouts in Lubuntu 11.10 http://askubuntu.com/questions/102344/switching-keyboard-layouts-in-lubuntu-11-10

@"Myself" comment #7
WARNING! Caution, don't try on production machines without fear of dealing with problems.

@actionparsnip (andrew-woodhead666) comment #4
This also affects Lubuntu 12.04 LTS (Precise Pangolin).

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise

LXKeymap doesn't work in Lubuntu 12.04 LTS?
Install from Terminal:
sudo add-apt-repository ppa:lubuntu-dev/staging
sudo apt-get update && sudo apt-get install lxkeymap

@"Myself" comment #7
Lets you remove unnecessary text lines (after running echo '@setxkbmap -option grp:ctrl_shift_toggle "se,ir"' | sudo tee -a /etc/xdg/lxsession/Lubuntu/autostart more than once).

gksudo leafpad /etc/xdg/lxsession/Lubuntu/autostart

[SOLVED] Swedish & Persian Keyboard Layout in Lubuntu 12.04
1. Keyboard Layout Switcher plugin for LXPanel
Right clicking the panel , Select Add / Remove Panel Items, Panel Applets, Add, Keyboard Layout Switcher.
2. echo '@setxkbmap -option grp:ctrl_shift_toggle "se,ir"' | sudo tee -a /etc/xdg/lxsession/Lubuntu/autostart
3. Change keyboard layout with <Ctrl>+<Shift>

Keyboard Layout in Lubuntu 12.10 GUI (can mean more intuitive interface)
1. Add / Remove Panel Items
2. + Add
3. Keyboard Layout Handler
4. "Keyboard Layout Handler" Settings
5. Then Add Keyboard Layout