Is is possible to switch between keyboard and input languages on raspbian? My wife needs to type thai language and I need english. In windows we have a hot key swap between keyboards.

Can this be done on the Pi?

  • 2
    There is a very detailed answer on Ubuntu site explaining how to set keyboard layout in LXDE. It applies to Raspbian as well. – Dmitry Grigoryev Nov 10 '16 at 15:18

I haven't tested this, but I assume that you can change the keyboard layout in the same way as on a normal Debian install. Raspbian uses LXDE as its desktop environment, so you can follow their instructions:

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,th

See http://wiki.lxde.org/en/Change_keyboard_layouts (and also http://wiki.debian.org/Keyboard) for more information.

| improve this answer | |

There is a quick graphical way to change the keyboard layouts, the toggle key-combination and have a panel indicator at the same time.

  1. Right click on the panel and choose Add/Remove Panel Items
  2. Click Add
  3. Click 'Keyboard Layout Handler`
  4. Click Close
  5. Right click on the flag that appears on the panel
  6. Choose 'Keyboard Layout Handler Settings'
  7. Uncheck Keep system layouts
  8. Add the layouts you need and change the toggling keycombo to your liking
  9. Smile :-)

How to change keybooard layouts permanently

| improve this answer | |
  • 1
    Still doesn't seem to persist reboots though – qwazix Nov 11 '16 at 13:25
  • There is a reset after reboot. How do I save my settings? – Andrei Krasutski Apr 13 '18 at 18:50
  • Hurray! Works even after reboot. See my answer below. – Andrei Krasutski Apr 13 '18 at 20:21

try for Raspbian GNU/Linux 9.4 (stretch)

sudo nano /home/pi/.config/lxpanel/LXDE-pi/panels/panel

At the end of the file change to

Plugin {
  Config {

Save and reboot system.

| improve this answer | |
  • 1
    confirm, it works and persists – Andrey Semakin Mar 14 at 8:24
  • 1
    April 2020 - same problem, this worked. Thanks a lot. – SLCH000 Apr 15 at 12:51

This Keyboard Layout Handler is broken since May 2015 and still doesn-t work even with the new Pixel interface. That's why I still use the old February 2015 version of Raspbian. I tested all the newer versions with many keyboards with no success. It seems it is a bug in the software. Whatever you do, the close button doesn-t work. You may try to manually edit "/home/pi/.config/lxpanel/LXDE-pi/panels/panel" and add the languages you prefer, but when you reboot you have to uncheck again "keep system layouts" from the Keyboard Layout Handler, which is somehow inconvenient.

Anyway, this is only a temporary solution. We hope they will fix the broken button once for all and make a functional system.

| improve this answer | |
  • 1
    The close button doesn't work but the settings are saved if you close through the x button on the window. The reboot issue still exists though. – qwazix Jan 29 '17 at 20:48

change this file:


for keyboard languages (for example):

| improve this answer | |

It is true that after rebooting the settings aren't saved. Although, there is one way to fix it fast every time. You can create a bash executable that fixes it and run it at the start of raspberry pi.

Command Line: sudo nano language.sh

Now type the following:

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,gr
echo "You can now use more than one languages!"

Exit nano with CTRL-X.

Command Line: sudo chmod +x hello-world.sh

When you start the raspi you just run on command line: ./language.sh

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.