You are not logged in.

#1 2012-11-13 22:19:51

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[solved] Gnome default keyboard layout

Hi guys,

Can anybody please explain me why the following command works but the corresponding .conf entry does not?

setxkbmap -layout "us,pl,de" -option "grp:alt_shift_toggle"
[orschiro@thinkpad ~]$ cat /etc/X11/xorg.conf.d/01-keyboard-layout.conf
Section "InputClass"
        Identifier             "keyboard"
        MatchIsKeyboard        "yes"
	Option "XKBMODEL"   "pc105"
        Option "XkbLayout"     "us,pl"
	Option "XkbVariant"    "altgr-intl,"
        Option "XkbOptions"    "grp:alt_shift_toggle"
EndSection

When using the .conf entry simply nothing happens.

Regards

EDIT

I was able to identify my problem. See the following:

The above .conf does not work since Gnome seems to fetch a default US keyboard layout from somewhere which I cannot figure out where it is. Without any invocation from my side Gnome assumes this US keyboard. However, I do not want to us the default US keyboard layout but the altgr-intl option.

Screenshot

So as a workaround I have to run setxkbmap -layout us -variant altgr-intl after Gnome had started. But I would like to understand how Gnome assigns the default keyboard layouts.

Last edited by orschiro (2013-06-26 07:57:29)

Offline

#2 2012-11-19 06:50:13

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [solved] Gnome default keyboard layout

Could someone please move this thread to Desktop Environments sub-forum, please?

Offline

#3 2012-11-20 08:33:28

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [solved] Gnome default keyboard layout

I still do not understand where the default keyboard layout is taken from. However, I use a workaround and created a file .keyboard in my home directory which is launched after startup of Gnome and changes the layouts according to my setkxbmap settings.

More information.

Regards

Offline

Board footer

Powered by FluxBB