The Hungarian xkb file is the most elegant one I've seen so far!
To stay in style with this elegance, you should really have a look at what the 'basic' (101_qwertz_comma_dead) component does and emulate its goodness:
// 102_qwertz_comma_dead
// 102 key layout
// with decimal comma on keypad
// and with dead key support
partial
xkb_symbols "102_qwertz_comma_dead" {
name[Group1] = "Hungarian (102/qwertz/comma/dead keys)";
include "latin"
include "hu(def_102)"
// include "hu(def_qwertz)"
include "kpdl(comma)"
include "hu(def_dead)"
// include "hu(def_common)"
include "level3(ralt_switch)"
};
I suppose you want the def_102 variant since you specified a <LSGT> key in your layout. I commented out the lines you won't be needing.
You'll want to copy that into your layout instead of just 'include "hu"'; then instead of the 'def_common' line add your own which you could call 'def_colemak'.
That way you'll only redefine the letters which is what your Colemak variant is all about anyway! Nice, huh? :) Also, your entry will be more compact and understandable, and it'll be easier to modify for people who want, say, the decimal dot instead of the decimal comma.
I trust you know how to make the system see this layout, then? ;)
I'm doing pretty much the same thing with my 'Colemak[eD]' files for Linux. One Colemak variant keeps the locale symbol keys like yours.
Last edited by DreymaR (07-Mar-2012 08:56:35)