Author Topic: Quick Keyboard Layout Change  (Read 10037 times)


  • Member
  • *
  • Posts: 29
Quick Keyboard Layout Change
« on: April 12, 2007, 06:59:16 pm »
I need to change my keyboard layout between Swedish and English quite frequently. Is there a quicker way to do this than running VASM, and configuring X-Keyboard? If nothing else, I could just write a script to change the .conf file in /etc/X11 right? I'd be glad to take the excuse to learn to write custom scripts, but if there's already a quicker way, it would be appreciated.


  • Administrator
  • Vectorian
  • *****
  • Posts: 1346
  • Registered Linux User #386728
Re: Quick Keyboard Layout Change
« Reply #1 on: April 13, 2007, 10:11:55 am »
Are you using KDE as your desktop environment? If so, there is a control center applet called kkbswitch that will allow you to switch keyboard layouts quickly. You still have to edit your xorg.conf file so that it has both English and Swedish keyboard layouts. However, kkbswitch will save you the time of going through VASM, etc., to change layouts.

Another option is to use xkeysw, though I am not familiar with it at all - just found it through a Google Linux search.

VL 6.0 SOHO latest alpha on one box, VL 5.9 Lite on the other.


  • Vectorite
  • ***
  • Posts: 209
Re: Quick Keyboard Layout Change
« Reply #2 on: May 23, 2007, 08:16:37 am »
In the /etc/X11/xorg.conf file check:

Section "InputDevice"

#       Option      "XkbRules"  "xorg"
    Identifier     "Keyboard0"
    Driver         "kbd"
    Option         "XkbModel" "pc105"
    Option         "XkbLayout" "sw,en" (<OR WHAT WOU WANT)
    Option         "Core"
    Option         "XkbOptions" "grp:caps_toggle"

This toggles with caps_lock between two layouts.

man xorg.conf and the Input Devide section there. That works everywhere.
VL 5.1.SOHO xFce


  • Packager
  • Vectorian
  • ****
  • Posts: 2921
    • The Linux Works
Re: Quick Keyboard Layout Change
« Reply #3 on: May 29, 2007, 01:39:12 pm »
If you're L 5.8 Standard then Xfce 4.4.0 also has a keyboard switching applet that works very well indeed.  I use it to switch between English and Israeli (Hebrew) keyboard layouts all the time. 

eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
VL64 7.1

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1