sanwa revision da6c6c0b
1// $Xorg: $
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//
27default xkb_geometry "sanwaskbkg3" {
28
29    description= "Sanwa Supply SKB-KG3";
30    // SKB-KG3BK (black)
31    // http://www.sanwa.co.jp/product/syohin.asp?code=SKB-KG3BK
32    // http://www.sanwa.co.jp/zooma/keybord/SKB-KG3BK/
33    // SKB-KG3W (white)
34    // http://www.sanwa.co.jp/product/syohin.asp?code=SKB-KG3W
35    // http://www.sanwa.co.jp/zooma/keybord/SKB-KG3SW/
36    // SKB-KG3SV (silver)
37    // http://www.sanwa.co.jp/product/syohin.asp?code=SKB-KG3SV
38    // http://www.sanwa.co.jp/zooma/keybord/SKB-KG3SV/
39
40    width= 304;
41    height= 127;
42
43    shape.cornerRadius= 1;
44    shape "TOP"  { { [15.25,13] }, { [2,2], [13.25,11] } };
45    shape "NORM" { { [17,16] }, { [2,2], [15,14] } };
46    shape "TBBK" { { [24.5,16] }, { [2,2], [22.5,14] } };
47    shape "RTRN" { { [0,0], [36,0], [36,34], [8.5,34], [8.5,16], [0,16] },
48                   { [2,2], [34,2], [34,32], [10.5,32], [10.5,14], [2,14] } };
49    shape "CAPS" { { [33,16] }, { [28,16] }, { [2,2], [26,14] } };
50    shape "LFSH" { { [41,16] }, { [2,2], [39,14] } };
51    shape "CTSH" { { [19.5,16] }, { [2,2], [17.5,14] } };
52    shape "SPCE" { { [57.5,16] }, { [2,2], [55.5,14] } };
53
54    shape "LED"  { cornerRadius= 0, { [5,1] } };
55
56    indicator.onColor= "green";
57    indicator.offColor= "green30";
58    indicator.top= 3;
59    indicator.shape= "LED";
60    indicator "Num Lock"    { left= 247; };
61    indicator "Caps Lock"   { left= 266; };
62    indicator "Scroll Lock" { left= 285; };
63    text.color= "black";
64    text.top= 1;
65    text "Vendor1"          { left=  10; text="SANWA"; };
66    text.top= 4.5;
67    text "Vendor2"          { left=  10; text="SUPPLY"; };
68    text "NumLockLabel"     { left= 241; text="Num Lock"; };
69    text "CapsLockLabel"    { left= 260; text="Caps Lock"; };
70    text "ScrollLockLabel"  { left= 279; text="Scroll Lock"; };
71
72    section.left= 3;
73    row.left= 1;
74    key.shape= "NORM";
75    key.gap= 2;
76    section "Function" {
77        key.shape= "TOP";
78        top= 10;
79        row {
80            top= 1;
81            keys { <ESC>, <FK01>, <FK02>, <FK03>, <FK04>, <FK05>, <FK06>,
82                   <FK07>, <FK08>, <FK09>, <FK10>, <FK11>, <FK12>, <PRSC>,
83                   {<NMLK>, color="grey20"}, <PAUS>, {<DELE>, color="grey20"}
84            };
85        };
86        overlay "SCLK" {
87            <NMLK>=<SCLK>
88        };
89        overlay "FN" {
90            <DELE>=<INS>
91        };
92    }; // End of "Function" section
93
94    section "Alpha" {
95        top= 24;
96        row {
97            top= 2;
98            keys { <HZTG>, <AE01>, <AE02>, <AE03>, <AE04>, <AE05>, <AE06>,
99                   {<AE07>, color="grey20"}, {<AE08>, color="grey20"},
100                   {<AE09>, color="grey20"}, {<AE10>, color="grey20"},
101                   <AE11>, <AE12>, <AE13>, { <BKSP>, "TBBK" }
102            };
103        };
104        row {
105            top= 20;
106            keys { { <TAB>, "TBBK" }, <AD01>, <AD02>, <AD03>, <AD04>, <AD05>,
107                   <AD06>, {<AD07>, color="grey20"}, {<AD08>, color="grey20"},
108                   {<AD09>, color="grey20"}, {<AD10>, color="grey20"}, <AD11>,
109                   <AD12>, { <RTRN>, "RTRN" }
110            };
111        };
112        row {
113            top= 38;
114            keys { { <CAPS>, "CAPS" }, <AC01>, <AC02>, <AC03>, <AC04>, <AC05>,
115                   <AC06>, {<AC07>, color="grey20"}, {<AC08>, color="grey20"},
116                   {<AC09>, color="grey20"}, {<AC10>, color="grey20"}, <AC11>,
117                   <AC12>
118            };
119        };
120        row {
121            top= 56;
122            keys { { <LFSH>, "LFSH" }, <AB01>, <AB02>, <AB03>, <AB04>, <AB05>,
123                   <AB06>, {<AB07>, color="grey20"}, <AB08>,
124                   {<AB09>, color="grey20"}, {<AB10>, color="grey20"}, <AB11>,
125                   {<UP>, color="grey20"}, {<RTSH>, key.shape= "CTSH" }
126            };
127        };
128        row {
129            top= 74;
130            keys { { <LCTL>, key.shape= "CTSH" }, {<FN>, color="grey20"},
131                   <LWIN>, <LALT>, <NFER>, {<SPCE>, "SPCE" }, <XFER>, <HKTG>,
132                   <RALT>, <MENU>, {<LEFT>, color="grey20"},
133                   {<DOWN>, color="grey20"},
134                   {<RGHT>, key.shape= "CTSH", color="grey20"}
135            };
136        };
137        overlay "SCLK" {
138            <AE07>=<KO7>, <AE08>=<KO8>, <AE09>=<KO9>, <AE10>=<KOMU>,
139            <AD07>=<KO4>, <AD08>=<KO5>, <AD09>=<KO6>, <AD10>=<KOSU>,
140            <AC07>=<KO1>, <AC08>=<KO2>, <AC09>=<KO3>, <AC10>=<KOAD>,
141            <AB07>=<KO0>, <AB09>=<KODL>, <AB10>=<KODV>
142        };
143        overlay "FN" {
144            <UP>=<PGUP>, <LEFT>=<HOME>, <DOWN>=<PGDN>, <RGHT>=<END>
145        };
146    }; // End of "Alpha" section
147
148    alias <AC00> = <CAPS>;
149    alias <AA00> = <LCTL>;
150
151}; // End of "default" geometry
152