Switch between keyboard layouts easily in LXDE

Asked by Christopher Forster

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

gnome-shell --version
GNOME Shell 3.2.2.1

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

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu lxde-common Edit question
Assignee:
No assignee Edit question
Solved by:
Christopher Forster
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you give the output of:

lsb_release -a

Thanks

Revision history for this message
Christopher Forster (christopherforster) said :
#2

LXKeymap
"LXKeymap is an application that allows you to easily switch between keyboard layouts."
https://launchpad.net/lxkeymap

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,
Christopher

Revision history for this message
Christopher Forster (christopherforster) said :
#3

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

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

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

I suggest you post here:
http://forums.linuxmint.com/

Revision history for this message
Christopher Forster (christopherforster) said :
#5

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?

Revision history for this message
Launchpad Janitor (janitor) said :
#6

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

Revision history for this message
Christopher Forster (christopherforster) said :
#7

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

Find Keyboard Layout
http://en.wikibooks.org/wiki/Puredyne/Keyboard

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

Revision history for this message
Christopher Forster (christopherforster) said :
#8

@"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

Revision history for this message
Christopher Forster (christopherforster) said :
#9

@"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

Revision history for this message
Christopher Forster (christopherforster) said :
#10

[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>

Revision history for this message
Christopher Forster (christopherforster) said :
#11

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