home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / lib / x11 / xkb / geometry / sun < prev    next >
Encoding:
Text File  |  1996-10-17  |  11.9 KB  |  455 lines

  1. // $XConsortium: sun /main/6 1996/01/24 12:18:45 kaleb $
  2. //
  3. //Copyright (c) 1996  X Consortium
  4. //
  5. //Permission is hereby granted, free of charge, to any person obtaining
  6. //a copy of this software and associated documentation files (the
  7. //"Software"), to deal in the Software without restriction, including
  8. //without limitation the rights to use, copy, modify, merge, publish,
  9. //distribute, sublicense, and/or sell copies of the Software, and to
  10. //permit persons to whom the Software is furnished to do so, subject to
  11. //the following conditions:
  12. //
  13. //The above copyright notice and this permission notice shall be
  14. //included in all copies or substantial portions of the Software.
  15. //
  16. //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  17. //EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  18. //MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  19. //IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
  20. //OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  21. //ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  22. //OTHER DEALINGS IN THE SOFTWARE.
  23. //
  24. //Except as contained in this notice, the name of the X Consortium shall
  25. //not be used in advertising or otherwise to promote the sale, use or
  26. //other dealings in this Software without prior written authorization
  27. //from the X Consortium.
  28. //
  29. xkb_geometry "type4" {
  30.  
  31.     // This is an approximate layout for a (US/ASCII) Sun Type4 US
  32.     // keyboard.  
  33.  
  34.     description= "Sun Type4 keyboard";
  35.  
  36.     width= 452;
  37.     height= 185;
  38.  
  39.     shape "EDGE" { cornerRadius= 2, { [ 452, 185 ] } };
  40.     shape.cornerRadius= 1;
  41.     shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };
  42.     shape "BKSP" { { [ 37,18] }, { [2,1], [35,17] } };
  43.     shape "TABK" { { [ 27,18] }, { [2,1], [25,17] } };
  44.     shape "DELE" { { [ 37,18] }, { [2,1], [35,17] } };
  45.     shape "RTRN" { 
  46.         approx = { [ 0, 0], [28,37] },
  47.         { [ 0, 0], [28, 0], [28,37],
  48.           [ 5,37], [ 5,19], [ 0,19] },
  49.         { [ 1, 1], [26, 1], [26,36],
  50.           [ 7,36], [ 7,18], [ 1,18] }
  51.     };
  52.     shape "CAPS" { { [ 32,18] }, { [2,1], [30,17] } };
  53.     shape "LFSH" { { [ 41,18] }, { [2,1], [39,17] } };
  54.     shape "RTSH" { { [ 33,18] }, { [2,1], [31,17] } };
  55.     shape "LCTL" { { [ 32,18] }, { [2,1], [30,17] } };
  56.     shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
  57.     shape "SPCE" { { [170,18] }, { [2,1], [168,17] } };
  58.     shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
  59.     shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
  60.     shape "HELP" { { [ 37,18] }, { [2,1], [35,17] } };
  61.  
  62.     outline "Edges" {
  63.     top= 0;
  64.     left= 0;
  65.     shape= "EDGE";
  66.     };
  67.  
  68.     section.left= 17;
  69.     row.left= 1;
  70.     key.shape= "NORM";
  71.     key.gap=  1;
  72.  
  73.     section "Alpha" {
  74.     top= 58;
  75.     row {
  76.         top= 1;
  77.         keys { <STOP>, <AGAI>,
  78.          { <FK01>, 9 }, <FK02>, <FK03>, <FK04>,
  79.            <FK05>, <FK06>, <FK07>, <FK08>,
  80.            <FK09>, <FK10>, <FK11>, <FK12>,
  81.            <BKSL>, { <DELE>, "DELE" },
  82.          { <PAUS>, 9 }, <PRSC>, <SCLK>, <NMLK>
  83.         };
  84.     };
  85.     row {
  86.         top= 20;
  87.         keys { <PROP>, <UNDO>, { <ESC>, 9 }, 
  88.            <AE01>, <AE02>, <AE03>, <AE04>, <AE05>, 
  89.            <AE06>, <AE07>, <AE08>, <AE09>, <AE10>, 
  90.            <AE11>, <AE12>,
  91.          { <BKSP>, "BKSP" },
  92.          { <KPEQ>, 9 }, <KPDV>, <KPMU>, <KPSU> 
  93.  
  94.         };
  95.     };
  96.     row {
  97.         top= 39;
  98.         keys { <FRNT>, <COPY>, 
  99.          { <TAB>, 9, shape="TABK" },
  100.            <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
  101.            <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
  102.            <AD11>, <AD12>, { <RTRN>, "RTRN" },
  103.          { <KP7>, 9 }, <KP8>, <KP9>, { <KPAD>, "KPAD" } 
  104.         };
  105.     };
  106.     row {
  107.         top= 58;
  108.         keys { <OPEN>, <PAST>, 
  109.          { <LCTL>, 9, shape="LCTL" },
  110.            <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
  111.            <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
  112.            <AC11>, <TLDE>,
  113.          { <KP4>, 33 }, <KP5>, <KP6>
  114.         };
  115.     };
  116.     row {
  117.         top= 77;
  118.         keys { <FIND>, <CUT>, 
  119.          { <LFSH>, 9 , shape="LFSH" }, 
  120.            <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
  121.            <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
  122.          { <RTSH>, "RTSH" }, <LNFD>,
  123.          { <KP1>, 9} , <KP2>, <KP3>, { <KPEN>, "KPAD" }
  124.         };
  125.     };
  126.     row {
  127.         top= 96;
  128.         keys { { <HELP>, "HELP" }, { <CAPS>, 9 },
  129.            <LALT>, <LMTA>, { <SPCE>, "SPCE" },
  130.            <RMTA>, <COMP>, <ALGR>,
  131.          { <KP0>, 9, shape="KP0" }, <KPDL>
  132.         };
  133.     };
  134.     }; // End of "Alpha" section
  135.  
  136.     shape "LEDS" { cornerRadius= 0, { [ 78 ,21 ] } };
  137.     shape "LED"  { cornerRadius= 0, { [  7,  4 ] } };
  138.     solid "LedPanel" {
  139.     shape= "LEDS";
  140.     top=  28;
  141.     left= 358;
  142.     };
  143.     indicator.onColor= "green";
  144.     indicator.offColor= "green30";
  145.     indicator.top= 43;
  146.     indicator.shape= "LED";
  147.     indicator "CapsLock"    { left= 364; };
  148.     indicator "Compose"    { left= 383; };
  149.     indicator "ScrollLock"    { left= 402; };
  150.     indicator "NumLock"    { left= 421; };
  151.     text.top= 34;
  152.     text.color= "black";
  153.     text "CapsLockLabel"    { left= 364; text="Caps\nLock"; };
  154.     text "ComposeLabel"        { left= 380; text="Compose"; };
  155.     text "ScrollLockLabel"    { left= 402; text="Scroll\nLock"; };
  156.     text "NumLockLabel"        { left= 421; text="Num\nLock"; };
  157. };
  158.  
  159. default xkb_geometry "type5" {
  160.  
  161.     // This is an approximate layout for a (US/ASCII) Sun Type5
  162.     // keyboard.  I just took a similar layout (101 key PC keyboard)
  163.     // and adjusted the sizes.
  164.  
  165.     description= "Sun Type5 keyboard";
  166.  
  167.     width= 515;
  168.     height= 170;
  169.  
  170.     shape "EDGE" { cornerRadius= 2, { [ 515, 170 ] } };
  171.     shape.cornerRadius= 1;
  172.     shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };
  173.     shape "BKSP" { { [ 37,18] }, { [2,1], [35,17] } };
  174.     shape "TABK" { { [ 27,18] }, { [2,1], [25,17] } };
  175.     shape "BKSL" { { [ 27,18] }, { [2,1], [25,17] } };
  176.     shape "RTRN" { { [ 42,18] }, { [2,1], [40,17] } };
  177.     shape "CAPS" { { [ 32,18] }, { [2,1], [30,17] } };
  178.     shape "LFSH" { { [ 42,18] }, { [2,1], [40,17] } };
  179.     shape "RTSH" { { [ 51,18] }, { [2,1], [49,17] } };
  180.     shape "LCTL" { { [ 32,18] }, { [2,1], [30,17] } };
  181.     shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
  182.     shape "SPCE" { { [157,18] }, { [2,1], [155,17] } };
  183.     shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
  184.     shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
  185.     shape "HELP" { { [ 37,18] }, { [2,1], [35,17] } };
  186.     shape "LOGO" { { [ 16,16] } };
  187.  
  188.     outline "Edges" {
  189.     top= 0;
  190.     left= 0;
  191.     shape= "EDGE";
  192.     };
  193.  
  194.     section.left= 14;
  195.     row.left= 1;
  196.     key.shape= "NORM";
  197.     key.gap=  1;
  198.     section "Function" {
  199.     top= 24;
  200.     row {
  201.         top= 1;
  202.         keys { { <HELP>, "HELP" }, { <ESC>, 9 },
  203.            { <FK01>, 19 }, <FK02>, <FK03>, <FK04>,
  204.            { <FK05>, 11 }, <FK06>, <FK07>, <FK08>,
  205.            { <FK09>, 11 }, <FK10>, <FK11>, <FK12>,
  206.            { <PRSC>,  9 }, <SCLK>, <PAUS>,
  207.            { <MUTE>,  9 }, <VOL->, <VOL+>, <POWR>
  208.         };
  209.     };
  210.     }; // End of "Function" section
  211.  
  212.     section "Alpha" {
  213.     top= 61;
  214.     row {
  215.         top= 1;
  216.         keys { <STOP>, <AGAI>,
  217.          { <TLDE>, 9}, <AE01>, <AE02>, <AE03>, <AE04>,
  218.            <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
  219.            <AE10>, <AE11>, <AE12>,
  220.          { <BKSP>, "BKSP", color="grey20" }
  221.         };
  222.     };
  223.     row {
  224.         top= 20;
  225.         keys { <PROP>, <UNDO>, { <TAB>, 9, shape="TABK" },
  226.            <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
  227.            <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
  228.            <AD11>, <AD12>,
  229.          { <BKSL>, "BKSL" }
  230.         };
  231.     };
  232.     row {
  233.         top= 39;
  234.         keys { <FRNT>, <COPY>, { <CAPS>, 9, shape="CAPS" },
  235.            <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
  236.            <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
  237.            <AC11>,
  238.          { <RTRN>, "RTRN" }
  239.         };
  240.     };
  241.     row {
  242.         top= 58;
  243.         keys { <OPEN>, <PAST>, { <LFSH>, 9 , shape="LFSH" }, 
  244.            <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
  245.            <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
  246.          { <RTSH>, "RTSH", color="grey20" }
  247.         };
  248.     };
  249.     row {
  250.         top= 77;
  251.         keys { <FIND>, <CUT>, { <LCTL>, 9, shape="LCTL" },
  252.            <LALT>, <LMTA>,
  253.          { <SPCE>, "SPCE" },
  254.            <RMTA>, <COMP>, <ALGR>
  255.         };
  256.     };
  257.     }; // End of "Alpha" section
  258.  
  259.     section "Editing" {
  260.     top= 61;
  261.     left= 352;
  262.     row {
  263.         top= 1;
  264.         keys { <INS>, <HOME>, <PGUP> };
  265.     };
  266.     row {
  267.         top= 20;
  268.         keys { <DELE>, <END>, <PGDN> };
  269.     };
  270.     row {
  271.         top= 58;
  272.         left= 20;
  273.         keys { <UP> };
  274.     };
  275.     row {
  276.         top= 77;
  277.         keys { <LEFT>, <DOWN>, <RGHT> };
  278.     };
  279.     }; // End of "Editing" section
  280.  
  281.     section "Keypad" {
  282.     top= 61;
  283.     left= 420;
  284.     row {
  285.         top= 1;
  286.         keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
  287.     };
  288.     row {
  289.         top= 20;
  290.         keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color= "grey20" } };
  291.     };
  292.     row {
  293.         top= 39;
  294.         keys { <KP4>, <KP5>, <KP6> };
  295.     };
  296.     row {
  297.         top= 58;
  298.         keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color= "grey20" } };
  299.     };
  300.     row {
  301.         top= 77;
  302.         keys { { <KP0>, "KP0" }, <KPDL> };
  303.     };
  304.     }; // End of "Keypad" section
  305. };
  306.  
  307.  
  308. xkb_geometry "type5unix" {
  309.  
  310.     // This is an approximate layout for a (US/ASCII) Sun Type5
  311.     // keyboard.  I just took a similar layout (101 key PC keyboard)
  312.     // and adjusted the sizes.
  313.  
  314.     description= "Sun Type5 Unix keyboard";
  315.  
  316.     width= 515;
  317.     height= 170;
  318.  
  319.     shape "EDGE" { cornerRadius= 2, { [ 515, 170 ] } };
  320.     shape.cornerRadius= 1;
  321.     shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };
  322.     shape "BKSP" { { [ 27,18] }, { [2,1], [25,17] } };
  323.     shape "TABK" { { [ 27,18] }, { [2,1], [25,17] } };
  324.     shape "BKSL" { { [ 27,18] }, { [2,1], [25,17] } };
  325.     shape "RTRN" { { [ 42,18] }, { [2,1], [40,17] } };
  326.     shape "CAPS" { { [ 32,18] }, { [2,1], [30,17] } };
  327.     shape "LFSH" { { [ 42,18] }, { [2,1], [40,17] } };
  328.     shape "RTSH" { { [ 51,18] }, { [2,1], [49,17] } };
  329.     shape "LCTL" { { [ 32,18] }, { [2,1], [30,17] } };
  330.     shape "MODK" { { [ 28,18] }, { [2,1], [26,17] } };
  331.     shape "SPCE" { { [157,18] }, { [2,1], [155,17] } };
  332.     shape "KP0"  { { [ 37,18] }, { [2,1], [35,17] } };
  333.     shape "KPAD" { { [ 18,37] }, { [2,1], [16,36] } };
  334.     shape "HELP" { { [ 37,18] }, { [2,1], [35,17] } };
  335.     shape "LOGO" { { [ 16,16] } };
  336.  
  337.     outline "Edges" {
  338.     top= 0;
  339.     left= 0;
  340.     shape= "EDGE";
  341.     };
  342.  
  343.     section.left= 14;
  344.     row.left= 1;
  345.     key.shape= "NORM";
  346.     key.gap=  1;
  347.     section "Function" {
  348.     top= 24;
  349.     row {
  350.         top= 1;
  351.         keys { { <HELP>, "HELP" }, { <NONE>, 9 },
  352.            { <FK01>, 19 }, <FK02>, <FK03>, <FK04>,
  353.            { <FK05>, 11 }, <FK06>, <FK07>, <FK08>,
  354.            { <FK09>, 11 }, <FK10>, <FK11>, <FK12>,
  355.            { <PRSC>,  9 }, <SCLK>, <PAUS>,
  356.            { <MUTE>,  9 }, <VOL->, <VOL+>, <POWR>
  357.         };
  358.     };
  359.     }; // End of "Function" section
  360.  
  361.     section "Alpha" {
  362.     top= 61;
  363.     row {
  364.         top= 1;
  365.         keys { <STOP>, <AGAI>,
  366.          { <ESC>, 9}, <AE01>, <AE02>, <AE03>, <AE04>,
  367.            <AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
  368.            <AE10>, <AE11>, <AE12>,
  369.            <BKSL>, <TLDE>
  370.         };
  371.     };
  372.     row {
  373.         top= 20;
  374.         keys { <PROP>, <UNDO>, { <TAB>, 9, shape="TABK" },
  375.            <AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
  376.            <AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
  377.            <AD11>, <AD12>,
  378.          { <BKSP>, "BKSP" }
  379.         };
  380.     };
  381.     row {
  382.         top= 39;
  383.         keys { <FRNT>, <COPY>, { <LCTL>, 9, shape="LCTL" },
  384.            <AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
  385.            <AC06>, <AC07>, <AC08>, <AC09>, <AC10>, 
  386.            <AC11>,
  387.          { <RTRN>, "RTRN" }
  388.         };
  389.     };
  390.     row {
  391.         top= 58;
  392.         keys { <OPEN>, <PAST>, { <LFSH>, 9 , shape="LFSH" }, 
  393.            <AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
  394.            <AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
  395.          { <RTSH>, "RTSH", color="grey20" }
  396.         };
  397.     };
  398.     row {
  399.         top= 77;
  400.         keys { <FIND>, <CUT>, { <CAPS>, 9, shape="CAPS" },
  401.            <LALT>, <LMTA>,
  402.          { <SPCE>, "SPCE" },
  403.            <RMTA>, <COMP>, <ALGR>
  404.         };
  405.     };
  406.     }; // End of "Alpha" section
  407.  
  408.     section "Editing" {
  409.     top= 61;
  410.     left= 352;
  411.     row {
  412.         top= 1;
  413.         keys { <INS>, <HOME>, <PGUP> };
  414.     };
  415.     row {
  416.         top= 20;
  417.         keys { <DELE>, <END>, <PGDN> };
  418.     };
  419.     row {
  420.         top= 58;
  421.         left= 20;
  422.         keys { <UP> };
  423.     };
  424.     row {
  425.         top= 77;
  426.         keys { <LEFT>, <DOWN>, <RGHT> };
  427.     };
  428.     }; // End of "Editing" section
  429.  
  430.     section "Keypad" {
  431.     top= 61;
  432.     left= 420;
  433.     row {
  434.         top= 1;
  435.         keys { <NMLK>, <KPDV>, <KPMU>, <KPSU> };
  436.     };
  437.     row {
  438.         top= 20;
  439.         keys { <KP7>, <KP8>, <KP9>, { <KPAD>, "KPAD", color= "grey20" } };
  440.     };
  441.     row {
  442.         top= 39;
  443.         keys { <KP4>, <KP5>, <KP6> };
  444.     };
  445.     row {
  446.         top= 58;
  447.         keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPAD", color= "grey20" } };
  448.     };
  449.     row {
  450.         top= 77;
  451.         keys { { <KP0>, "KP0" }, <KPDL> };
  452.     };
  453.     }; // End of "Keypad" section
  454. };
  455.