I’m seeking to make permanent a selection in openSUSE-11.4 LXDE between english and Thai keyboards. And I need help here, as I have only succeed partially.
After installing Thai via YaST regional settings, I followed the advice in an LXDE forum here LXDE.org Forum • View topic - How to add layouts to keyboard preferences in LXDE? and on the LXDE Panel I righted click on LXPanel->Add/Remove Panel Items->Panel Applets->Add->Keyboard Layout Switcher. Upon a restart of X that gave me a US flag symbol (for US keyboard) in lower right hand corner. No other language selection.
I then as a regular user sent the command
setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,th
and I then had a choice between Thai and US keyboard which worked well. That unfortunately is only temporary until the next reboot.
The question I have is, HOW to make it permanent ?
I tried, and I was unable to make that permanent. I tried adding .Xkbmap to /home/user (restarted/tested) and when that failed I tried adding .Xmodmap to /home/user (restarted/tested) and when that failed I tried adding /etc/X11/Xkbmap (restarted/tested) and when that failed I added same line to /etc/X11/Xmodmap (restarted/tested) and that also failed. The line in all cases was
-option grp:ctrl_shift_toggle,grp_led:scroll us, th
I also tired editing the /etc/X11/xorg.conf.d/90_keytable.conf file, changing it to
Section "InputClass"
Identifier "LocalKeyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "us, th"
Option "XkbOptions" "grp:alt_shift_toggle"
EndSection
Any suggestions as to what I am doing wrong ?
I could create a script with my 1st successful effort (and have that run when LXDE starts up) but surely there is a more elegant way ? I am also NOT keen to have this system wide (even thou I tried that system wide (unsuccessfully) at the end) but I would rather only have this for one LXDE user (my wife).
Again, any suggestions ?