home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / lib / x11 / xkb / geometry / sgi / indy < prev   
Encoding:
Text File  |  1996-10-17  |  10.1 KB  |  408 lines

  1. // $XConsortium: indy /main/1 1996/02/02 14:19:06 kaleb $
  2. //
  3. // Copyright (c) 1996 by Silicon Graphics Computer Systems, Inc.
  4. //
  5. // Permission to use, copy, modify, and distribute this
  6. // software and its documentation for any purpose and without
  7. // fee is hereby granted, provided that the above copyright
  8. // notice appear in all copies and that both that copyright
  9. // notice and this permission notice appear in supporting
  10. // documentation, and that the name of Silicon Graphics not be 
  11. // used in advertising or publicity pertaining to distribution 
  12. // of the software without specific prior written permission.
  13. // Silicon Graphics makes no representation about the suitability 
  14. // of this software for any purpose. It is provided "as is"
  15. // without any express or implied warranty.
  16. // 
  17. // SILICON GRAPHICS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS 
  18. // SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 
  19. // AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL SILICON
  20. // GRAPHICS BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL 
  21. // DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 
  22. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 
  23. // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION  WITH
  24. // THE USE OR PERFORMANCE OF THIS SOFTWARE.
  25. //
  26. default xkb_geometry "us101" {
  27.  
  28.     // This is an approximate layout for a 101-key (US/ASCII) SGI
  29.     // keyboard.  I just took a similar layout (101 key PC keyboard)
  30.     // and adjusted the sizes of a few keys by eye.  I didn't actually
  31.     // *measure* a real keyboard.
  32.  
  33.     description= "Silicon Graphics 101-key keyboard";
  34.  
  35.     width= 472;
  36.     height= 193;
  37.  
  38.     shape "EDGE" { cornerRadius= 2, { [ 472, 193 ] } };
  39.     shape.cornerRadius= 1;
  40.     shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };
  41.     shape "BKSP" { { [ 37,18] }, { [2,1], [35,17] } };
  42.     shape "TABK" { { [ 28,18] }, { [2,1], [26,17] } };
  43.     shape "BKSL" { { [ 27,18] }, { [2,1], [25,17] } };
  44.     shape "RTRN" { { [ 40,18] }, { [2,1], [37,17] } };
  45.     shape "CAPS" { { [ 34,18] }, { [2,1], [29,17] } };
  46.     shape "RTSH" { { [ 49,18] }, { [2,1], [47,17] } };
  47.     shape "LFSH" { { [ 44,18] }, { [2,1], [42,17] } };
  48.     shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
  49.     shape "SPCE" { { [130,18] }, { [2,1], [128,17] } };
  50.     shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
  51.     shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
  52.     shape "LOGO" { { [ 16,16] } };
  53.  
  54.     outline "Edges" {
  55.     top= 0;
  56.     left= 0;
  57.     shape= "EDGE";
  58.     };
  59.  
  60.     section.left= 19;
  61.     row.left= 1;
  62.     key.shape= "NORM";
  63.     key.gap=  1;
  64.     section "Function" {
  65.     top= 50;
  66.     row {
  67.         top= 1;
  68.         keys {    { <ESC>, color="grey20" },
  69.             { <FK01>, 19}, <FK02>, <FK03>, <FK04>,
  70.             { <FK05>, 11}, <FK06>, <FK07>, <FK08>,
  71.             { <FK09>, 11}, <FK10>, <FK11>, <FK12>
  72.         };
  73.     };
  74.     }; // End of "Function" section
  75.  
  76.     section "Alpha" {
  77.     top= 83;
  78.     row {
  79.         top= 1;
  80.         keys {     <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
  81.             <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
  82.             <AE10>, <AE11>, <AE12>,
  83.             { <BKSP>, "BKSP", color="grey20" }
  84.         };
  85.     };
  86.     row {
  87.         top= 20;
  88.         keys {    { <TAB>, "TABK", color= "grey20" },
  89.             <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
  90.             <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
  91.             <AD11>, <AD12>,
  92.             { <BKSL>, "BKSL" }
  93.         };    
  94.     };
  95.     row {
  96.         top= 39;
  97.         keys {     { <CAPS>, "CAPS", color="grey20" },
  98.              <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
  99.             <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
  100.             <AC11>, { <RTRN>, "RTRN", color="grey20" }
  101.         };
  102.     };
  103.     row {
  104.         top= 58;
  105.         keys {    { <LFSH>, "LFSH", color="grey20" }, 
  106.              <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
  107.             <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
  108.             { <RTSH>, "RTSH", color="grey20" }
  109.         };
  110.     };
  111.     row {
  112.         top= 77;
  113.         key.shape= "MODK";
  114.         key.color= "grey20";
  115.         keys {    <LCTL>,    { <LALT>, 20 },
  116.             { <SPCE>, "SPCE",color="white" },
  117.             <RALT>, { <RCTL>, 20 }
  118.         };
  119.     };
  120.     }; // End of "Alpha" section
  121.  
  122.     section "Editing" {
  123.     top= 50;
  124.     left= 312;
  125.     key.color= "grey20";
  126.     row {
  127.         top= 1;
  128.         keys { <PRSC>, <SCLK>, <PAUS> };
  129.     };
  130.     row {
  131.         top= 33;
  132.         keys { <INS>, <HOME>, <PGUP> };
  133.     };
  134.     row {
  135.         top= 53;
  136.         keys { <DELE>, <END>, <PGDN> };
  137.     };
  138.     row {
  139.         top= 91;
  140.         left= 20;
  141.         keys { <UP> };
  142.     };
  143.     row {
  144.         top= 110;
  145.         keys { <LEFT>, <DOWN>, <RGHT> };
  146.     };
  147.     }; // End of "Editing" section
  148.  
  149.     shape "LEDS" { cornerRadius= 0, { [ 76 ,20 ] } };
  150.     shape "LED"  { cornerRadius= 0, { [  1,  3 ] } };
  151.     solid "LedPanel" {
  152.     shape= "LEDS";
  153.     top=  50;
  154.     left= 377;
  155.     color= "grey10";
  156.     };
  157.     indicator.onColor= "green";
  158.     indicator.offColor= "green30";
  159.     indicator.top= 64.5;
  160.     indicator.shape= "LED";
  161.     indicator "NumLock"     { left= 386; };
  162.     indicator "CapsLock"    { left= 411; };
  163.     indicator "ScrollLock"  { left= 436; };
  164.     text.top= 52;
  165.     text.color= "black";
  166.     text "NumLockLabel"        { left= 382.5; text="Num\nLock"; };
  167.     text "CapsLockLabel"    { left= 407; text="Caps\nLock"; };
  168.     text "ScrollLockLabel"    { left= 432; text="Scroll\nLock"; };
  169.     
  170.     logo "SGILogoImage"     { 
  171.     top= 17;
  172.     left= 22;
  173.     name= "SGI"; 
  174.     shape= "LOGO"; 
  175.     };
  176.     text "SGILogoText"    {
  177.     top= 21;
  178.     left= 40;
  179.     width= 50;
  180.     text= "SiliconGraphics";
  181.     font= "helvetica";
  182.     slant= "o";
  183.     weight= "bold";
  184.     fontWidth= "narrow";
  185.     fontSize= 24;
  186.     };
  187.  
  188.     section "Keypad" {
  189.     top= 83;
  190.     left= 376;
  191.     row {
  192.         top= 1;
  193.         key.color= "grey20";
  194.         keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
  195.     };
  196.     row {
  197.         top= 20;
  198.         keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color= "grey20" } };
  199.     };
  200.     row {
  201.         top= 39;
  202.         keys { <KP4>, <KP5>, <KP6> };
  203.         };
  204.     row {
  205.         top= 58;
  206.         keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color= "grey20" } };
  207.     };
  208.     row {
  209.         top= 77;
  210.         keys { { <KP0>, "KP0" }, <KPDL> };
  211.     };
  212.     }; // End of "Keypad" section
  213. };
  214. xkb_geometry "intl102" {
  215.  
  216.     // This is an approximate layout for 102-key SGI international
  217.     // keyboards.  I just took a similar layout (101 key PC keyboard)
  218.     // and adjusted the sizes of a few keys by eye.  I didn't actually
  219.     // *measure* a real keyboard.
  220.  
  221.     description= "Silicon Graphics 102-key Keyboard";
  222.     width= 470;
  223.     height= 193;
  224.  
  225.     shape.cornerRadius= 1;
  226.     shape "EDGE" { cornerRadius=2, { [ 470, 193 ] } };
  227.     shape "NORM" { { [18,18] }, { [2,1], [16,17] } };
  228.     shape "BKSP" { { [35,18] }, { [2,1], [33,17] } };
  229.     shape "TABK" { { [27,18] }, { [2,1], [25,17] } };
  230.     shape "RTRN" {
  231.     approx = { [ 0, 0], [26,37] },
  232.     { [ 0, 0], [26, 0], [26,37],
  233.       [ 5,38], [ 5,19], [ 0,19] },
  234.     { [ 1, 1], [24, 1], [24,36],
  235.       [ 7,36], [ 7,18], [ 1,18] }
  236.     };
  237.     shape "CAPS" { { [ 32,18] }, { [2,1], [25,17] } };
  238.     shape "RTSH" { { [ 50,18] }, { [2,1], [48,17] } };
  239.     shape "LFSH" { { [ 22,18] }, { [2,1], [20,17] } };
  240.     shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
  241.     shape "SPCE" { { [130,18] }, { [2,1], [128,17] } };
  242.     shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
  243.     shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
  244.     shape "LOGO" { { [ 16,16] } };
  245.  
  246.     outline "Edges" {
  247.     top= 0;
  248.     left= 0;
  249.     shape= "EDGE";
  250.     };
  251.  
  252.     section.left= 19;
  253.     row.left= 1;
  254.     key.shape= "NORM";
  255.     key.gap=  1;
  256.     section "Function" {
  257.     top= 50;
  258.     row {
  259.         top= 1;
  260.         keys {      { <ESC>, color="grey20" },
  261.             { <FK01>, 18}, <FK02>, <FK03>, <FK04>,
  262.             { <FK05>, 10}, <FK06>, <FK07>, <FK08>,
  263.             { <FK09>, 10}, <FK10>, <FK11>, <FK12>
  264.         };
  265.     };
  266.     }; // End of "Function" section
  267.  
  268.     section "Alpha" {
  269.     top= 83;
  270.     row {
  271.         top= 1;
  272.         keys {     <TLDE>, <AE01>, <AE02>, <AE03>, <AE04>,
  273.             <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
  274.             <AE10>, <AE11>, <AE12>,
  275.             { <BKSP>, "BKSP", color= "grey20" }
  276.         };
  277.     };
  278.     row {
  279.         top= 20;
  280.         keys {     { <TAB>, "TABK", color= "grey20" },
  281.             <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
  282.             <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
  283.             <AD11>, <AD12>,
  284.             { <RTRN>, "RTRN", color= "grey20" }
  285.         };
  286.     };
  287.     row {
  288.         top= 39;
  289.         keys {     { <CAPS>, "CAPS", color= "grey20" },
  290.             <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
  291.             <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
  292.             <AC11>, <BKSL>
  293.         };
  294.     };
  295.     row {
  296.         top= 58;
  297.         keys {     { <LFSH>, "LFSH", color= "grey20" }, <LSGT>,
  298.             <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
  299.             <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
  300.             { <RTSH>, "RTSH", color= "grey20" }
  301.         };
  302.     };
  303.     row {
  304.         top= 77;
  305.         key.shape= "MODK";
  306.         key.color= "grey20";
  307.         keys {    <LCTL>,
  308.             { <LALT>, 19 },
  309.             { <SPCE>, "SPCE", color="white" },
  310.             <RALT>,
  311.             { <RCTL>, 19 }
  312.         };
  313.     };
  314.     }; // End of "Alpha" section
  315.  
  316.     section "Editing" {
  317.     top= 50;
  318.     left= 308;
  319.     key.color= "grey20";
  320.     row {
  321.         top= 1;
  322.         keys { <PRSC>, <SCLK>, <PAUS> };
  323.     };
  324.     row {
  325.         top= 33;
  326.         keys { <INS>, <HOME>, <PGUP> };
  327.     };
  328.     row {
  329.         top= 53;
  330.         keys { <DELE>, <END>, <PGDN> };
  331.     };
  332.     row {
  333.         top= 91;
  334.         left= 20;
  335.         keys { <UP> };
  336.     };
  337.     row {
  338.         top= 110;
  339.         keys { <LEFT>, <DOWN>, <RGHT> };
  340.     };
  341.     }; // End of "Editing" section
  342.  
  343.     shape "LEDS" { cornerRadius= 0, { [ 76 ,20 ] } };
  344.     shape "LED"  { cornerRadius= 0, { [  1,  3 ] } };
  345.     solid "LedPanel" {
  346.     shape= "LEDS";
  347.     top=  50;
  348.     left= 375;
  349.     color= "grey10";
  350.     };
  351.     indicator.onColor= "green";
  352.     indicator.offColor= "green30";
  353.     indicator.top= 64.5;
  354.     indicator.shape= "LED";
  355.     indicator "NumLock"     { left= 384; };
  356.     indicator "CapsLock"    { left= 409; };
  357.     indicator "ScrollLock"  { left= 434; };
  358.     text.top= 52;
  359.     text.color= "black";
  360.     text "NumLockLabel"        { left= 380.5; text="Num\nLock"; };
  361.     text "CapsLockLabel"    { left= 405; text="Caps\nLock"; };
  362.     text "ScrollLockLabel"    { left= 430; text="Scroll\nLock"; };
  363.  
  364.     logo "SGILogoImage" { 
  365.     top= 17;
  366.     left= 22;
  367.     name= "SGI"; 
  368.     shape= "LOGO"; 
  369.     };
  370.     text "SGILogoText"    {
  371.     top= 21;
  372.     left= 40;
  373.     width= 50;
  374.     text= "SiliconGraphics";
  375.     font= "helvetica";
  376.     slant= "o";
  377.     weight= "bold";
  378.     setWidth= "narrow";
  379.     fontSize= 24;
  380.     };
  381.  
  382.     section "Keypad" {
  383.     top= 83;
  384.     left= 374;
  385.     row {
  386.         top= 1;
  387.         key.color= "grey20";
  388.         keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
  389.     };
  390.     row {
  391.         top= 20;
  392.         keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color="grey20" } };
  393.     };
  394.     row {
  395.         top= 39;
  396.         keys { <KP4>, <KP5>, <KP6> };
  397.     };
  398.     row {
  399.         top= 58;
  400.         keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color="grey20" } };
  401.     };
  402.     row {
  403.         top= 77;
  404.         keys { { <KP0>, "KP0" }, <KPDL> };
  405.     };
  406.     }; // End of "Keypad" section
  407. };
  408.