Set up keyboard layout switching in Lubuntu

While playing around with Lubuntu in a virtual machine I came across an annoying UX flaw. There is absolutely no way to set up keyboard layout switching in Lubuntu. I use this feature all the time on Windows and Mac to switch between QWERTY and AZERTY layouts. On Windows, this is done with a keyboard shortcut: ALT+SHIFT. On Mac there’s a little switch on the menu bar. To make this work on Linux, however, we’ll need to hop into a Terminal:

setxkbmap -option grp:ctrl_shift_toggle us,be

This causes CTRL+SHIFT to switch between US and Belgian keyboard layouts. Admittedly not extremely user friendly, but if you’re setting up Linux in a virtual machine, you’re probably not a novice user.

Back to work now ;-).

Advertisements

3 thoughts on “Set up keyboard layout switching in Lubuntu

  1. It seems I have to enter those commands into the terminal every time I log in. Could you please suggest how to make this feature constant?

  2. Pingback: Set up keyboard layout switching in Lubuntu « Programmer's Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s