xkb_geometry "SGI102"

// This is an approximate layout for 102-key SGI international
// keyboards.  I just took a similar layout (101 key PC keyboard)
// and adjusted the sizes of a few keys by eye.  I didn't actually
// *measure* a real keyboard.

description= "Silicon Graphics 102-key Keyboard";
width= 470;
height= 193;

shape.cornerRadius= 1;
shape "EDGE" { cornerRadius=2, { [ 470, 193 ] } };
shape "NORM" { { [18,18] }, { [2,1], [16,17] } };
shape "BKSP" { { [35,18] }, { [2,1], [33,17] } };
shape "TABK" { { [27,18] }, { [2,1], [25,17] } };
shape "RTRN" {
	approx = { [ 0, 0], [26,37] },
	{ [ 0, 0], [26, 0], [26,37],
	  [ 5,38], [ 5,19], [ 0,19] },
	{ [ 1, 1], [24, 1], [24,36],
	  [ 7,36], [ 7,18], [ 1,18] }
};
shape "CAPS" { { [ 32,18] }, { [2,1], [25,17] } };
shape "RTSH" { { [ 50,18] }, { [2,1], [48,17] } };
shape "LFSH" { { [ 22,18] }, { [2,1], [20,17] } };
shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
shape "SPCE" { { [130,18] }, { [2,1], [128,17] } };
shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
shape "LOGO" { { [ 16,16] } };

outline "Edges" {
    top= 0;
    left= 0;
    shape= "EDGE";
};

section.left= 19;
row.left= 1;
key.shape= "NORM";
key.gap=  1;
section "Function" {
    top= 50;
    row {
	top= 1;
	keys {  { <ESC>, color="grey20" },
		{ <FK01>, 18}, <FK02>, <FK03>, <FK04>,
		{ <FK05>, 10}, <FK06>, <FK07>, <FK08>,
		{ <FK09>, 10}, <FK10>, <FK11>, <FK12>
	};
    };
}; // End of "Function" section

section "Alpha" {
    top= 83;
    row {
	top= 1;
	keys { <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
		<AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
		<AE10>, <AE11>, <AE12>,
		{ <BKSP>, "BKSP", color= "grey20" }
	};
    };
    row {
	top= 20;
	keys { { <TAB>, "TABK", color= "grey20" },
		<AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
		<AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
		<AD11>, <AD12>,
		{ <RTRN>, "RTRN", color= "grey20" }
	};
    };
    row {
	top= 39;
	keys { { <CAPS>, "CAPS", color= "grey20" },
		<AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
		<AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
		<AC11>, <BKSL>
	};
    };
    row {
	top= 58;
	keys { { <LFSH>, "LFSH", color= "grey20" }, <LSGT>,
		<AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
		<AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
		{ <RTSH>, "RTSH", color= "grey20" }
	};
    };
    row {
	top= 77;
	key.shape= "MODK";
	key.color= "grey20";
	keys { <LCTL>,
		{ <LALT>, 19 },
		{ <SPCE>, "SPCE", color="white" },
		<RALT>,
		{ <RCTL>, 19 }
	};
    };
}; // End of "Alpha" section

section "Editing" {
    top= 50;
    left= 308;
    key.color= "grey20";
    row {
	top= 1;
	keys { <PRSC>, <SCLK>, <PAUS> };
    };
    row {
	top= 33;
	keys { <INS>, <HOME>, <PGUP> };
    };
    row {
	top= 53;
	keys { <DELE>, <END>, <PGDN> };
    };
    row {
	top= 91;
	left= 20;
	keys { <UP> };
    };
    row {
	top= 110;
	keys { <LEFT>, <DOWN>, <RGHT> };
    };
}; // End of "Editing" section

shape "LEDS" { cornerRadius= 0, { [ 76 ,20 ] } };
shape "LED"  { cornerRadius= 0, { [  1,  3 ] } };
solid "LedPanel" {
    shape= "LEDS";
    top=  50;
    left= 375;
    color= "grey10";
};
indicator.onColor= "green";
indicator.offColor= "green30";
indicator.top= 64.5;
indicator.shape= "LED";
indicator "NumLock"     { left= 384; };
indicator "CapsLock"    { left= 409; };
indicator "ScrollLock"  { left= 434; };
text.top= 52;
text.color= "black";
text "NumLockLabel"	{ left= 380.5; text="Num\nLock"; };
text "CapsLockLabel"	{ left= 405; text="Caps\nLock"; };
text "ScrollLockLabel"	{ left= 430; text="Scroll\nLock"; };

logo "SGILogoImage" 	{ 
	top= 17;
	left= 22;
	name= "SGI"; 
	shape= "LOGO"; 
};
text "SGILogoText"	{
	top= 21;
	left= 40;
	width= 50;
	text= "SiliconGraphics";
	font= "helvetica";
	slant= "o";
	weight= "bold";
	setWidth= "narrow";
	fontSize= 24;
};

section "Keypad" {
    top= 83;
    left= 374;
    row {
	top= 1;
	key.color= "grey20";
	keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
    };
    row {
	top= 20;
	keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color="grey20" } };
    };
    row {
	top= 39;
	keys { <KP4>, <KP5>, <KP6> };
    };
    row {
	top= 58;
	keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color="grey20" } };
    };
    row {
	top= 77;
	keys { { <KP0>, "KP0" }, <KPDL> };
    };
}; // End of "Keypad" section
