Home | History | Annotate | Line # | Download | only in geometry
hp revision 1.1
      1 // $Xorg: hp,v 1.4 2001/02/09 02:05:50 xorgcvs Exp $
      2 //
      3 //Copyright 1996, 1998  The Open Group
      4 //
      5 //Permission to use, copy, modify, distribute, and sell this software and its
      6 //documentation for any purpose is hereby granted without fee, provided that
      7 //the above copyright notice appear in all copies and that both that
      8 //copyright notice and this permission notice appear in supporting
      9 //documentation.
     10 //
     11 //The above copyright notice and this permission notice shall be
     12 //included in all copies or substantial portions of the Software.
     13 //
     14 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     15 //EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     16 //MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
     17 //IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
     18 //OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     19 //ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     20 //OTHER DEALINGS IN THE SOFTWARE.
     21 //
     22 //Except as contained in this notice, the name of The Open Group shall
     23 //not be used in advertising or otherwise to promote the sale, use or
     24 //other dealings in this Software without prior written authorization
     25 //from The Open Group.
     26 //
     27 // $XFree86: xc/programs/xkbcomp/geometry/hp,v 1.8 2003/08/09 14:30:46 pascal Exp $
     28 
     29 default xkb_geometry "pc101" {
     30 
     31     description= "HP PC101";
     32     width= 470;
     33     height= 210;
     34 
     35     shape.cornerRadius= 1;
     36     shape "NORM" { { [ 18,18] }, { [2,1], [ 16,17] } };
     37     shape "BKSP" { { [ 37,18] }, { [2,1], [ 35,17] } };
     38     shape "TABK" { { [ 28,18] }, { [2,1], [ 26,17] } };
     39     shape "BKSL" { { [ 28,18] }, { [2,1], [ 26,17] } };
     40     shape "RTRN" { { [ 42,18] }, { [2,1], [ 40,17] } };
     41     shape "CAPS" { { [ 32,18] }, { [2,1], [ 30,17] } };
     42     shape "LFSH" { { [ 42,18] }, { [2,1], [ 40,17] } };
     43     shape "RTSH" { { [ 52,18] }, { [2,1], [ 50,17] } };
     44     shape "MODK" { { [ 28,18] }, { [2,1], [ 26,17] } };
     45     shape "SPCE" { { [132,18] }, { [2,1], [130,17] } };
     46     shape "KP0"  { { [ 37,18] }, { [2,1], [ 35,17] } };
     47     shape "KPAD" { { [ 18,37] }, { [2,1], [ 16,36] } };
     48 
     49     section.left= 19;
     50     row.left= 1;
     51     key.shape= "NORM";
     52     key.gap=  1;
     53     section "Function" {
     54 	top= 52;
     55 	row {
     56 	    top= 1;
     57 	    keys {  { <ESC>, color="grey20" },
     58 		    { <FK01>, 18 }, <FK02>, <FK03>, <FK04>,
     59 		    { <FK05>, 11 }, <FK06>, <FK07>, <FK08>,
     60 		    { <FK09>, 11 }, <FK10>, <FK11>, <FK12>,
     61 		    { <PRSC>, 8 }, <SCLK>, <PAUS> 
     62 	    };
     63 	};
     64     }; // End of "Function" section
     65 
     66     section "Alpha" {
     67 	top= 91;
     68 	row {
     69 	    top= 1;
     70 	    keys { <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
     71 		   <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
     72 		   <AE10>, <AE11>, <AE12>,
     73 		   { <BKSP>, "BKSP", color="grey20" }
     74 	    };
     75 	};
     76 	row {
     77 	    top= 20;
     78 	    keys { { <TAB>, "TABK", color="grey20" },
     79 		   <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
     80 		   <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
     81 		   <AD11>, <AD12>, { <BKSL>, "BKSL" }
     82 	    };
     83 	};
     84 	row {
     85 	    top= 39;
     86 	    keys { { <CAPS>, "CAPS", color="grey20" },
     87 		   <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
     88 		   <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
     89 		   <AC11>, { <RTRN>, "RTRN", color="grey20" }
     90 	    };
     91 	};
     92 	row {
     93 	    top= 58;
     94 	    keys { { <LFSH>, "LFSH", color="grey20" },
     95 		    <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
     96 		    <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
     97 		    { <RTSH>, "RTSH", color="grey20" }
     98 	    };
     99 	};
    100 	row {
    101 	    top= 77;
    102 	    key.shape= "MODK";
    103 	    key.color= "grey20";
    104 	    keys { <LCTL>, { <LALT>, 20 },
    105 		   { <SPCE>, "SPCE", color="white" },
    106 		   <RALT>, { <RCTL>, 20 }
    107 	    };
    108 	};
    109     }; // End of "Alpha" section
    110 
    111     section "Editing" {
    112 	top= 91;
    113 	left= 310;
    114 	key.color= "grey20";
    115 	row {
    116 	    top= 1;
    117 	    keys { <INS>, <HOME>, <PGUP> };
    118 	};
    119         row {
    120 	    top= 20;
    121 	    keys { <DELE>, <END>, <PGDN> };
    122 	};
    123 	row {
    124 	    top= 58;
    125 	    left= 20;
    126 	    keys { <UP> };
    127 	};
    128 	row {
    129 	    top= 77;
    130 	    keys { <LEFT>, <DOWN>, <RGHT> };
    131 	};
    132     }; // End of "Editing" section
    133 
    134     section "Keypad" {
    135 	top= 91;
    136 	left= 375;
    137 	row {
    138 	    top= 1;
    139 	    key.color= "grey20";
    140 	    keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
    141 	};
    142 	row {
    143 	    top= 20;
    144 	    keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color="grey20" } };
    145 	};
    146 	row {
    147 	    top= 39;
    148 	    keys { <KP4>, <KP5>, <KP6> };
    149 	};
    150 	row {
    151 	    top= 58;
    152 	    keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color="grey20" } };
    153 	};
    154 	row {
    155 	    top= 77;
    156 	    keys { { <KP0>, "KP0" }, <KPDL> };
    157 	};
    158     }; // End of "Keypad" section
    159 
    160     alias <AC00> = <CAPS>;
    161     alias <AA00> = <LCTL>;
    162 
    163 }; // End of "default" geometry
    164 
    165 xkb_geometry "hil" {
    166 
    167     description= "HP hil";
    168     width= 455;
    169     height= 170;
    170 
    171     shape.cornerRadius= 1;
    172     shape "NORM" { { [ 18,18] }, { [2,1], [ 16,17] } };
    173     shape "BKSP" { { [ 32,18] }, { [2,1], [ 30,17] } };
    174     shape "TABK" { { [ 32,18] }, { [2,1], [ 30,17] } };
    175     shape "BKSL" { { [ 24,18] }, { [2,1], [ 22,17] } };
    176     shape "RTRN" { { [ 38,18] }, { [2,1], [ 36,17] } };
    177     shape "LFSH" { { [ 28,18] }, { [2,1], [ 26,17] } };
    178     shape "RTSH" { { [ 28,18] }, { [2,1], [ 26,17] } };
    179     shape "SPCE" { { [151,18] }, { [2,1], [150,17] } };
    180     shape "KP0"  { { [ 38,18] }, { [2,1], [ 36,17] } };
    181     shape "KPTB" { { [ 18,38] }, { [2,1], [ 16,37] } };
    182     shape "TLDE" { { [ 24,18] }, { [2,1], [ 22,17] } };
    183     shape "FKT1" { { [ 17,14] }, { [2,1], [ 15,13] } };
    184     shape "FKT2" { { [ 23,14] }, { [2,1], [ 21,13] } };
    185 
    186     section.left= 19;
    187     row.left= 1;
    188     key.shape= "NORM";
    189     key.gap=  1;
    190     section "Function" {
    191 	top= 14;
    192 	row {
    193 	    top= 1;
    194 	    keys {  { <BRK>, "FKT1" }, { <STOP>, "FKT1" } ,
    195 		    { <FK01>, "FKT2", 10 }, { <FK02>, "FKT2" },
    196 		    { <FK03>, "FKT2" }, { <FK04>, "FKT2" }, 
    197 		    { <MENU>, "FKT1" }, { <SYST>, "FKT1" },
    198 		    { <FK05>, "FKT2" }, { <FK06>, "FKT2" }, 
    199 		    { <FK07>, "FKT2" }, { <FK08>, "FKT2" }, 
    200 		    { <CLRL>, "FKT1", 10 }, { <CLR>, "FKT1" },
    201 		    { <FK09>, "FKT1", 19 }, { <FK10>, "FKT1" },
    202 		    { <FK11>, "FKT1" }, { <FK12>, "FKT1" }
    203 	    };
    204 	};
    205     }; // End of "Function" section
    206 
    207     section "Alpha" {
    208 	top= 52;
    209 	row {
    210 	    top= 1;
    211 	    keys { { <TLDE>, "TLDE" }, <AE01>, <AE02>, <AE03>, <AE04>,
    212 		   <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
    213 		   <AE10>, <AE11>, <AE12>,
    214 		   { <BKSP>, "BKSP" }, <INSL>, <DELL>
    215 	    };
    216 	};
    217 	row {
    218 	    top= 20;
    219 	    keys { { <TAB>, "TABK" },
    220 		   <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
    221 		   <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
    222 		   <AD11>, <AD12>, { <BKSL>, "BKSL" },
    223 		   <INSC>, <DELC>
    224 	    };
    225 	};
    226 	row {
    227 	    top= 39;
    228 	    keys { <CAPS>, <LCTL>,
    229 		   <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
    230 		   <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
    231 		   <AC11>, { <RTRN>, "RTRN" },
    232 		   <HOME>, <PGUP>
    233 	    };
    234 	};
    235 	row {
    236 	    top= 58;
    237 	    keys {  <ESC>, { <LFSH>, "LFSH" },
    238 		    <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
    239 		    <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
    240 		    { <RTSH>, "RTSH" }, <SELE>,
    241 		    <UP>, <PGDN>
    242 	    };
    243 	};
    244 	row {
    245 	    top= 77;
    246 	    keys { <PRSC>, { <LALT>, 30 },
    247 		   { <SPCE>, "SPCE" },
    248 		   <RALT>, { <LEFT>, 30 }, <DOWN>, <RGHT>
    249 	    };
    250 	};
    251     }; // End of "Alpha" section
    252 
    253     section "Keypad" {
    254 	top= 52;
    255 	left= 360;
    256 	row {
    257 	    top= 1;
    258 	    keys { <KPMU>, <KPDV>, <KPAD>, <KPSU> };
    259 	};
    260 	row {
    261 	    top= 20;
    262 	    keys { <KP7>, <KP8>, <KP9>, <KPEN> };
    263 	};
    264 	row {
    265 	    top= 39;
    266 	    keys { <KP4>, <KP5>, <KP6>, <KPSP> };
    267 	};
    268 	row {
    269 	    top= 58;
    270 	    keys { <KP1>, <KP2>, <KP3>, { <KPTB>, "KPTB" } };
    271 	};
    272 	row {
    273 	    top= 77;
    274 	    keys { { <KP0>, "KP0" }, <KPDL> };
    275 	};
    276     }; // End of "Keypad" section
    277 
    278 }; // End of "default" geometry
    279 
    280 
    281 // Created by Alexander Pohoyda <alexander.pohoyda (a] gmx.net>
    282 // Geometry specification for HP Omnibook keyboards.
    283 // Compatible Models: 6100, 6000.
    284 
    285 xkb_geometry "omnibook" {
    286     width = 282;
    287     height = 128;
    288     baseColor = "grey80";
    289     labelColor = "white";
    290 
    291     shape "FN0"  { cornerRadius = 1, { [15.5, 12] }, { [1, 0], [14.5, 11] } };
    292     shape "NORM" { cornerRadius = 1, { [18, 16] }, { [2, 0], [16, 14] } };
    293     shape "BKSP" { cornerRadius = 1, { [31, 16] }, { [2, 0], [29, 14] } };
    294     shape "TABK" { cornerRadius = 1, { [27, 16] }, { [2, 0], [25, 14] } };
    295     shape "CAPS" { cornerRadius = 1, { [32, 16] }, { [2, 0], [30, 14] } };
    296     shape "RTSH" { cornerRadius = 1, { [45, 16] }, { [2, 0], [43, 14] } };
    297     shape "MODK" { cornerRadius = 1, { [28, 16] }, { [2, 0], [26, 14] } };
    298     shape "SPCE" { cornerRadius = 1, { [90, 16] }, { [2, 0], [88, 14] } };
    299     shape "ARRS" { cornerRadius = 1, { [17, 12] }, { [2, 0], [15, 11] } };
    300     
    301     shape "LED"  { cornerRadius = 1, { [2, 4] } };
    302 
    303     shape "KEYS" { cornerRadius = 1,
    304                    { [0, 13],
    305                      [197, 13], [197, 0],
    306                      [280, 0], [280, 125],
    307                      [224, 125], [224, 112],
    308                      [0, 112] }
    309     };
    310 
    311     solid "KeyPanel" {
    312 	shape = "KEYS";
    313 	left = 1;
    314 	top = 1;
    315 	color = "black";
    316     };
    317 
    318     shape "NULL1" { cornerRadius = 1, { [54, 16] } };
    319 
    320     solid "NullPanel1" {
    321 	shape = "NULL1";
    322 	left = 226;
    323 	top = 96;
    324 	color = "grey80";
    325     };
    326 
    327     shape "NULL2" { cornerRadius = 1, { [19, 14] } };
    328 
    329     solid "NullPanel2" {
    330 	shape = "NULL2";
    331 	left = 243;
    332 	top = 97;
    333 	color = "black";
    334     };
    335 
    336     indicator.onColor = "green";
    337     indicator.offColor = "grey10";
    338     indicator.top = 4;
    339     indicator.shape = "LED";
    340     indicator "Caps Lock"    { left = 45; };
    341     indicator "Num Lock"     { left = 60; };
    342     indicator "Scroll Lock"  { left = 75; };
    343     indicator "HDDActivity" { onColor = "red"; left = 90; };
    344 
    345     key.color = "grey60";
    346 
    347     section "Function" {
    348         key.gap = 0.99;
    349         left = 1;
    350         top = 1;
    351 	key.shape = "FN0";
    352 	row {
    353 	    left = 197;
    354 	    top = 1;
    355 	    keys {  <PRSC>, <PAUS>, <INS>, <HOME>, <PGUP> };
    356 	};
    357 	row {
    358 	    top = 14;
    359 	    keys {  <ESC>,
    360                     <FK01>, <FK02>, <FK03>, <FK04>,
    361 		    <FK05>, <FK06>, <FK07>, <FK08>,
    362 		    <FK09>, <FK10>, <FK11>, <FK12>,
    363                     <SCLK>, <DELE>, <END>, <PGDN>
    364 	    };
    365 	};
    366     }; // End of "Function" section
    367 
    368     section "Control" {
    369         left = 1;
    370 	top = 34;
    371         key.gap = 1;
    372 	row {
    373 	    top = 62;
    374 	    key.shape = "NORM";
    375 	    keys { <LCTL>, <FN>, <LWIN>, <LALT>,
    376 		   { <SPCE>, "SPCE" }, <RALT>, <MENU>, <RCTL>
    377 	    };
    378 	};
    379     }; // End of "Control" section
    380 
    381     section "Navigation" {
    382 	key.shape = "ARRS";
    383 	left = 225;
    384 	top = 97;
    385         key.gap = 1.4;
    386 	row {
    387 	    left= 18;
    388 	    top = 1;
    389 	    keys { <UP> };
    390 	};
    391 	row {
    392 	    top = 16;
    393 	    keys { <LEFT>, <DOWN>, <RGHT> };
    394 	};
    395     }; // End of "Navigation" section
    396 
    397     shape "STIK" { cornerRadius = 4, { [7, 7] } };
    398 
    399     solid "STIK" {
    400 	priority = 255;
    401 	color = "red";
    402 	shape = "STIK";
    403 	top = 73;
    404 	left = 126;
    405     };
    406 };
    407 
    408 // 86 keys
    409 xkb_geometry "omnibook_intl" {
    410     include "hp(omnibook)"
    411     description = "HP Omnibook 6000/6100, Intl";
    412 
    413     shape "RTRN" { cornerRadius = 1,
    414                    { [22, 0], [22, 33], [5, 33], [5, 16], [0, 16], [0, 0] },
    415                    { [20, 0], [20, 31], [7, 31], [7, 14], [2, 14], [2, 0] } };
    416     shape "LFSH" { cornerRadius = 1, { [23, 16] }, { [2, 0], [21, 14] } };
    417 
    418     section "Alpha" {
    419 	key.gap = 1;
    420 	key.color = "grey60";
    421 	key.shape = "NORM";
    422         left = 1;
    423 	top = 27;
    424 	row {
    425 	    top = 1;
    426 	    keys { <AE00>, <AE01>, <AE02>, <AE03>, <AE04>,
    427 		   <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
    428 		   <AE10>, <AE11>, <AE12>, { <BKSP>, "BKSP" }
    429 	    };
    430 	};
    431 	row {
    432 	    top = 18;
    433 	    keys { { <TAB>, "TABK" },
    434 		   <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
    435 		   <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
    436 		   <AD11>, <AD12>, { <RTRN>, "RTRN" }
    437 	    };
    438 	};
    439 	row {
    440 	    top = 35;
    441 	    keys { { <CAPS>, "CAPS" },
    442 		   <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
    443 		   <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
    444 		   <AC11>, <AC12>
    445 	    };
    446 	};
    447 	row {
    448 	    top = 52;
    449 	    keys { { <LFSH>, "LFSH" }, <LSGT>,
    450 		   <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
    451 		   <AB06>, <AB07>, <AB08>, <AB09>, <AB10>,
    452 		   { <RTSH>, "RTSH" }
    453 	    };
    454 	};
    455     }; // End of "Alpha" section
    456 };
    457