1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
|
// $XdotOrg: $
//
// Copyright 2004 Sun Microsystems, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, and/or sell copies of the Software, and to permit persons
// to whom the Software is furnished to do so, provided that the above
// copyright notice(s) and this permission notice appear in all copies of
// the Software and that both the above copyright notice(s) and this
// permission notice appear in supporting documentation.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
// OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
// HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
// INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
// FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
// NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
// WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
//
// Except as contained in this notice, the name of a copyright holder
// shall not be used in advertising or otherwise to promote the sale, use
// or other dealings in this Software without prior written authorization
// of the copyright holder.
//
// $TOG: us /main/5 1998/02/10 13:45:06 kaleb $
// Sun: @(#)us 1.5 03/04/21 SMI
//
//Copyright 1996, 1998 The Open Group
//
//All Rights Reserved.
//
//The above copyright notice and this permission notice shall be
//included in all copies or substantial portions of the Software.
//
//THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
//EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
//MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
//IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
//OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
//ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
//OTHER DEALINGS IN THE SOFTWARE.
//
//Except as contained in this notice, the name of The Open Group shall
//not be used in advertising or otherwise to promote the sale, use or
//other dealings in this Software without prior written authorization
//from The Open Group.
//
// Symbols shared by all Sun Keyboard layouts
xkb_symbols "sunbasic" {
include "srvr_ctrl(stdkeypad)"
include "us(basic)"
key <RTSH> { [ Shift_R ] };
key <LALT> { [ Alt_L ] };
key <ALGR> { [ Mode_switch ] };
key <LMTA> { [ Meta_L ] };
key <RMTA> { [ Meta_R ] };
key <RCTL> { [ Control_R ] };
key <COMP> { [ Multi_key ] };
// End alphanumeric section
// Begin "Function" section
key <FK01> { [ F1 ] };
key <FK02> { [ F2 ] };
key <FK03> { [ F3 ] };
key <FK04> { [ F4 ] };
key <FK05> { [ F5 ] };
key <FK06> { [ F6 ] };
key <FK07> { [ F7 ] };
key <FK08> { [ F8 ] };
key <FK09> { [ F9 ] };
key <FK10> { [ F10 ] };
key <FK11> { [ SunF36 ] };
key <FK12> { [ SunF37 ] };
key <STOP> { [ L1, L1 ], [ SunStop ] };
key <AGAI> { [ L2, L2 ], [ SunAgain ] };
key <PROP> { [ L3, L3 ], [ SunProps ] };
key <UNDO> { [ L4, L4 ], [ SunUndo ] };
key <FRNT> { [ L5, L5 ], [ SunFront ] };
key <COPY> { [ L6, L6 ], [ SunCopy ] };
key <OPEN> { [ L7, L7 ], [ SunOpen ] };
key <PAST> { [ L8, L8 ], [ SunPaste ] };
key <FIND> { [ L9, L9 ], [ SunFind ] };
key <CUT> { [ L10, L10 ], [ SunCut ] };
// End "Function" section
// Begin "Editing" section
key <DELE> { [ Delete ] };
key <HELP> { [ Help ] };
// End "Editing" section, begin "Keypad"
key <NMLK> { [ Num_Lock, Pointer_EnableKeys ] };
// This default section uses the same symbols as other XKB implementations
// for greater compatibility & AccessX MouseKeys support, but it is
// different than the traditional Sun key mappings that date back to the
// Sun Type 2 keyboard, in which the right side numpad were "R" function
// keys. To restore the original behavior, comment out this section and
// uncomment the section below that lists the R key mappings.
key <KPDV> { [ KP_Divide ] };
key <KPMU> { [ KP_Multiply ] };
key <KPSU> { [ KP_Subtract ] };
key <KP7> { [ KP_Home, KP_7 ] };
key <KP8> { [ KP_Up, KP_8 ] };
key <KP9> { [ KP_Prior, KP_9 ] };
key <KPAD> { [ KP_Add ] };
key <KP4> { [ KP_Left, KP_4 ] };
key <KP5> { [ KP_Begin, KP_5 ] };
key <KP6> { [ KP_Right, KP_6 ] };
key <KP1> { [ KP_End, KP_1 ] };
key <KP2> { [ KP_Down, KP_2 ] };
key <KP3> { [ KP_Next, KP_3 ] };
key <KPEN> { [ KP_Enter ] };
key <KP0> { [ KP_Insert, KP_0 ] };
key <KPDL> { [ KP_Delete, KP_Decimal ] };
// End New Keypad section - Begin Sun traditional Keypad section
// key <KP7> { [ R7, R7 ], [ KP_7, Home ] };
// key <KP8> { [ Up, R8 ], [ KP_8 ] };
// key <KP9> { [ R9, R9 ], [ KP_9, Prior ] };
// key <KPAD> { [ KP_Add ] };
//
// key <KP4> { [ Left, R10 ], [ KP_4 ] };
// key <KP5> { [ R11, R11 ], [ KP_5 ] };
// key <KP6> { [ Right, R12 ], [ KP_6 ] };
//
// key <KP1> { [ R13, R13 ], [ KP_1, End ] };
// key <KP2> { [ Down, R14 ], [ KP_2 ] };
// key <KP3> { [ R15, R15 ], [ KP_3, Next ] };
// key <KPEN> { [ KP_Enter ] };
// key <KP0> { [ KP_Insert, KP_Insert], [ KP_0 ] };
// key <KPDL> { [ Delete, Delete ], [ KP_Decimal ] };
// End "Keypad" section
modifier_map Control{ Control_R };
};
// US/ASCII layout for a Type 4 Sun keyboard
xkb_symbols "type4basic" {
include "sun/us(sunbasic)"
// A few alphanumeric keys are different
key <AE04> { [ 4, dollar ], [ EuroSign ] };
key <AE05> { [ 5, percent ], [ EuroSign ] };
key <AD03> { [ e, E ], [ EuroSign ] };
key <LNFD> { [ Linefeed ] };
// Begin "Editing" section
key <PRSC> { [ R2, R2 ], [ Print ] };
key <SCLK> { [ R3, R3 ], [ Scroll_Lock, Break ] };
key <PAUS> { [ R1, R1 ], [ Pause ] };
// End "Editing" section, begin "Keypad"
key <KPEQ> { [ R4, KP_Equal ], [ KP_Equal ] };
// begin modifier mappings
modifier_map Shift { Shift_R, Shift_L };
modifier_map Mod1 { Meta_L, Meta_R };
modifier_map Mod2 { Mode_switch };
modifier_map Mod3 { Num_Lock };
modifier_map Mod4 { Alt_L };
};
xkb_symbols "type4" {
include "sun/us(type4basic)"
key <BKSL> { [ backslash, bar ], [ brokenbar ] };
};
// US/ASCII layout for a Type 5 Sun keyboard
xkb_symbols "type5basic" {
include "sun/us(sunbasic)"
// Begin "Editing" section
key <PRSC> { [ R2, R2 ], [ Print, SunSys_Req ] };
key <SCLK> { [ R3, R3 ], [ Scroll_Lock ] };
key <PAUS> { [ R1, R1 ], [ Pause, Break ] };
key <LEFT> { [ Left ] };
key <RGHT> { [ Right ] };
key <UP> { [ Up ] };
key <DOWN> { [ Down ] };
key <DELE> { [ Delete ] };
key <INS> { [ Insert ] };
key <PGUP> { [ Prior ] };
key <PGDN> { [ Next ] };
key <HOME> { [ Home ] };
key <END> { [ End ] };
key <HELP> { [ Help ] };
// End "Editing" section
// begin "four keys up on the right"
key <MUTE> { [ SunAudioMute, SunVideoDegauss ] };
key <VOL-> { [ SunAudioLowerVolume, SunVideoLowerBrightness ] };
key <VOL+> { [ SunAudioRaiseVolume, SunVideoRaiseBrightness ] };
key <POWR> { [ SunPowerSwitch, SunPowerSwitchShift ] };
// begin modifier mappings
modifier_map Shift { Shift_R, Shift_L };
modifier_map Mod1 { Alt_L };
modifier_map Mod2 { Alt_R, Mode_switch };
modifier_map Mod3 { Num_Lock };
modifier_map Mod4 { Meta_L, Meta_R };
};
xkb_symbols "type5" {
include "sun/us(type5basic)"
// A few alphanumeric keys are different
key <AE04> { [ 4, dollar ], [ EuroSign ] };
key <AE05> { [ 5, percent ], [ EuroSign ] };
key <AD03> { [ e, E ], [ EuroSign ] };
key <BKSL> { [ backslash, bar ], [ brokenbar ] };
};
xkb_symbols "type6" {
include "sun/us(type5)"
};
// US/ASCII layout for a Type 5 Sun keyboard
xkb_symbols "type5hobobasic" {
include "sun/us(type5basic)"
};
xkb_symbols "type5hobo" {
include "sun/us(type5hobobasic)"
// A few alphanumeric keys are different
key <AE04> { [ 4, dollar ], [ EuroSign ] };
key <AE05> { [ 5, percent ], [ EuroSign ] };
key <AD03> { [ e, E ], [ EuroSign ] };
key <BKSL> { [ backslash, bar ], [ brokenbar ] };
// Here is the hobo keypad:
key <AE07> { [ 7, ampersand ], [ NoSymbol, NoSymbol ], [ KP_7 ] };
key <AE08> { [ 8, asterisk ], [ NoSymbol, NoSymbol ], [ KP_8 ] };
key <AE09> { [ 9, parenleft ], [ NoSymbol, NoSymbol ], [ KP_9 ] };
key <AE10> { [ 0, parenright], [ NoSymbol, NoSymbol ], [ KP_Multiply] };
key <AD07> { [ u, U ], [ NoSymbol, NoSymbol ], [ KP_4 ] };
key <AD08> { [ i, I ], [ NoSymbol, NoSymbol ], [ KP_5 ] };
key <AD09> { [ o, O ], [ NoSymbol, NoSymbol ], [ KP_6 ] };
key <AD10> { [ p, P ], [ NoSymbol, NoSymbol ], [ KP_Subtract]};
key <AC07> { [ j, J ], [ NoSymbol, NoSymbol ], [ KP_1 ] };
key <AC08> { [ k, K ], [ NoSymbol, NoSymbol ], [ KP_2 ] };
key <AC09> { [ l, L ], [ NoSymbol, NoSymbol ], [ KP_3 ] };
key <AC10> { [ semicolon, colon], [ NoSymbol, NoSymbol], [ KP_Add ] };
key <RTRN> { [ Return ], [ NoSymbol, NoSymbol], [ KP_Enter ] };
key <AB07> { [ m, M ], [ NoSymbol, NoSymbol ], [ KP_0 ] };
key <AB09> { [ period, greater], [ NoSymbol, NoSymbol], [ KP_Decimal] };
key <AB10> { [ slash, question], [ NoSymbol, NoSymbol], [ KP_Divide ] };
};
xkb_symbols "pc101" {
include "us(pc101)"
key <RALT> { [ Mode_switch, Meta_R ] };
};
xkb_symbols "pc102" {
include "us(pc102)"
key <RALT> { [ Mode_switch, Meta_R ] };
};
xkb_symbols "pc104" {
include "us(pc104)"
};
xkb_symbols "pc101currency" {
key <AE04> { [ 4, dollar ], [ EuroSign ] };
key <AE05> { [ 5, percent ], [ EuroSign ] };
key <AD03> { [ e, E ], [ EuroSign ] };
key <BKSL> { [ backslash, bar ], [ brokenbar ]};
};
xkb_symbols "US101A_Sun" {
key <AE04> { [ 4, dollar ], [ EuroSign ] };
key <AE05> { [ 5, percent ], [ EuroSign ] };
key <AD03> { [ e, E ], [ EuroSign ] };
key <BKSL> { [ backslash, bar ], [ brokenbar ]};
// Begin "Editing" section
key <PRSC> { [ L5, L5 ], [ Print, SunSys_Req ]};
key <SCLK> { [ L7, L7 ], [ Scroll_Lock ]};
key <PAUS> { [ L1, L1 ], [ Pause, Break ]};
key <INS> { [ L8, L8 ], [ Insert ]};
key <HOME> { [ L6, L6 ], [ Home ]};
key <PGUP> { [ L3, L3 ], [ Prior ]};
key <DELE> { [ L10, L10 ], [ Delete ]};
key <END> { [ L9, L9 ], [ End ]};
key <PGDN> { [ L4, L4 ], [ Next ]};
key <UP> { [ Up ] };
key <LEFT> { [ Left ] };
key <DOWN> { [ Down ] };
key <RGHT> { [ Right ] };
key <KPDV> { [ R5, R5 ], [ KP_Divide ] };
key <KPMU> { [ R6, R6 ], [ KP_Multiply ] };
key <KP7> { [ R7, KP_7 ], [ KP_7, Home ] };
key <KP8> { [ KP_Up, KP_8 ], [ KP_8 ] };
key <KP9> { [ R9, KP_9 ], [ KP_9, Prior ] };
key <KPAD> { [ KP_Add ] };
key <KP4> { [ KP_Left, KP_4 ], [ KP_4 ] };
key <KP5> { [ R11, KP_5 ], [ KP_5 ] };
key <KP6> { [ KP_Right, KP_6 ], [ KP_6 ] };
key <KP1> { [ R13, KP_1 ], [ KP_1, End ] };
key <KP2> { [ KP_Down, KP_2 ], [ KP_2 ] };
key <KP3> { [ R15, KP_3 ], [ KP_3, Next ] };
key <KPEN> { [ KP_Enter ] };
key <LALT> { [ Meta_L ] };
key <RALT> { [ Alt_L ] };
key <RCTL> { [ Multi_key ] };
};
|