XGL/Compiz and keyboard layout switching

Foxy foxy at on-the-hill.me.uk
Fri Aug 11 13:29:30 CEST 2006


Foxy wrote:
> Stavros Giannouris wrote:
>   
>> Στις Thu, 10 Aug 2006 13:50:25 +0100
>> Ο/Η Foxy <foxy at on-the-hill.me.uk> έγραψε:
>>
>>   
>>     
>>> I wonder if anyone uses XGL/Compiz with xfce (from Ubuntu Dapper
>>> repos) and needs to switch between two or more keyboard layouts? It
>>> does not work for me. I have this section in my xorg.conf, but it
>>> looks to be completely ignored.
>>>     
>>>       
>> I had the same problem when trying out compiz a while ago. The
>> workaround I used was to use setxkbmap(1) to define the keyboard
>> layouts and the toggle keys after the desktop loaded.
>>
>>   
>>     
>>> However, if  I log into Gnome session and then log out and log into 
>>> xfce, then switching is working as it is supposed to work.
>>>
>>>     
>>>       
>> Regards,
>>     
I tried setxkbmap but it gives me error:

> :~$ setxkbmap -layout 'gb,ru(winkeys)' -option "grp:ctrl_shift_toggle"
> Couldn't interpret _XKB_RULES_NAMES property
> Use defaults: rules - 'xorg' model - 'pc101' layout - 'us'
> Segmentation fault
I looked for xkb and got nothing:
> xprop -root | grep XKB 
Interesting that it happens only in xfce. In Gnome it works fine:

> ~$ xprop -root | grep XKB _XKB_RULES_NAMES(STRING) = "base", "pc101", 
> "gb,ru", ",winkeys", "grp:ctrl_shift_toggle"
> _XKB_RULES_NAMES_BACKUP(STRING) = "base", "pc101", "us", "", ""

So I can for example do:

> ~$ setxkbmap -layout 'gb,ru(winkeys)' -option "grp:ctrl_shift_toggle"
I wonder why xkb is not loaded properly in xfce? Any ideas?





More information about the Xfce mailing list