2 // $Xorg: keypad,v 1.3 2000/08/17 19:54:43 cpqbld Exp $
4 partial hidden keypad_keys
5 xkb_symbols "overlay" {
6 include "keypad(overlay1)"
9 partial hidden keypad_keys
10 xkb_symbols "overlay1" {
12 // Begin "Keypad" section
14 key <KP7> { [ KP_Home ], overlay1=<KO7> };
15 key <KP8> { [ KP_Up ], overlay1=<KO8> };
16 key <KP9> { [ KP_Prior ], overlay1=<KO9> };
18 key <KP4> { [ KP_Left ], overlay1=<KO4> };
19 key <KP5> { [ KP_Begin ], overlay1=<KO5> };
20 key <KP6> { [ KP_Right ], overlay1=<KO6> };
22 key <KP1> { [ KP_End ], overlay1=<KO1> };
23 key <KP2> { [ KP_Down ], overlay1=<KO2> };
24 key <KP3> { [ KP_Next ], overlay1=<KO3> };
26 key <KP0> { [ KP_Insert ], overlay1=<KO0> };
27 key <KPDL> { [ KP_Delete ], overlay1=<KODL> };
29 key <KO7> { [ KP_7 ] };
30 key <KO8> { [ KP_8 ] };
31 key <KO9> { [ KP_9 ] };
33 key <KO4> { [ KP_4 ] };
34 key <KO5> { [ KP_5 ] };
35 key <KO6> { [ KP_6 ] };
37 key <KO1> { [ KP_1 ] };
38 key <KO2> { [ KP_2 ] };
39 key <KO3> { [ KP_3 ] };
41 key <KO0> { [ KP_0 ] };
42 key <KODL> { [ KP_Decimal ] };
44 // End "Keypad" section
47 partial hidden keypad_keys
48 xkb_symbols "overlay2" {
50 // Begin "Keypad" section
52 key <KP7> { [ KP_Home ], overlay2=<KO7> };
53 key <KP8> { [ KP_Up ], overlay2=<KO8> };
54 key <KP9> { [ KP_Prior ], overlay2=<KO9> };
56 key <KP4> { [ KP_Left ], overlay2=<KO4> };
57 key <KP5> { [ KP_Begin ], overlay2=<KO5> };
58 key <KP6> { [ KP_Right ], overlay2=<KO6> };
60 key <KP1> { [ KP_End ], overlay2=<KO1> };
61 key <KP2> { [ KP_Down ], overlay2=<KO2> };
62 key <KP3> { [ KP_Next ], overlay2=<KO3> };
64 key <KP0> { [ KP_Insert ], overlay2=<KO0> };
65 key <KPDL> { [ KP_Delete ], overlay2=<KODL> };
67 key <KO7> { [ KP_7 ] };
68 key <KO8> { [ KP_8 ] };
69 key <KO9> { [ KP_9 ] };
71 key <KO4> { [ KP_4 ] };
72 key <KO5> { [ KP_5 ] };
73 key <KO6> { [ KP_6 ] };
75 key <KO1> { [ KP_1 ] };
76 key <KO2> { [ KP_2 ] };
77 key <KO3> { [ KP_3 ] };
79 key <KO0> { [ KP_0 ] };
80 key <KODL> { [ KP_Decimal ] };
82 // End "Keypad" section
85 partial hidden default keypad_keys
87 // Ungrab cancels server/keyboard/pointer grabs
90 symbols[Group1]= [ KP_Divide, XF86_Ungrab ]
93 // ClsGrb kills whichever client has a grab in effect
96 symbols[Group1]= [ KP_Multiply, XF86_ClearGrab ]
99 // -VMode switches to the previous video mode
102 symbols[Group1]= [ KP_Subtract, XF86_Prev_VMode ]
105 key <KP7> { [ KP_Home, KP_7 ] };
106 key <KP8> { [ KP_Up, KP_8 ] };
107 key <KP9> { [ KP_Prior, KP_9 ] };
109 // +VMode switches to the next video mode
112 symbols[Group1]= [ KP_Add, XF86_Next_VMode ]
115 key <KP4> { [ KP_Left, KP_4 ] };
116 key <KP5> { [ KP_Begin, KP_5 ] };
117 key <KP6> { [ KP_Right, KP_6 ] };
119 key <KP1> { [ KP_End, KP_1 ] };
120 key <KP2> { [ KP_Down, KP_2 ] };
121 key <KP3> { [ KP_Next, KP_3 ] };
122 key <KPEN> { [ KP_Enter ] };
123 key <KPEQ> { [ KP_Equal ] };
125 key <KP0> { [ KP_Insert, KP_0 ] };
126 key <KPDL> { [ KP_Delete, KP_Decimal ] };
130 // Legacy PC keypad definition
131 // Copyright © 2006-2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
133 xkb_symbols "legacy" {
135 include "keypad(core)"
136 include "keypad(legacymath)"
137 include "keypad(legacynumber)"
142 // Legacy Wang 725-3771-ae and 725-3771-uk keypad definition
143 // Copyright © 2006-2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
145 xkb_symbols "legacy_wang" {
147 include "keypad(core)"
148 include "keypad(legacymath)"
149 include "keypad(legacynumber_wang)"
154 // Complete new keypad definition
155 // Copyright © 2006-2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
159 include "keypad(core)"
160 include "keypad(ossmath)"
161 include "keypad(ossnumber)"
162 include "kpdl(dotoss)"
166 // Latin9 restriction of new keypad definition
167 // Copyright © 2006-2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
169 xkb_symbols "oss_latin9" {
171 include "keypad(core)"
172 include "keypad(ossmath_latin9)"
173 include "keypad(legacynumber)"
174 include "kpdl(dotoss_latin9)"
178 // Wang 725-3771-ae and 725-3771-uk keypad variant of oss keypad
179 // Copyright © 2006-2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
181 xkb_symbols "oss_wang" {
183 include "keypad(core)"
184 include "keypad(ossmath)"
185 include "keypad(ossnumber_wang)"
186 include "kpdl(dotoss)"
190 // Forward-looking keypad definition
191 // Won't work with applications that make ASCII assumptions
192 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
194 xkb_symbols "future" {
196 include "keypad(core)"
197 include "keypad(futuremath)"
198 include "keypad(ossnumber)"
199 include "kpdl(commaoss)"
203 // Forward-looking keypad definition
204 // Won't work with applications that make ASCII assumptions
205 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
207 xkb_symbols "future_wang" {
209 include "keypad(core)"
210 include "keypad(futuremath)"
211 include "keypad(ossnumber_wang)"
212 include "kpdl(commaoss)"
216 // Keypad keys nobody changes
217 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
221 modifier_map Mod2 { Num_Lock };
223 key <NMLK> { [ Num_Lock, Pointer_EnableKeys ] };
224 key <KPEN> { [ KP_Enter ] };
225 key <KPEQ> { [ KP_Equal ] };
229 // Legacy keypad math area
230 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
232 // ┏━━━━━┱─────┬─────┬─────┐
233 // ┃Num ┃ ₁ │ ₂ │ ₃ │ ₁ <XF86_Ungrab>
234 // ┃Lock⇭┃ / │ * │ - │ ₂ <XF86_ClearGrab>
235 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
236 // │ ₄ │ ₄ <XF86_Next_VMode>
243 xkb_symbols "legacymath" {
245 key.type[Group1]="CTRL+ALT" ;
247 key <KPDV> { [ KP_Divide, XF86_Ungrab ] }; // / <XF86_Ungrab>
248 key <KPMU> { [ KP_Multiply, XF86_ClearGrab ] }; // * <XF86_ClearGrab>
249 key <KPSU> { [ KP_Subtract, XF86_Prev_VMode ] }; // - <XF86_Prev_VMode>
251 key <KPAD> { [ KP_Add, XF86_Next_VMode ] }; // + <XF86_Next_VMode>
256 // Keypad math area with non-CS operators
257 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
259 // ┏━━━━━┱─────┬─────┬─────┐
260 // ┃Num ┃ ∕ ₁ │ . ₂ │ − ₃ │ ₁ <XF86_Ungrab>
261 // ┃Lock⇭┃ / ÷ │ * × │ - − │ ₂ <XF86_ClearGrab>
262 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
263 // │ + ₄ │ ₄ <XF86_Next_VMode>
267 // │ + + │ 3 Shift+Level3 ⇧⇮
268 // ╆━━━━━┪ 4 Ctrl+Alt
270 xkb_symbols "ossmath" {
272 key.type[Group1]="FOUR_LEVEL_X" ;
274 key <KPDV> { [ KP_Divide, 0x1002215, 0x10000F7, XF86_Ungrab ] }; // / ∕ ÷ <XF86_Ungrab>
275 key <KPMU> { [ KP_Multiply, 0x10022C5, 0x10000D7, XF86_ClearGrab ] }; // * ⋅ × <XF86_ClearGrab>
276 key <KPSU> { [ KP_Subtract, 0x1002212, 0x1002212, XF86_Prev_VMode ] }; // - − − <XF86_Prev_VMode>
278 key <KPAD> { [ KP_Add, 0x100002B, 0x100002B, XF86_Next_VMode ] }; // + + + <XF86_Next_VMode>
283 // Keypad math area with non-CS operators in first levels
284 // As demanded by users not interested in legacy pre-unicode junk
285 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
287 // ┏━━━━━┱─────┬─────┬─────┐
288 // ┃Num ┃ / ₁ │ * ₂ │ - ₃ │ ₁ <XF86_Ungrab>
289 // ┃Lock⇭┃ ∕ ÷ │ . × │ − − │ ₂ <XF86_ClearGrab>
290 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
291 // │ + ₄ │ ₄ <XF86_Next_VMode>
295 // │ + + │ 3 Shift+Level3 ⇧⇮
296 // ╆━━━━━┪ 4 Ctrl+Alt
298 xkb_symbols "futuremath" {
300 key.type[Group1]="FOUR_LEVEL_X" ;
302 key <KPDV> { [ 0x1002215, KP_Divide, 0x10000F7, XF86_Ungrab ] }; // ∕ / ÷ <XF86_Ungrab>
303 key <KPMU> { [ 0x10022C5, KP_Multiply, 0x10000D7, XF86_ClearGrab ] }; // ⋅ * × <XF86_ClearGrab>
304 key <KPSU> { [ 0x1002212, KP_Subtract, 0x1002212, XF86_Prev_VMode ] }; // − - − <XF86_Prev_VMode>
306 key <KPAD> { [ 0x100002B, KP_Add, 0x100002B, XF86_Next_VMode ] }; // + + + <XF86_Next_VMode>
310 // Keypad math area with non-CS operators, restricted to latin9
311 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
313 // ┏━━━━━┱─────┬─────┬─────┐
314 // ┃Num ┃ / ₁ │ · ₂ │ - ₃ │ ₁ <XF86_Ungrab>
315 // ┃Lock⇭┃ / ÷ │ * × │ - - │ ₂ <XF86_ClearGrab>
316 // ┡━━━━━╃─────┼─────┼─────┤ ₃ <XF86_Prev_VMode>
317 // │ + ₄ │ ₄ <XF86_Next_VMode>
321 // │ + + │ 3 Shift+Level3 ⇧⇮
322 // ╆━━━━━┪ 4 Ctrl+Alt
324 xkb_symbols "ossmath_latin9" {
326 key.type[Group1]="FOUR_LEVEL_X";
328 key <KPDV> { [ KP_Divide, slash, division, XF86_Ungrab ] }; // / / ÷ <XF86_Ungrab>
329 key <KPMU> { [ KP_Multiply, periodcentered, multiply, XF86_ClearGrab ] }; // * · × <XF86_ClearGrab>
330 key <KPSU> { [ KP_Subtract, minus, minus, XF86_Prev_VMode ] }; // - - - <XF86_Prev_VMode>
332 key <KPAD> { [ KP_Add, plus, plus, XF86_Next_VMode ] }; // + + + <XF86_Next_VMode>
336 // Legacy keypad number area
337 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
342 // ┡━━━━━╃─────┼─────┼ ⇟ Page down
343 // │ 7 │ 8 │ 9 │ ⇞ Page up
344 // │ ⇱ │ ⇧ │ ⇞ │ ⎀ Insert
345 // ├─────┼─────┼─────┤ ␥ Delete
346 // │ 4 │ 5 │ 6 │ ⇦⇧⇨⇩ Directions
348 // ├─────┼─────┼─────╆
350 // │ ⇲ │ ⇩ │ ⇟ ┃ 1 None
351 // ├─────┴─────┼─────┨ 2 Num Lock ⇭
356 xkb_symbols "legacynumber" {
358 key.type[Group1]="KEYPAD" ;
360 key <KP7> { [ KP_Home, KP_7 ] }; // <home> 7
361 key <KP8> { [ KP_Up, KP_8 ] }; // <up> 8
362 key <KP9> { [ KP_Prior, KP_9 ] }; // <prior> 9
364 key <KP4> { [ KP_Left, KP_4 ] }; // <left> 4
365 key <KP5> { [ KP_Begin, KP_5 ] }; // <begin> 5
366 key <KP6> { [ KP_Right, KP_6 ] }; // <right> 6
368 key <KP1> { [ KP_End, KP_1 ] }; // <end> 1
369 key <KP2> { [ KP_Down, KP_2 ] }; // <down> 2
370 key <KP3> { [ KP_Next, KP_3 ] }; // <next> 3
372 key <KP0> { [ KP_Insert, KP_0 ] }; // <insert> 0
376 // Legacy Wang 725-3771-ae and 725-3771-uk keypad number area
377 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
378 // This is actually a three-level keypad, declared as four-level
379 // to avoid defining a new type
384 // ┡━━━━━╃─────┼─────┼ ⇟ Page down
385 // │ 7 │ 8 │ 9 │ ⇞ Page up
386 // │ ⇱ < │ ⇧ > │ ⇞ ^ │ ⎀ Insert
387 // ├─────┼─────┼─────┤ ␥ Delete
388 // │ 4 │ 5 │ 6 │ ⇦⇧⇨⇩ Directions
390 // ├─────┼─────┼─────╆
392 // │ ⇲ & │ ⇩ @ │ ⇟ # ┃ 1 None
393 // ├─────┴─────┼─────┨ 2 Num Lock ⇭
398 xkb_symbols "legacynumber_wang" {
400 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
402 key <KP7> { [ KP_Home, KP_7, less ] }; // <home> 7 <
403 key <KP8> { [ KP_Up, KP_8, greater ] }; // <up> 8 >
404 key <KP9> { [ KP_Prior, KP_9, asciicircum ] }; // <prior> 9 ^
406 key <KP4> { [ KP_Left, KP_4, bracketleft ] }; // <left> 4 [
407 key <KP5> { [ KP_Begin, KP_5, bracketright ] }; // <begin> 5 ]
408 key <KP6> { [ KP_Right, KP_6, dollar ] }; // <right> 6 $
410 key <KP1> { [ KP_End, KP_1, ampersand ] }; // <end> 1 &
411 key <KP2> { [ KP_Down, KP_2, at ] }; // <down> 2 @
412 key <KP3> { [ KP_Next, KP_3, numbersign ] }; // <next> 3 #
414 key <KP0> { [ KP_Insert, KP_0, apostrophe ] }; // <insert> 0 '
418 // Keypad number area with arrow symbols
419 // Copyright © 2006 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
424 // ┡━━━━━╃─────┼─────┼ ⇟ Page down
425 // │ 7 ⇖ │ 8 ⇑ │ 9 ⇗ │ ⇞ Page up
426 // │ ⇱ ↖ │ ⇧ ↑ │ ⇞ ↗ │ ⎀ Insert
427 // ├─────┼─────┼─────┤ ␥ Delete
428 // │ 4 ⇐ │ 5 ⇔ │ 6 ⇗ │ ⇦⇧⇨⇩ Directions
429 // │ ⇦ ← │ ↔ │ ⇨ ↗ │ ⍽ narrow no-break space
430 // ├─────┼─────┼─────╆
431 // │ 1 ⇙ │ 2 ⇓ │ 3 ⇘ ┃
432 // │ ⇲ ↙ │ ⇩ ↓ │ ⇟ ↘ ┃ 1 None
433 // ├─────┴─────┼─────┨ 2 Num Lock ⇭
434 // │ 0 ⇕ │ 3 Level3 ⇮
435 // │ ⎀ ↕ │ 4 Shift+Level3 ⇧⇮
438 xkb_symbols "ossnumber" {
440 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
442 key <KP7> { [ KP_Home, KP_7, 0x1002196, 0x10021D6 ] }; // <home> 7 ↖ ⇖
443 key <KP8> { [ KP_Up, KP_8, 0x1002191, 0x10021D1 ] }; // <up> 8 ↑ ⇑
444 key <KP9> { [ KP_Prior, KP_9, 0x1002197, 0x10021D7 ] }; // <prior> 9 ↗ ⇗
446 key <KP4> { [ KP_Left, KP_4, 0x1002190, 0x10021D0 ] }; // <left> 4 ← ⇐
447 key <KP5> { [ KP_Begin, KP_5, 0x1002194, 0x10021D4 ] }; // <begin> 5 ↔ ⇔
448 key <KP6> { [ KP_Right, KP_6, 0x1002192, 0x10021D2 ] }; // <right> 6 → ⇒
450 key <KP1> { [ KP_End, KP_1, 0x1002199, 0x10021D9 ] }; // <end> 1 ↙ ⇙
451 key <KP2> { [ KP_Down, KP_2, 0x1002193, 0x10021D3 ] }; // <down> 2 ↓ ⇓
452 key <KP3> { [ KP_Next, KP_3, 0x1002198, 0x10021D8 ] }; // <next> 3 ↘ ⇘
454 key <KP0> { [ KP_Insert, KP_0, 0x1002195, 0x10021D5 ] }; // <insert> 0 ↕ ⇕
458 // Wang 725-3771-ae and 725-3771-uk keypad number area with additional arrow symbols
459 // Copyright © 2007 Nicolas Mailhot <nicolas.mailhot @ laposte.net>
464 // ┡━━━━━╃─────┼─────┼ ⇟ Page down
465 // │ 7 ↖ │ 8 ↑ │ 9 ↗ │ ⇞ Page up
466 // │ ⇱ < │ ⇧ > │ ⇞ ^ │ ⎀ Insert
467 // ├─────┼─────┼─────┤ ␥ Delete
468 // │ 4 ← │ 5 ↔ │ 6 → │ ⇦⇧⇨⇩ Directions
469 // │ ⇦ [ │ ] │ ⇨ $ │ ⍽ narrow no-break space
470 // ├─────┼─────┼─────╆
471 // │ 1 ↙ │ 2 ↓ │ 3 ↘ ┃
472 // │ ⇲ & │ ⇩ @ │ ⇟ # ┃ 1 None
473 // ├─────┴─────┼─────┨ 2 Num Lock ⇭
474 // │ 0 ↕ │ 3 Level3 ⇮
475 // │ ⎀ ' │ 4 Shift+Level3 ⇧⇮
478 xkb_symbols "ossnumber_wang" {
480 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
482 key <KP7> { [ KP_Home, KP_7, less, 0x1002196 ] }; // <home> 7 < ↖
483 key <KP8> { [ KP_Up, KP_8, greater, 0x1002191 ] }; // <up> 8 > ↑
484 key <KP9> { [ KP_Prior, KP_9, asciicircum, 0x1002197 ] }; // <prior> 9 ^ ↗
486 key <KP4> { [ KP_Left, KP_4, bracketleft, 0x1002190 ] }; // <left> 4 [ ←
487 key <KP5> { [ KP_Begin, KP_5, bracketright, 0x1002194 ] }; // <begin> 5 ] ↔
488 key <KP6> { [ KP_Right, KP_6, dollar, 0x1002192 ] }; // <right> 6 $ →
490 key <KP1> { [ KP_End, KP_1, ampersand, 0x1002199 ] }; // <end> 1 & ↙
491 key <KP2> { [ KP_Down, KP_2, at, 0x1002193 ] }; // <down> 2 @ ↓
492 key <KP3> { [ KP_Next, KP_3, numbersign, 0x1002198 ] }; // <next> 3 # ↘
494 key <KP0> { [ KP_Insert, KP_0, apostrophe, 0x1002195 ] }; // <insert> 0 ' ↕
497 // ATM/phone-style hexadecimal numpad
498 // by Roland Kaufmann <rlndkfmn at gmail dot com>
500 // Main numbers follows the traditions from ATMs and phones with
501 // numbers increasing downwards to the right. (It is easier to
502 // change the keyboard layout than to reprogram your local ATM;
503 // also cell-phones are becoming more common while calculators are
504 // becoming more rare).
505 // Third-level gives the letters used in hexadecimal numbers, or
506 // columns in small spreadsheets. Equal is added to start formulas
507 // (most numpads don't have their own equal key), comma as a list
508 // separator and colon to enter times and ranges.
510 xkb_symbols "phone_hex" {
512 include "keypad(core)"
514 key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
516 // None NumLock AltGr
518 key <KPDV> { [ KP_Divide, slash, parenleft ] };
519 key <KPMU> { [ KP_Multiply, asterisk, parenright ] };
520 key <KPSU> { [ KP_Subtract, minus, dollar ] };
523 key <KP7> { [ KP_Home, KP_1, A ] };
524 key <KP8> { [ KP_Up, KP_2, B ] };
525 key <KP9> { [ KP_Prior, KP_3, C ] };
528 key <KP4> { [ KP_Left, KP_4, D ] };
529 key <KP5> { [ KP_Begin, KP_5, E ] };
530 key <KP6> { [ KP_Right, KP_6, F ] };
531 key <KPAD> { [ KP_Add, plus, comma ] };
534 key <KP1> { [ KP_End, KP_7, equal ] };
535 key <KP2> { [ KP_Down, KP_8, x ] };
536 key <KP3> { [ KP_Next, KP_9, colon ] };
539 key <KP0> { [ KP_Insert, KP_0, backslash ] };