You are not logged in.

#1 2014-05-25 21:02:20

MaximLacrima
Member
Registered: 2012-02-09
Posts: 4

Setting keyboard layout using Xorg configuration files.

Hello!

Here is one of my configuration files for Xorg, /etc/X11/xorg.conf.d/90-keyboard.conf :

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "us,ru,ua"
        Option "XkbModel" "pc104"
        Option "XkbOptions" "caps:ctrl_modifier"
	Option "XkbOptions" "grp:lctrl_rctrl_switch"
EndSection

It basically sets capslock as an additional ctrl key. And this option works.

This configuration should also allow to switch layouts by pressing left and right ctrl keys. However, this doesn't seem to work. I also tried grp:alt_shift_switch and some other combinations and all of them do not change layout. What is the problem? I use dwm, and start Xorg with startx.

Thank you.

Offline

#2 2014-05-26 05:46:46

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Setting keyboard layout using Xorg configuration files.

I'm not sure "grp:lctrl_rctrl_switch" is a valid option (I could be wrong though). Try the folllowing instead:

Option "XkbOptions" "grp:ctrls_toggle"

Burninate!

Offline

Board footer

Powered by FluxBB