[WindowMaker] language switching in wmaker

hi sirs,

am try using wmaker and wonder is there anyway to switch from english to thai like shitf/alt key in gnome.

am using FreeBSD wmc.tint.or.th 8.0-RELEASE-p1 FreeBSD 8.0-RELEASE-p1 #0: Sat Dec 19 10:39:21 ICT 2009 root@wmc.tint.or.th:/usr/obj/usr/src/sys/GENERIC i386

many thanks in advance for any help and hints

best regards,
jotawski
 
There's a simple solution.:stud

1. Make sure your windowmaker is complied with XKB_STATUS option enabled.
2. Tune up your xorg.conf according to your prefs.

Mine was like this:

Code:
...
Section "InputDevice"
 
     Identifier  "Keyboard1"
     Driver      "kbd"
 ... 

 Option "XkbRules"   "xorg"
 Option "XkbModel"   "pc105"
 Option "XkbLayout"  "us,ru(winkeys)"
 [color="Red"]Option "XkbOptions"  "grp:ctrl_shift_toggle"[/color]

...

EndSection

And you'll get a neat little language status in every window (can be disabled in wmaker prefs).

Cheers! ;)
 
thanks you all
i shall experiment with as suggestions and report back here afterwards.

regards,
jotawski
 
copypaiste said:
There's a simple solution.:stud

1. Make sure your windowmaker is complied with XKB_STATUS option enabled.
2. Tune up your xorg.conf according to your prefs.

Mine was like this:

Code:
...
Section "InputDevice"
 
     Identifier  "Keyboard1"
     Driver      "kbd"
 ... 

 Option "XkbRules"   "xorg"
 Option "XkbModel"   "pc105"
 Option "XkbLayout"  "us,ru(winkeys)"
 [color="Red"]Option "XkbOptions"  "grp:ctrl_shift_toggle"[/color]

...

EndSection

And you'll get a neat little language status in every window (can be disabled in wmaker prefs).

Cheers! ;)

many thanks indeed. i changed from ctrl_shift_toggle to alt_shift_toggle and from us,ru(winkey) to us,th

need to publish this in my blog once again

regards,
jotawski
 
many thanks indeed for knowledges from this forums.

i would like to know further that which one control keyboard layout switching between /etc/X11/xorg.conf and /usr/local/etc/hal/fdi/policy/x11-input.fdi because since my last success in march i have never got it again until today. i mean i can not switch from english to thai with alt-shift keys combination until today. i did not know or understand why, very funny :r.

oh yes, here is my x11-input.fdi file
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keyboard">
<merge key="input.x11_options.XkbModel" type="string">pc105</merge>
<merge key="input.x11_options.XkbLayout" type="string">us,th</merge>
<merge key="input.x11_options.XkbOptions" type="string">grp:alt_shift_toggle</merge>
</match>
</device>
</deviceinfo>

anyway, many thanks indeed for the helps and hints from here.
 
While googling, saw this topic :), even if this topic is 6+ years old :D, but this solution might be helpful for someone.

Add this command to ~/.xinitrc, if you use startx or x11/slim, or add to ~/GNUstep/Library/WindowMaker/autostart
Code:
setxkbmap -layout us,* -option grp:caps_toggle -option grp_led:scroll -option terminate:ctrl_alt_bksp
in "-layout us,*", replace "*" with your layout, for example "-layout us,hu". Then relogin Window Maker.

This command will set Caps Lock as a keyboard layout switcher, ctrl+alt+backspace as a key combination to kill X server, and when different from english keyboard layout will be used -- Scroll Lock LED will be lit.

Also do not forget to enable keyboard layout switch button in window titlebars (Wprefs, last tab "Expert User Preferences").
ubQfqNp.png


Caps Lock functionality will be still available, but with Shift+Caps Lock.
 
Back
Top