1// symbols definition for a Macintosh "Extended" keyboard 2 3default xkb_symbols "extended" { 4 5 name[Group1]= "USA"; 6 key <ESC> { [ Escape ] }; 7 8 key <TLDE> { [ grave, asciitilde ] }; 9 key <AE01> { [ 1, exclam ] }; 10 key <AE02> { [ 2, at ] }; 11 key <AE03> { [ 3, numbersign ] }; 12 key <AE04> { [ 4, dollar ] }; 13 key <AE05> { [ 5, percent ] }; 14 key <AE06> { [ 6, asciicircum ] }; 15 key <AE07> { [ 7, ampersand ] }; 16 key <AE08> { [ 8, asterisk ] }; 17 key <AE09> { [ 9, parenleft ] }; 18 key <AE10> { [ 0, parenright ] }; 19 key <AE11> { [ minus, underscore ] }; 20 key <AE12> { [ equal, plus ] }; 21 22 key <AD01> { [ q, Q ] }; 23 key <AD02> { [ w, W ] }; 24 key <AD03> { [ e, E ] }; 25 key <AD04> { [ r, R ] }; 26 key <AD05> { [ t, T ] }; 27 key <AD06> { [ y, Y ] }; 28 key <AD07> { [ u, U ] }; 29 key <AD08> { [ i, I ] }; 30 key <AD09> { [ o, O ] }; 31 key <AD10> { [ p, P ] }; 32 key <AD11> { [ bracketleft, braceleft ] }; 33 key <AD12> { [ bracketright, braceright ] }; 34 key <BKSL> { [ backslash, bar ] }; 35 36 key <AC01> { [ a, A ] }; 37 key <AC02> { [ s, S ] }; 38 key <AC03> { [ d, D ] }; 39 key <AC04> { [ f, F ] }; 40 key <AC05> { [ g, G ] }; 41 key <AC06> { [ h, H ] }; 42 key <AC07> { [ j, J ] }; 43 key <AC08> { [ k, K ] }; 44 key <AC09> { [ l, L ] }; 45 key <AC10> { [ semicolon, colon ] }; 46 key <AC11> { [ apostrophe, quotedbl ] }; 47 48 key <AB01> { [ z, Z ] }; 49 key <AB02> { [ x, X ] }; 50 key <AB03> { [ c, C ] }; 51 key <AB04> { [ v, V ] }; 52 key <AB05> { [ b, B ] }; 53 key <AB06> { [ n, N ] }; 54 key <AB07> { [ m, M ] }; 55 key <AB08> { [ comma, less ] }; 56 key <AB09> { [ period, greater ] }; 57 key <AB10> { [ slash, question ] }; 58 59 key <SPCE> { [ space ] }; 60 61 include "eurosign(e)" 62 include "keypad(overlay)" 63 64 key <KPEQ> { [ equal ] }; 65}; 66 67hidden 68xkb_symbols "oldmac" { 69 70 include "macintosh_vndr/us(extended)" 71 72 // Begin "Function" section 73 key <FK01> { [ F1 ] }; 74 key <FK02> { [ F2 ] }; 75 key <FK03> { [ F3 ] }; 76 key <FK04> { [ F4 ] }; 77 key <FK05> { [ F5 ] }; 78 key <FK06> { [ F6 ] }; 79 key <FK07> { [ F7 ] }; 80 key <FK08> { [ F8 ] }; 81 key <FK09> { [ F9 ] }; 82 key <FK10> { [ F10 ] }; 83 key <FK11> { [ F11 ] }; 84 key <FK12> { [ F12 ] }; 85 key <FK13> { [ Print ] }; 86 key <FK14> { [ Scroll_Lock ] }; 87 key <FK15> { [ Pause ] }; 88 // End "Function" section 89 90 // Begin "Editing" section 91 key <INS> { [ Insert ] }; 92 key <HOME> { [ Home ] }; 93 key <PGUP> { [ Prior ] }; 94 key <DELE> { [ Delete ] }; 95 key <END> { [ End ] }; 96 key <PGDN> { [ Next ] }; 97 98 key <UP> { [ Up ] }; 99 key <LEFT> { [ Left ] }; 100 key <DOWN> { [ Down ] }; 101 key <RGHT> { [ Right ] }; 102 // End "Editing" section 103 104 key <BKSP> { [ BackSpace ] }; 105 key <TAB> { [ Tab, ISO_Left_Tab ] }; 106 key <RTRN> { [ Return ] }; 107 key <CAPS> { [ Caps_Lock ] }; 108 key <NMLK> { [ Num_Lock, Pointer_EnableKeys ] }; 109 110 // Begin "Modifier" section 111 key <LFSH> { [ Shift_L ] }; 112 key <RTSH> { [ Shift_R ] }; 113 key <LCTL> { [ Control_L ] }; 114 key <RCTL> { [ Control_R ] }; 115 key <LALT> { [ Alt_L, Meta_L ] }; 116 key <RALT> { [ Alt_R, Meta_R ] }; 117 key <LWIN> { [ Super_L ] }; 118 key <RWIN> { [ Super_R ] }; 119 // End "Modifier" section 120 121 // begin modifier mappings 122 modifier_map Shift { Shift_L, Shift_R }; 123 modifier_map Lock { Caps_Lock }; 124 modifier_map Control{ Control_L, Control_R }; 125 modifier_map Mod2 { Num_Lock }; 126 127 // Fake keys for virtual<->real modifiers mapping 128 key <LVL3> { [ ISO_Level3_Shift ] }; 129 key <MDSW> { [ Mode_switch ] }; 130 modifier_map Mod5 { <LVL3>, <MDSW> }; 131 132 key <ALT> { [ NoSymbol, Alt_L ] }; 133 modifier_map Mod1 { <ALT>, <LALT> }; 134 135 key <META> { [ NoSymbol, Meta_L ] }; 136 modifier_map Mod1 { <META> }; 137 138 key <SUPR> { [ NoSymbol, Super_L ] }; 139 modifier_map Mod4 { <SUPR> }; 140 141 key <HYPR> { [ NoSymbol, Hyper_L ] }; 142 modifier_map Mod4 { <HYPR> }; 143 // end modifier mappings 144 145}; 146