1// Common Latin alphabet layout 2 3default partial 4xkb_symbols "basic" { 5 6 key <AE01> { [ 1, exclam, onesuperior, exclamdown ] }; 7 key <AE02> { [ 2, at, twosuperior, oneeighth ] }; 8 key <AE03> { [ 3, numbersign, threesuperior, sterling ] }; 9 key <AE04> { [ 4, dollar, onequarter, dollar ] }; 10 key <AE05> { [ 5, percent, onehalf, threeeighths ] }; 11 key <AE06> { [ 6, asciicircum, threequarters, fiveeighths ] }; 12 key <AE07> { [ 7, ampersand, braceleft, seveneighths ] }; 13 key <AE08> { [ 8, asterisk, bracketleft, trademark ] }; 14 key <AE09> { [ 9, parenleft, bracketright, plusminus ] }; 15 key <AE10> { [ 0, parenright, braceright, degree ] }; 16 key <AE11> { [ minus, underscore, backslash, questiondown ] }; 17 key <AE12> { [ equal, plus, dead_cedilla, dead_ogonek ] }; 18 19 key <AD01> { [ q, Q, at, Greek_OMEGA ] }; 20 key <AD02> { [ w, W, lstroke, Lstroke ] }; 21 key <AD03> { [ e, E, e, E ] }; 22 key <AD04> { [ r, R, paragraph, registered ] }; 23 key <AD05> { [ t, T, tslash, Tslash ] }; 24 key <AD06> { [ y, Y, leftarrow, yen ] }; 25 key <AD07> { [ u, U, downarrow, uparrow ] }; 26 key <AD08> { [ i, I, rightarrow, idotless ] }; 27 key <AD09> { [ o, O, oslash, Ooblique ] }; 28 key <AD10> { [ p, P, thorn, THORN ] }; 29 key <AD11> { [bracketleft, braceleft, dead_diaeresis, dead_abovering ] }; 30 key <AD12> { [bracketright, braceright, dead_tilde, dead_macron ] }; 31 32 key <AC01> { [ a, A, ae, AE ] }; 33 key <AC02> { [ s, S, ssharp, section ] }; 34 key <AC03> { [ d, D, eth, ETH ] }; 35 key <AC04> { [ f, F, dstroke, ordfeminine ] }; 36 key <AC05> { [ g, G, eng, ENG ] }; 37 key <AC06> { [ h, H, hstroke, Hstroke ] }; 38 key <AC07> { [ j, J, dead_hook, dead_horn ] }; 39 key <AC08> { [ k, K, kra, ampersand ] }; 40 key <AC09> { [ l, L, lstroke, Lstroke ] }; 41 key <AC10> { [ semicolon, colon, dead_acute, dead_doubleacute ] }; 42 key <AC11> { [apostrophe, quotedbl, dead_circumflex, dead_caron ] }; 43 key <TLDE> { [ grave, asciitilde, notsign, notsign ] }; 44 45 key <BKSL> { [ backslash, bar, dead_grave, dead_breve ] }; 46 key <AB01> { [ z, Z, guillemotleft, less ] }; 47 key <AB02> { [ x, X, guillemotright, greater ] }; 48 key <AB03> { [ c, C, cent, copyright ] }; 49 key <AB04> { [ v, V, leftdoublequotemark, leftsinglequotemark ] }; 50 key <AB05> { [ b, B, rightdoublequotemark, rightsinglequotemark ] }; 51 key <AB06> { [ n, N, n, N ] }; 52 key <AB07> { [ m, M, mu, masculine ] }; 53 key <AB08> { [ comma, less, horizconnector, multiply ] }; 54 key <AB09> { [ period, greater, periodcentered, division ] }; 55 key <AB10> { [ slash, question, dead_belowdot, dead_abovedot ] }; 56 57}; 58 59// Northern Europe ( Danish, Finnish, Norwegian, Swedish) common layout 60 61partial 62xkb_symbols "type2" { 63 64 include "latin" 65 66 key <AE01> { [ 1, exclam, exclamdown, onesuperior ] }; 67 key <AE02> { [ 2, quotedbl, at, twosuperior ] }; 68 key <AE03> { [ 3, numbersign, sterling, threesuperior] }; 69 key <AE04> { [ 4, currency, dollar, onequarter ] }; 70 key <AE05> { [ 5, percent, onehalf, cent ] }; 71 key <AE06> { [ 6, ampersand, yen, fiveeighths ] }; 72 key <AE07> { [ 7, slash, braceleft, division ] }; 73 key <AE08> { [ 8, parenleft, bracketleft, guillemotleft] }; 74 key <AE09> { [ 9, parenright, bracketright, guillemotright] }; 75 key <AE10> { [ 0, equal, braceright, degree ] }; 76 77 key <AD03> { [ e, E, EuroSign, cent ] }; 78 key <AD04> { [ r, R, registered, registered ] }; 79 key <AD05> { [ t, T, thorn, THORN ] }; 80 key <AD09> { [ o, O, oe, OE ] }; 81 key <AD11> { [ aring, Aring, dead_diaeresis, dead_abovering ] }; 82 key <AD12> { [dead_diaeresis, dead_circumflex, dead_tilde, dead_caron ] }; 83 84 key <AC01> { [ a, A, ordfeminine, masculine ] }; 85 86 key <AB03> { [ c, C, copyright, copyright ] }; 87 key <AB08> { [ comma, semicolon, dead_cedilla, dead_ogonek ] }; 88 key <AB09> { [ period, colon, periodcentered, dead_abovedot ] }; 89 key <AB10> { [ minus, underscore, dead_belowdot, dead_abovedot ] }; 90}; 91 92// Slavic Latin ( Albanian, Croatian, Polish, Slovene, Yugoslav) 93// common layout 94 95partial 96xkb_symbols "type3" { 97 98 include "latin" 99 100 key <AD01> { [ q, Q, backslash, Greek_OMEGA ] }; 101 key <AD02> { [ w, W, bar, Lstroke ] }; 102 key <AD06> { [ z, Z, leftarrow, yen ] }; 103 104 key <AC04> { [ f, F, bracketleft, ordfeminine ] }; 105 key <AC05> { [ g, G, bracketright, ENG ] }; 106 key <AC08> { [ k, K, lstroke, ampersand ] }; 107 108 key <AB01> { [ y, Y, guillemotleft, less ] }; 109 key <AB04> { [ v, V, at, grave ] }; 110 key <AB05> { [ b, B, braceleft, apostrophe ] }; 111 key <AB06> { [ n, N, braceright, braceright ] }; 112 key <AB07> { [ m, M, section, masculine ] }; 113 key <AB08> { [ comma, semicolon, less, multiply ] }; 114 key <AB09> { [ period, colon, greater, division ] }; 115}; 116 117// Another common Latin layout 118// (German, Estonian, Spanish, Icelandic, Italian, Latin American, Portuguese) 119 120partial 121xkb_symbols "type4" { 122 123 include "latin" 124 125 key <AE02> { [ 2, quotedbl, at, oneeighth ] }; 126 key <AE06> { [ 6, ampersand, notsign, fiveeighths ] }; 127 key <AE07> { [ 7, slash, braceleft, seveneighths ] }; 128 key <AE08> { [ 8, parenleft, bracketleft, trademark ] }; 129 key <AE09> { [ 9, parenright, bracketright, plusminus ] }; 130 key <AE10> { [ 0, equal, braceright, degree ] }; 131 132 key <AD03> { [ e, E, EuroSign, cent ] }; 133 134 key <AB08> { [ comma, semicolon, horizconnector, multiply ] }; 135 key <AB09> { [ period, colon, periodcentered, division ] }; 136 key <AB10> { [ minus, underscore, dead_belowdot, dead_abovedot ] }; 137}; 138 139partial 140xkb_symbols "nodeadkeys" { 141 142 key <AE12> { [ equal, plus, cedilla, ogonek ] }; 143 key <AD11> { [bracketleft, braceleft, diaeresis, degree ] }; 144 key <AD12> { [bracketright, braceright, asciitilde, macron ] }; 145 key <AC10> { [ semicolon, colon, acute, doubleacute ] }; 146 key <AC11> { [apostrophe, quotedbl, asciicircum, caron ] }; 147 key <BKSL> { [ backslash, bar, grave, breve ] }; 148 key <AB10> { [ slash, question, dead_belowdot, abovedot ] }; 149}; 150 151partial 152xkb_symbols "type2_nodeadkeys" { 153 154 include "latin(nodeadkeys)" 155 156 key <AD11> { [ aring, Aring, diaeresis, degree ] }; 157 key <AD12> { [ diaeresis, asciicircum, asciitilde, caron ] }; 158 key <AB08> { [ comma, semicolon, cedilla, ogonek ] }; 159 key <AB09> { [ period, colon, periodcentered, abovedot ] }; 160 key <AB10> { [ minus, underscore, dead_belowdot, abovedot ] }; 161}; 162 163partial 164xkb_symbols "type3_nodeadkeys" { 165 166 include "latin(nodeadkeys)" 167}; 168 169partial 170xkb_symbols "type4_nodeadkeys" { 171 172 include "latin(nodeadkeys)" 173 174 key <AB10> { [ minus, underscore, dead_belowdot, abovedot ] }; 175}; 176 177// Added 2008.03.05 by Marcin Woliński 178// See http://marcinwolinski.pl/keyboard/ for a description. 179// Used by pl(intl) 180// 181// ┌─────┐ 182// │ 2 4 │ 2 = Shift, 4 = Level3 + Shift 183// │ 1 3 │ 1 = Normal, 3 = Level3 184// └─────┘ 185// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓ 186// │ ~ ~ │ ! ' │ @ " │ # ˝ │ $ ¸ │ % ˇ │ ^ ^ │ & ˘ │ * ̇ │ ( ̣ │ ) ° │ _ ¯ │ + ˛ ┃ ⌫ Back- ┃ 187// │ ` ` │ 1 ¡ │ 2 © │ 3 • │ 4 § │ 5 € │ 6 ¢ │ 7 − │ 8 × │ 9 ÷ │ 0 ° │ - – │ = — ┃ space ┃ 188// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫ 189// ┃ ┃ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │ { « │ } » ┃ Enter ┃ 190// ┃Tab ↹ ┃ q │ w │ e │ r │ t │ y │ u │ i │ o │ p │ [ ‹ │ ] › ┃ ⏎ ┃ 191// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓ ┃ 192// ┃ ┃ A │ S │ D │ F │ G │ H │ J │ K │ L │ : “ │ " ” │ | ¶ ┃ ┃ 193// ┃Caps ⇬ ┃ a │ s │ d │ f │ g │ h │ j │ k │ l │ ; ‘ │ ' ’ │ \ ┃ ┃ 194// ┣━━━━━━━━┹────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┬┴────┲┷━━━━━┻━━━━━━┫ 195// ┃ │ Z │ X │ C │ V │ B │ N │ M │ < „ │ > · │ ? ¿ ┃ ┃ 196// ┃Shift ⇧ │ z │ x │ c │ v │ b │ n │ m │ , ‚ │ . … │ / ⁄ ┃Shift ⇧ ┃ 197// ┣━━━━━━━┳━━━━━┷━┳━━━┷━━━┱─┴─────┴─────┴─────┴─────┴─────┴───┲━┷━━━━━╈━━━━━┻━┳━━━━━━━┳━━━┛ 198// ┃ ┃ ┃ ┃ ␣ ⍽ ┃ ┃ ┃ ┃ 199// ┃Ctrl ┃Meta ┃Alt ┃ ␣ Space ⍽ ┃AltGr ⇮┃Menu ┃Ctrl ┃ 200// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━━┻━━━━━━━┻━━━━━━━┛ 201 202partial 203xkb_symbols "intl" { 204 205 key <TLDE> { [ grave, asciitilde, dead_grave, dead_tilde ] }; 206 key <AE01> { [ 1, exclam, exclamdown, dead_acute ] }; 207 key <AE02> { [ 2, at, copyright, dead_diaeresis ] }; 208 key <AE03> { [ 3, numbersign, U2022, dead_doubleacute ] }; // U+2022 is bullet (the name bullet does not work) 209 key <AE04> { [ 4, dollar, section, dead_cedilla ] }; 210 key <AE05> { [ 5, percent, EuroSign, dead_caron ] }; 211 key <AE06> { [ 6, asciicircum, cent, dead_circumflex ] }; 212 key <AE07> { [ 7, ampersand, U2212, dead_breve ] }; // U+2212 is MINUS SIGN 213 key <AE08> { [ 8, asterisk, multiply, dead_abovedot ] }; 214 key <AE09> { [ 9, parenleft, division, dead_belowdot ] }; 215 key <AE10> { [ 0, parenright, degree, dead_abovering ] }; 216 key <AE11> { [ minus, underscore, endash, dead_macron ] }; 217 key <AE12> { [ equal, plus, emdash, dead_ogonek ] }; 218 219 key <AD01> { [ q, Q ] }; 220 key <AD02> { [ w, W ] }; 221 key <AD03> { [ e, E ] }; 222 key <AD04> { [ r, R ] }; 223 key <AD05> { [ t, T ] }; 224 key <AD06> { [ y, Y ] }; 225 key <AD07> { [ u, U ] }; 226 key <AD08> { [ i, I ] }; 227 key <AD09> { [ o, O ] }; 228 key <AD10> { [ p, P ] }; 229 key <AD11> { [bracketleft, braceleft, U2039, guillemotleft ] }; 230 key <AD12> { [bracketright, braceright, U203A, guillemotright ] }; 231 232 key <AC01> { [ a, A ] }; 233 key <AC02> { [ s, S ] }; 234 key <AC03> { [ d, D ] }; 235 key <AC04> { [ f, F ] }; 236 key <AC05> { [ g, G ] }; 237 key <AC06> { [ h, H ] }; 238 key <AC07> { [ j, J ] }; 239 key <AC08> { [ k, K ] }; 240 key <AC09> { [ l, L ] }; 241 key <AC10> { [ semicolon, colon, leftsinglequotemark, leftdoublequotemark ] }; 242 key <AC11> { [apostrophe, quotedbl, rightsinglequotemark, rightdoublequotemark ] }; 243 244 key <BKSL> { [ backslash, bar, NoSymbol, paragraph ] }; 245 key <AB01> { [ z, Z ] }; 246 key <AB02> { [ x, X ] }; 247 key <AB03> { [ c, C ] }; 248 key <AB04> { [ v, V ] }; 249 key <AB05> { [ b, B ] }; 250 key <AB06> { [ n, N ] }; 251 key <AB07> { [ m, M ] }; 252 key <AB08> { [ comma, less, singlelowquotemark, doublelowquotemark ] }; 253 key <AB09> { [ period, greater, ellipsis, periodcentered ] }; 254 key <AB10> { [ slash, question, U2044, questiondown ] }; // U+2044 is FRACTION SLASH 255 256}; 257