1 partial hidden keypad_keys
2 xkb_symbols "overlay" {
3 include "keypad(overlay1)"
6 partial hidden keypad_keys
7 xkb_symbols "overlay1" {
9 // Begin "Keypad" section
11 key <KP7> { [ KP_Home ], overlay1=<KO7> };
12 key <KP8> { [ KP_Up ], overlay1=<KO8> };
13 key <KP9> { [ KP_Prior ], overlay1=<KO9> };
15 key <KP4> { [ KP_Left ], overlay1=<KO4> };
16 key <KP5> { [ KP_Begin ], overlay1=<KO5> };
17 key <KP6> { [ KP_Right ], overlay1=<KO6> };
19 key <KP1> { [ KP_End ], overlay1=<KO1> };
20 key <KP2> { [ KP_Down ], overlay1=<KO2> };
21 key <KP3> { [ KP_Next ], overlay1=<KO3> };
23 key <KP0> { [ KP_Insert ], overlay1=<KO0> };
24 key <KPDL> { [ KP_Delete ], overlay1=<KODL> };
26 key <KO7> { [ KP_7 ] };
27 key <KO8> { [ KP_8 ] };
28 key <KO9> { [ KP_9 ] };
30 key <KO4> { [ KP_4 ] };
31 key <KO5> { [ KP_5 ] };
32 key <KO6> { [ KP_6 ] };
34 key <KO1> { [ KP_1 ] };
35 key <KO2> { [ KP_2 ] };
36 key <KO3> { [ KP_3 ] };
38 key <KO0> { [ KP_0 ] };
39 key <KODL> { [ KP_Decimal ] };
41 // End "Keypad" section
44 partial hidden keypad_keys
45 xkb_symbols "overlay2" {
47 // Begin "Keypad" section
49 key <KP7> { [ KP_Home ], overlay2=<KO7> };
50 key <KP8> { [ KP_Up ], overlay2=<KO8> };
51 key <KP9> { [ KP_Prior ], overlay2=<KO9> };
53 key <KP4> { [ KP_Left ], overlay2=<KO4> };
54 key <KP5> { [ KP_Begin ], overlay2=<KO5> };
55 key <KP6> { [ KP_Right ], overlay2=<KO6> };
57 key <KP1> { [ KP_End ], overlay2=<KO1> };
58 key <KP2> { [ KP_Down ], overlay2=<KO2> };
59 key <KP3> { [ KP_Next ], overlay2=<KO3> };
61 key <KP0> { [ KP_Insert ], overlay2=<KO0> };
62 key <KPDL> { [ KP_Delete ], overlay2=<KODL> };
64 key <KO7> { [ KP_7 ] };
65 key <KO8> { [ KP_8 ] };
66 key <KO9> { [ KP_9 ] };
68 key <KO4> { [ KP_4 ] };
69 key <KO5> { [ KP_5 ] };
70 key <KO6> { [ KP_6 ] };
72 key <KO1> { [ KP_1 ] };
73 key <KO2> { [ KP_2 ] };
74 key <KO3> { [ KP_3 ] };
76 key <KO0> { [ KP_0 ] };
77 key <KODL> { [ KP_Decimal ] };
79 // End "Keypad" section
82 partial hidden default keypad_keys
84 // Ungrab cancels server/keyboard/pointer grabs
87 symbols[Group1]= [ KP_Divide, KP_Divide, KP_Divide, KP_Divide, XF86_Ungrab ]
90 // ClsGrb kills whichever client has a grab in effect
93 symbols[Group1]= [ KP_Multiply, KP_Multiply, KP_Multiply, KP_Multiply, XF86_ClearGrab ]
96 // -VMode switches to the previous video mode
99 symbols[Group1]= [ KP_Subtract, KP_Subtract, KP_Subtract, KP_Subtract, XF86_Prev_VMode ]
102 key <KP7> { [ KP_Home, KP_7 ] };
103 key <KP8> { [ KP_Up, KP_8 ] };
104 key <KP9> { [ KP_Prior, KP_9 ] };
106 // +VMode switches to the next video mode
109 symbols[Group1]= [ KP_Add, KP_Add, KP_Add, KP_Add, XF86_Next_VMode ]
112 key <KP4> { [ KP_Left, KP_4 ] };
113 key <KP5> { [ KP_Begin, KP_5 ] };
114 key <KP6> { [ KP_Right, KP_6 ] };
116 key <KP1> { [ KP_End, KP_1 ] };
117 key <KP2> { [ KP_Down, KP_2 ] };
118 key <KP3> { [ KP_Next, KP_3 ] };
119 key <KPEN> { [ KP_Enter ] };
120 key <KPEQ> { [ KP_Equal ] };
122 key <KP0> { [ KP_Insert, KP_0 ] };
123 key <KPDL> { [ KP_Delete, KP_Decimal ] };
124 key <KPPT> { [ KP_Decimal, KP_Decimal ] };
128 // Legacy PC keypad definition
129 // Copyright © 2006-2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
131 xkb_symbols "legacy" {
133 include "keypad(core)"
134 include "keypad(legacymath)"
135 include "keypad(legacynumber)"
140 // Legacy Wang 725-3771-ae and 725-3771-uk keypad definition
141 // Copyright © 2006-2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
143 xkb_symbols "legacy_wang" {
145 include "keypad(core)"
146 include "keypad(legacymath)"
147 include "keypad(legacynumber_wang)"
152 // Complete new keypad definition
153 // Copyright © 2006-2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
157 include "keypad(core)"
158 include "keypad(ossmath)"
159 include "keypad(ossnumber)"
160 include "kpdl(dotoss)"
164 // Latin9 restriction of new keypad definition
165 // Copyright © 2006-2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
167 xkb_symbols "oss_latin9" {
169 include "keypad(core)"
170 include "keypad(ossmath_latin9)"
171 include "keypad(legacynumber)"
172 include "kpdl(dotoss_latin9)"
176 // Wang 725-3771-ae and 725-3771-uk keypad variant of oss keypad
177 // Copyright © 2006-2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
179 xkb_symbols "oss_wang" {
181 include "keypad(core)"
182 include "keypad(ossmath)"
183 include "keypad(ossnumber_wang)"
184 include "kpdl(dotoss)"
188 // Forward-looking keypad definition
189 // Won't work with applications that make ASCII assumptions
190 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
192 xkb_symbols "future" {
194 include "keypad(core)"
195 include "keypad(futuremath)"
196 include "keypad(ossnumber)"
197 include "kpdl(commaoss)"
201 // Forward-looking keypad definition
202 // Won't work with applications that make ASCII assumptions
203 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
205 xkb_symbols "future_wang" {
207 include "keypad(core)"
208 include "keypad(futuremath)"
209 include "keypad(ossnumber_wang)"
210 include "kpdl(commaoss)"
214 // Keypad keys nobody changes
215 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
219 modifier_map Mod2 { Num_Lock };
221 key <NMLK> { [ Num_Lock, Pointer_EnableKeys ] };
222 key <KPEN> { [ KP_Enter ] };
223 key <KPEQ> { [ KP_Equal ] };
227 // Legacy keypad math area
228 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
230 // ┏━━━━━┱─────┬─────┬─────┐
231 // ┃Num ┃ ₁ │ ₂ │ ₃ │ ₁ <XF86_Ungrab>
232 // ┃Lock⇭┃ / │ * │ - │ ₂ <XF86_ClearGrab>
233 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
234 // │ ₄ │ ₄ <XF86_Next_VMode>
241 xkb_symbols "legacymath" {
243 key.type[Group1]="CTRL+ALT" ;
245 key <KPDV> { [ KP_Divide, KP_Divide, KP_Divide, KP_Divide, XF86_Ungrab ] }; // / <XF86_Ungrab>
246 key <KPMU> { [ KP_Multiply, KP_Multiply, KP_Multiply, KP_Multiply, XF86_ClearGrab ] }; // * <XF86_ClearGrab>
247 key <KPSU> { [ KP_Subtract, KP_Subtract, KP_Subtract, KP_Subtract, XF86_Prev_VMode ] }; // - <XF86_Prev_VMode>
249 key <KPAD> { [ KP_Add, KP_Add, KP_Add, KP_Add, XF86_Next_VMode ] }; // + <XF86_Next_VMode>
254 // Keypad math area with non-CS operators
255 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
257 // ┏━━━━━┱─────┬─────┬─────┐
258 // ┃Num ┃ ∕ ₁ │ . ₂ │ − ₃ │ ₁ <XF86_Ungrab>
259 // ┃Lock⇭┃ / ÷ │ * × │ - − │ ₂ <XF86_ClearGrab>
260 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
261 // │ + ₄ │ ₄ <XF86_Next_VMode>
265 // │ + + │ 3 Shift+Level3 ⇧⇮
266 // ╆━━━━━┪ 4 Ctrl+Alt
268 xkb_symbols "ossmath" {
270 key.type[Group1]="FOUR_LEVEL_X" ;
272 key <KPDV> { [ KP_Divide, 0x1002215, 0x10000F7, XF86_Ungrab ] }; // / ∕ ÷ <XF86_Ungrab>
273 key <KPMU> { [ KP_Multiply, 0x10022C5, 0x10000D7, XF86_ClearGrab ] }; // * ⋅ × <XF86_ClearGrab>
274 key <KPSU> { [ KP_Subtract, 0x1002212, 0x1002212, XF86_Prev_VMode ] }; // - − − <XF86_Prev_VMode>
276 key <KPAD> { [ KP_Add, 0x100002B, 0x100002B, XF86_Next_VMode ] }; // + + + <XF86_Next_VMode>
281 // Keypad math area with non-CS operators in first levels
282 // As demanded by users not interested in legacy pre-unicode junk
283 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
285 // ┏━━━━━┱─────┬─────┬─────┐
286 // ┃Num ┃ / ₁ │ * ₂ │ - ₃ │ ₁ <XF86_Ungrab>
287 // ┃Lock⇭┃ ∕ ÷ │ . × │ − − │ ₂ <XF86_ClearGrab>
288 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
289 // │ + ₄ │ ₄ <XF86_Next_VMode>
293 // │ + + │ 3 Shift+Level3 ⇧⇮
294 // ╆━━━━━┪ 4 Ctrl+Alt
296 xkb_symbols "futuremath" {
298 key.type[Group1]="FOUR_LEVEL_X" ;
300 key <KPDV> { [ 0x1002215, KP_Divide, 0x10000F7, XF86_Ungrab ] }; // ∕ / ÷ <XF86_Ungrab>
301 key <KPMU> { [ 0x10022C5, KP_Multiply, 0x10000D7, XF86_ClearGrab ] }; // ⋅ * × <XF86_ClearGrab>
302 key <KPSU> { [ 0x1002212, KP_Subtract, 0x1002212, XF86_Prev_VMode ] }; // − - − <XF86_Prev_VMode>
304 key <KPAD> { [ 0x100002B, KP_Add, 0x100002B, XF86_Next_VMode ] }; // + + + <XF86_Next_VMode>
308 // Keypad math area with non-CS operators, restricted to latin9
309 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
311 // ┏━━━━━┱─────┬─────┬─────┐
312 // ┃Num ┃ / ₁ │ · ₂ │ - ₃ │ ₁ <XF86_Ungrab>
313 // ┃Lock⇭┃ / ÷ │ * × │ - - │ ₂ <XF86_ClearGrab>
314 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
315 // │ + ₄ │ ₄ <XF86_Next_VMode>
319 // │ + + │ 3 Shift+Level3 ⇧⇮
320 // ╆━━━━━┪ 4 Ctrl+Alt
322 xkb_symbols "ossmath_latin9" {
324 key.type[Group1]="FOUR_LEVEL_X";
326 key <KPDV> { [ KP_Divide, slash, division, XF86_Ungrab ] }; // / / ÷ <XF86_Ungrab>
327 key <KPMU> { [ KP_Multiply, periodcentered, multiply, XF86_ClearGrab ] }; // * · × <XF86_ClearGrab>
328 key <KPSU> { [ KP_Subtract, minus, minus, XF86_Prev_VMode ] }; // - - - <XF86_Prev_VMode>
330 key <KPAD> { [ KP_Add, plus, plus, XF86_Next_VMode ] }; // + + + <XF86_Next_VMode>
334 // Legacy keypad number area
335 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
340 // ┡━━━━━╃─────┼─────┼ ⇟ Page down
341 // │ 7 │ 8 │ 9 │ ⇞ Page up
342 // │ ⇱ │ ⇧ │ ⇞ │ ⎀ Insert
343 // ├─────┼─────┼─────┤ ␥ Delete
344 // │ 4 │ 5 │ 6 │ ⇦⇧⇨⇩ Directions
346 // ├─────┼─────┼─────╆
348 // │ ⇲ │ ⇩ │ ⇟ ┃ 1 None
349 // ├─────┴─────┼─────┨ 2 Num Lock ⇭
354 xkb_symbols "legacynumber" {
356 key.type[Group1]="KEYPAD" ;
358 key <KP7> { [ KP_Home, KP_7 ] }; // <home> 7
359 key <KP8> { [ KP_Up, KP_8 ] }; // <up> 8
360 key <KP9> { [ KP_Prior, KP_9 ] }; // <prior> 9
362 key <KP4> { [ KP_Left, KP_4 ] }; // <left> 4
363 key <KP5> { [ KP_Begin, KP_5 ] }; // <begin> 5
364 key <KP6> { [ KP_Right, KP_6 ] }; // <right> 6
366 key <KP1> { [ KP_End, KP_1 ] }; // <end> 1
367 key <KP2> { [ KP_Down, KP_2 ] }; // <down> 2
368 key <KP3> { [ KP_Next, KP_3 ] }; // <next> 3
370 key <KP0> { [ KP_Insert, KP_0 ] }; // <insert> 0
374 // Legacy Wang 725-3771-ae and 725-3771-uk keypad number area
375 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
376 // This is actually a three-level keypad, declared as four-level
377 // to avoid defining a new type
382 // ┡━━━━━╃─────┼─────┼ ⇟ Page down
383 // │ 7 │ 8 │ 9 │ ⇞ Page up
384 // │ ⇱ < │ ⇧ > │ ⇞ ^ │ ⎀ Insert
385 // ├─────┼─────┼─────┤ ␥ Delete
386 // │ 4 │ 5 │ 6 │ ⇦⇧⇨⇩ Directions
388 // ├─────┼─────┼─────╆
390 // │ ⇲ & │ ⇩ @ │ ⇟ # ┃ 1 None
391 // ├─────┴─────┼─────┨ 2 Num Lock ⇭
396 xkb_symbols "legacynumber_wang" {
398 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
400 key <KP7> { [ KP_Home, KP_7, less ] }; // <home> 7 <
401 key <KP8> { [ KP_Up, KP_8, greater ] }; // <up> 8 >
402 key <KP9> { [ KP_Prior, KP_9, asciicircum ] }; // <prior> 9 ^
404 key <KP4> { [ KP_Left, KP_4, bracketleft ] }; // <left> 4 [
405 key <KP5> { [ KP_Begin, KP_5, bracketright ] }; // <begin> 5 ]
406 key <KP6> { [ KP_Right, KP_6, dollar ] }; // <right> 6 $
408 key <KP1> { [ KP_End, KP_1, ampersand ] }; // <end> 1 &
409 key <KP2> { [ KP_Down, KP_2, at ] }; // <down> 2 @
410 key <KP3> { [ KP_Next, KP_3, numbersign ] }; // <next> 3 #
412 key <KP0> { [ KP_Insert, KP_0, apostrophe ] }; // <insert> 0 '
416 // Keypad number area with arrow symbols
417 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
422 // ┡━━━━━╃─────┼─────┼ ⇟ Page down
423 // │ 7 ⇖ │ 8 ⇑ │ 9 ⇗ │ ⇞ Page up
424 // │ ⇱ ↖ │ ⇧ ↑ │ ⇞ ↗ │ ⎀ Insert
425 // ├─────┼─────┼─────┤ ␥ Delete
426 // │ 4 ⇐ │ 5 ⇔ │ 6 ⇗ │ ⇦⇧⇨⇩ Directions
427 // │ ⇦ ← │ ↔ │ ⇨ ↗ │ ⍽ narrow no-break space
428 // ├─────┼─────┼─────╆
429 // │ 1 ⇙ │ 2 ⇓ │ 3 ⇘ ┃
430 // │ ⇲ ↙ │ ⇩ ↓ │ ⇟ ↘ ┃ 1 None
431 // ├─────┴─────┼─────┨ 2 Num Lock ⇭
432 // │ 0 ⇕ │ 3 Level3 ⇮
433 // │ ⎀ ↕ │ 4 Shift+Level3 ⇧⇮
436 xkb_symbols "ossnumber" {
438 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
440 key <KP7> { [ KP_Home, KP_7, 0x1002196, 0x10021D6 ] }; // <home> 7 ↖ ⇖
441 key <KP8> { [ KP_Up, KP_8, 0x1002191, 0x10021D1 ] }; // <up> 8 ↑ ⇑
442 key <KP9> { [ KP_Prior, KP_9, 0x1002197, 0x10021D7 ] }; // <prior> 9 ↗ ⇗
444 key <KP4> { [ KP_Left, KP_4, 0x1002190, 0x10021D0 ] }; // <left> 4 ← ⇐
445 key <KP5> { [ KP_Begin, KP_5, 0x1002194, 0x10021D4 ] }; // <begin> 5 ↔ ⇔
446 key <KP6> { [ KP_Right, KP_6, 0x1002192, 0x10021D2 ] }; // <right> 6 → ⇒
448 key <KP1> { [ KP_End, KP_1, 0x1002199, 0x10021D9 ] }; // <end> 1 ↙ ⇙
449 key <KP2> { [ KP_Down, KP_2, 0x1002193, 0x10021D3 ] }; // <down> 2 ↓ ⇓
450 key <KP3> { [ KP_Next, KP_3, 0x1002198, 0x10021D8 ] }; // <next> 3 ↘ ⇘
452 key <KP0> { [ KP_Insert, KP_0, 0x1002195, 0x10021D5 ] }; // <insert> 0 ↕ ⇕
456 // Wang 725-3771-ae and 725-3771-uk keypad number area with additional arrow symbols
457 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
462 // ┡━━━━━╃─────┼─────┼ ⇟ Page down
463 // │ 7 ↖ │ 8 ↑ │ 9 ↗ │ ⇞ Page up
464 // │ ⇱ < │ ⇧ > │ ⇞ ^ │ ⎀ Insert
465 // ├─────┼─────┼─────┤ ␥ Delete
466 // │ 4 ← │ 5 ↔ │ 6 → │ ⇦⇧⇨⇩ Directions
467 // │ ⇦ [ │ ] │ ⇨ $ │ ⍽ narrow no-break space
468 // ├─────┼─────┼─────╆
469 // │ 1 ↙ │ 2 ↓ │ 3 ↘ ┃
470 // │ ⇲ & │ ⇩ @ │ ⇟ # ┃ 1 None
471 // ├─────┴─────┼─────┨ 2 Num Lock ⇭
472 // │ 0 ↕ │ 3 Level3 ⇮
473 // │ ⎀ ' │ 4 Shift+Level3 ⇧⇮
476 xkb_symbols "ossnumber_wang" {
478 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
480 key <KP7> { [ KP_Home, KP_7, less, 0x1002196 ] }; // <home> 7 < ↖
481 key <KP8> { [ KP_Up, KP_8, greater, 0x1002191 ] }; // <up> 8 > ↑
482 key <KP9> { [ KP_Prior, KP_9, asciicircum, 0x1002197 ] }; // <prior> 9 ^ ↗
484 key <KP4> { [ KP_Left, KP_4, bracketleft, 0x1002190 ] }; // <left> 4 [ ←
485 key <KP5> { [ KP_Begin, KP_5, bracketright, 0x1002194 ] }; // <begin> 5 ] ↔
486 key <KP6> { [ KP_Right, KP_6, dollar, 0x1002192 ] }; // <right> 6 $ →
488 key <KP1> { [ KP_End, KP_1, ampersand, 0x1002199 ] }; // <end> 1 & ↙
489 key <KP2> { [ KP_Down, KP_2, at, 0x1002193 ] }; // <down> 2 @ ↓
490 key <KP3> { [ KP_Next, KP_3, numbersign, 0x1002198 ] }; // <next> 3 # ↘
492 key <KP0> { [ KP_Insert, KP_0, apostrophe, 0x1002195 ] }; // <insert> 0 ' ↕
495 // Standard base "pc" layout only contains cursor keys, and then gets
496 // augmented with the digits later. If you define your own layout for
497 // the numpad you can inherit the cursors, but you'll have to define
498 // the digits yourself. This module can be included in the rules to
499 // define math operators; these are the variants used in computer
500 // languages that are based on ASCII. NoSymbol doesn't mean that
501 // nothing is bound to the key but that no assignment is done here.
502 // srvr_ctrl(stdkeypad) and keypad(x11) declare the operator keys to
503 // be of type CTRL+ALT in order to assign server control events to
504 // them, but it uses the second level which is overwritten if we have
505 // more than one definition (shift state) for the key. Instead, here
506 // the commands are put at the fourth level.
509 key <KPDV> { [ NoSymbol, slash, NoSymbol, XF86_Ungrab ] };
510 key <KPMU> { [ NoSymbol, asterisk, NoSymbol, XF86_ClearGrab ] };
511 key <KPSU> { [ NoSymbol, minus, NoSymbol, XF86_Prev_VMode ] };
512 key <KPAD> { [ NoSymbol, plus, NoSymbol, XF86_Next_VMode ] };
513 key <KPEQ> { [ NoSymbol, equal ] };
516 // Hexadecimal Numpad, by Roland Kaufmann <rlndkfmn at gmail dot com>
517 // License: BSD (also covers variant with ATM digit order)
518 // Third-level gives the letters used in hexadecimal numbers, or
519 // columns in small spreadsheets. As a bonus, having 'e' available at
520 // the center of the keyboard makes it easy to enter floating point
521 // numbers in scientific notation.
522 // Equal is added to start formulas (most numpads on PCs don't have
523 // their own equal key), comma as a list separator (as most
524 // programming languages wants period as a decimal separator) and
525 // colon to enter times and ranges. Someone also may want to represent
526 // multiplication and division in prose using x and colon.
527 // Two first levels are specified as NoSymbol to not override any
528 // previous specification. Combine this with another keypad specifier,
532 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
534 // None NumLock AltGr
536 key <KPDV> { [ NoSymbol, NoSymbol, parenleft ] };
537 key <KPMU> { [ NoSymbol, NoSymbol, parenright ] };
538 key <KPSU> { [ NoSymbol, NoSymbol, dollar ] };
541 key <KP7> { [ NoSymbol, NoSymbol, a ] };
542 key <KP8> { [ NoSymbol, NoSymbol, b ] };
543 key <KP9> { [ NoSymbol, NoSymbol, c ] };
546 key <KP4> { [ NoSymbol, NoSymbol, d ] };
547 key <KP5> { [ NoSymbol, NoSymbol, e ] };
548 key <KP6> { [ NoSymbol, NoSymbol, f ] };
549 key <KPAD> { [ NoSymbol, NoSymbol, comma ] };
552 key <KP1> { [ NoSymbol, NoSymbol, equal ] };
553 key <KP2> { [ NoSymbol, NoSymbol, x ] };
554 key <KP3> { [ NoSymbol, NoSymbol, colon ] };
557 key <KP0> { [ NoSymbol, NoSymbol, backslash ] };
560 // Main numbers follows the traditions from ATMs and phones with
561 // numbers increasing downwards to the right. (It is easier to
562 // change the keyboard layout than to reprogram your local ATM;
563 // also cell-phones are becoming more common while calculators are
564 // becoming more rare).
565 // First level is left unspecified, so it may be combined with another
566 // layout, e.g. "legacy".
570 key <KP7> { [ NoSymbol, KP_1 ] };
571 key <KP8> { [ NoSymbol, KP_2 ] };
572 key <KP9> { [ NoSymbol, KP_3 ] };
575 key <KP1> { [ NoSymbol, KP_7 ] };
576 key <KP2> { [ NoSymbol, KP_8 ] };
577 key <KP3> { [ NoSymbol, KP_9 ] };
581 partial default modifier_keys
582 xkb_symbols "pointerkeys" {
583 key <NMLK> { [ Num_Lock, Pointer_EnableKeys ] };
586 // Only numbers, operators and decimal separator,
587 // as seen on keypad overlay on Japanese keyboard.
598 xkb_symbols "numoperdecsep" {
599 key <KO7> { [ KP_7 ] };
600 key <KO8> { [ KP_8 ] };
601 key <KO9> { [ KP_9 ] };
602 // ClsGrb kills whichever client has a grab in effect
605 symbols[Group1]= [ KP_Multiply, KP_Multiply, KP_Multiply, KP_Multiply, XF86_ClearGrab ]
608 key <KO4> { [ KP_4 ] };
609 key <KO5> { [ KP_5 ] };
610 key <KO6> { [ KP_6 ] };
611 // -VMode switches to the previous video mode
614 symbols[Group1]= [ KP_Subtract, KP_Subtract, KP_Subtract, KP_Subtract, XF86_Prev_VMode ]
617 key <KO1> { [ KP_1 ] };
618 key <KO2> { [ KP_2 ] };
619 key <KO3> { [ KP_3 ] };
620 // +VMode switches to the next video mode
623 symbols[Group1]= [ KP_Add, KP_Add, KP_Add, KP_Add, XF86_Next_VMode ]
626 key <KO0> { [ KP_0 ] };
627 key <KODL> { [ KP_Decimal ] };
628 // Ungrab cancels server/keyboard/pointer grabs
631 symbols[Group1]= [ KP_Divide, KP_Divide, KP_Divide, KP_Divide, XF86_Ungrab ]