"empty" model/layout for xkb

Jeremy Huddleston jeremyhu at freedesktop.org
Tue Feb 2 09:15:58 PST 2010


On Feb 2, 2010, at 03:18, Peter Hutterer wrote:

> On Tue, Jan 26, 2010 at 12:36:55PM -0800, Jeremy Huddleston wrote:
>> I'm trying to modify xkeyboard-config to create an "empty" xbk rules set.
>> This way, we can set "empty" as the default in XQuartz and have a clean
>> slate.
>> 
>> I'm having a bit of trouble getting this to work.  Firstly, I can't seem
>> to figure out how to NOT set the +aliases(qwerty) variant on the keycodes.
>> Secondly, it doesn't seem to recognize my empty symbols file.
>> 
>> Can someone fill me in on what I'm missing?
> 
> the evdev rules file is combined from the base* as well (look at the
> Makefile.am). So for the +aliases to disappear you need to add it to
> base.l_k.part.

What would I add there?  I've had both of these before the '* = +aliases(qwerty)" line with no success:

empty = 
or
empty = empty

> that's the only thing I can spot immediately. I take it the rules file is
> composed correctly and the resulting files in /usr/share/X11/xkb (or
> whatever prefix) look alright?

They look alright to me.  I'm still puzzled why the symbols get defined like this:

xkb_symbols "unknown" {

   key     <> {
       symbols[Group1]= [               a,               A ],
       symbols[Group2]= [           aring,           Aring ]
   };
   modifier_map Mod2 { <> };
   modifier_map Shift { <> };
   modifier_map Lock { <> };
   modifier_map Mod1 { <> };
   modifier_map Control { <> };
   modifier_map Shift { <> };
   modifier_map Mod1 { <> };
   modifier_map Control { <> };
   modifier_map Mod2 { <> };
};

given that the empty symbols file is just:

+++ b/symbols/empty
@@ -0,0 +1,6 @@
+// $XKeyboardConfig$
+
+default
+xkb_symbols "basic" {
+    name[Group1]= "Empty";
+};




More information about the xorg-devel mailing list