Topic: Keyboard switching in Openbox (greek and english) - Crunchbang Linux
I had a problem activating the Keyboard switching in my Eee PC (crunchee linux -8.10.2-). No matter what I did (changes in the xorg.conf, etc) nothing seemed to work. So, here is the solution.
1) To see what keyboard layouts are installed and what key combination to use run
$ xprop -root | grep XKB
2) Install fbxkb
$ sudo apt-get install fbxkb
Go to /usr/share/fbxkb/images and rename zz.png to old_zz.png. Then rename us.png to zz.png. This way you are going to have the american flag shown on the keyboard switching applet when you have chosen US as default locale.
3) run
$ sudo dpkg-reconfigure console-setup
and setup the keyboard (choose pc 105) and the - us,gr- for the keyboard options. Also type - extended - for the XkbVariant to enable the typing of EURO sign. Also choose lctrl_lshft for key combination to switch keyboards.
For some strange reason all changes in /etc/X11/xorg.conf have no effect before you run at least once the dpkg-reconfigure and set the proper values. After that the xorg.conf file can be used to set values for the keyboard to override the default values.
4) To override all the above and set your own (not limited by the reconfigure program) choices edit the /etc/X11/xorg.conf file and include the following
Section "InputDevice"
Identifier "keyboard"
Driver "kbd"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbLayout" "us,gr"
Option "XkbVariant" ",extended"
Option "XkbOptions" "grp:shifts_toggle,lv3:ralt_switch"
EndSection
This will allow you to switch keyboards by pressing left and right shifts simultaneously. And the little applet will change flags. You can also switch keyboards by clicking on the fbxkb applet.