I use Openbox as my window manager.
By adding these lines to /etc/X11/xorg.conf.d/10-keyboard.conf
Code: Select all
Section "InputClass"
Identifier "thinkpad60"
Driver "evdev"
Option "XkbLayout" "gb,gr"
Option "XkbVariant" "extd,extended"
Option "XkbOptions" "grp:alt_shift_toggle,grp_led:caps"
MatchIsKeyboard "on"
EndSection
However, I often need to write greek in one window or application and english to another one. As far as I remember, KDE and Gnome Shelll have such an option but with Openbox I haven't found a way yet.
In Arch Linux forums I have found this old solution
https://bbs.archlinux.org/viewtopic.php?id=69445
to create /etc/hal/fdi/10-keymap.fdi
and add these lines
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<deviceinfo version="0.2">
<device>
<match key="info.capabilities" contains="input.keymap">
<append key="info.callouts.add" type="strlist">hal-setup-keymap</append>
</match>
<match key="info.capabilities" contains="input.keys">
<merge key="input.xkb.rules" type="string">base</merge>
<!-- If we're using Linux, we use evdev by default (falling back to
keyboard otherwise). -->
<merge key="input.xkb.model" type="string">keyboard</merge>
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name"
string="Linux">
<merge key="input.xkb.model" type="string">evdev</merge>
</match>
<merge key="input.xkb.layout" type="string">us,il</merge>
<merge key="input.xkb.model" type="string">pc105</merge>
<merge key="input.xkb.Options" type="string">grp:ctrl_shift_toggle</merge>
</match>
</device>
</deviceinfo>But this solution is over 10 years old and it needs hal.
Is there any way to implement in in a current system?
thanks in advance


