Tuesday, September 01, 2009

KDE Keyboard Tool in Mepis 8

Today I got the keyboard layout switcher working in Mepis 8 on the 4 GB pendrive. The key was this Ubuntu Forums thread.
First, the CLI command

setxkbmap -model pc105 -layout br

works great to change the layout from US to BR. Change the "br" in the command to "us" to revert.
However, making a small change to /etc/X11/xorg.conf placed an applet in the panel that I can click to make the us->br change that I wanted.
Section "InputDevice"
Identifier "Keyboard0"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbModel" "pc105"
Option "XkbLayout" "us,br"
Option "XkbOptions" "grp:alt_shift_toggle"

The XbdLayout and XbdOptions lines were the only ones changed.
However, the XbdOptions line doesn't seem to do anything as hitting Alt+Shift does not change the Kbd layout.
Right clicking on the applet give access to a configure option which includes choices for making the same switch. However, still can't get this to work.
Anyway, what I have works perfectly so that's a significant advance.

No comments:

Post a Comment