OpenBox. Keyboard layout.

valsorym

Well-Known Member

Reaction score: 20
Messages: 419

I do not even know how to add keyboard layouts OpenBox:
English (default)
Russian
Ukrainian

Change keyboards Left Shift + Left Alt.
Do not even know how!

Thanks.
 
OP
OP
valsorym

valsorym

Well-Known Member

Reaction score: 20
Messages: 419

As the GUI is used OpenBox.
Option 1.
Open ~/.config/openbox/autostart.sh file and add the line.
Code:
setxkbmap -layout us,ru,ua -variant -option grp:alt_shift_toggle,grp_led:scroll,terminate:ctrl_alt_bksp &
Valid combinations of keys:
Code:
    grp:toggle – Right Alt
    grp:shift_toggle – Two Shift
    grp:ctrl_shift_toggle – Ctrl+Shift
    grp:alt_shift_toggle – Alt+Shift
    grp:ctrl_alt_toggle – Ctrl+Alt
    grp:caps_toggle – CapsLock
    grp:lwin_toggle – Left "Win"
    grp:rwin_toggle – Right "Win"
    grp:menu_toggle – Button "Menu"
Include an indicator:
Code:
    grp_led:num – indicator Num Lock.
    grp_led:caps – indicator Caps Lock.
    grp_led:scroll – indicator Scroll Lock.
Command: ",terminate:ctrl_alt_bksp" - shutdown X when you click Ctrl+Alt+Backspace.
Use Ctrl+Shift => En Ru

Option 2.
In /etc/X11/xorg.conf rewrite:
Code:
Section "InputDevice"
	Identifier "Generic Keyboard"
	Driver "kbd"
	Option "CoreKeyboard"
	Option "XkbRules" "xorg"
	Option "XkbModel" "pc105"
	Option "XkbLayout" "us,ru,ua"
	Option "XkbVariant" ",winkeys"
	Option "XkbOptions" "grp:alt_shift_toggle,grp_led:scroll"
EndSection
Use Ctrl+Shift => En Ru

Localization OpenBox.
In ~/.xinitrc
Code:
export LANG='ru_RU.UTF-8'
export LC_ALL='ru_RU.UTF-8'
openbox-session
in FreeBSD 8.x.
 

free-and-bsd

Aspiring Daemon

Reaction score: 72
Messages: 657

What's wrong with my browser? I can't find the THANK YOU button.

Anyway, THANK YOU, setxkbmap is so very useful, but I tend to forget about it from time to time.
 

fonz

Son of Beastie

Reaction score: 369
Messages: 2,560

free-and-bsd said:
What's wrong with my browser? I can't find the THANK YOU button.
Yes, yes, point taken :h We're aware that it's one of the most-missed features since the migration from vBulletin to phpBB.
 

free-and-bsd

Aspiring Daemon

Reaction score: 72
Messages: 657

Yeah, but otherwise the new interface is fine in that the tags can be added more easily.
 
Top