diff options
Diffstat (limited to 'test/data/symbols/us')
-rw-r--r-- | test/data/symbols/us | 335 |
1 files changed, 277 insertions, 58 deletions
diff --git a/test/data/symbols/us b/test/data/symbols/us index 9cc056d..b876978 100644 --- a/test/data/symbols/us +++ b/test/data/symbols/us @@ -1,4 +1,4 @@ -default partial alphanumeric_keys modifier_keys +default partial alphanumeric_keys modifier_keys xkb_symbols "basic" { name[Group1]= "English (US)"; @@ -361,7 +361,7 @@ xkb_symbols "dvorak-alt-intl" { key <AC03> { [ e, E, eacute ] }; key <AC04> { [ u, U, ucircumflex ] }; key <AC05> { [ i, I, icircumflex ] }; - key <AC10> { [ s, S, ssharp ] }; + key <AC10> { [ s, S, ssharp, U1E9E ] }; key <AB01> { [ semicolon, colon, acircumflex ] }; key <AB02> { [ q, Q, odiaeresis, dead_ogonek ] }; @@ -488,8 +488,8 @@ xkb_symbols "dvorak-r" { }; // Classic dvorak layout -// by Piter Punk <piterpk@terra.com.br> - 2006-07-06 -// Based on dvorak layout and e-mail from Russel L. Harris rlharris@oplink.net +// by Piter Punk <piterpk@terra.com.br> - 2006-07-06 +// Based on dvorak layout and e-mail from Russel L. Harris rlharris@oplink.net // on xorg list. partial alphanumeric_keys xkb_symbols "dvorak-classic" { @@ -604,7 +604,7 @@ xkb_symbols "dvp" { key <AC07> { [ h, H, dead_acute ] }; key <AC08> { [ t, T, thorn, THORN ] }; key <AC09> { [ n, N, ntilde, Ntilde ] }; - key <AC10> { [ s, S, ssharp ] }; + key <AC10> { [ s, S, ssharp, U1E9E ] }; key <AC11> { [ minus, underscore, hyphen, endash ], type[Group1] = "FOUR_LEVEL_ALPHABETIC" }; key <BKSL> { [ backslash, bar ] }; @@ -774,7 +774,7 @@ xkb_symbols "colemak" { key <AC01> { [ a, A, aacute, Aacute ] }; key <AC02> { [ r, R, dead_grave, asciitilde ] }; - key <AC03> { [ s, S, ssharp, asciitilde ] }; + key <AC03> { [ s, S, ssharp, 0x1001e9e ] }; key <AC04> { [ t, T, dead_acute, dead_doubleacute ] }; key <AC05> { [ d, D, dead_diaeresis, asciitilde ] }; key <AC06> { [ h, H, dead_caron, asciitilde ] }; @@ -878,7 +878,7 @@ xkb_symbols "classmate-intl" { key <LSGT> { [ backslash, bar, backslash, bar ] }; - key <KP7> { [ KP_Home, KP_7, + key <KP7> { [ KP_Home, KP_7, onehalf, dead_horn ] }; key <KP8> { [ KP_Up, KP_8, threequarters, dead_ogonek ] }; @@ -957,7 +957,7 @@ xkb_symbols "classmate-altgr-intl" { key <LSGT> { [ backslash, bar, backslash, bar ] }; - key <KP7> { [ KP_Home, KP_7, + key <KP7> { [ KP_Home, KP_7, dead_horn, dead_horn ] }; key <KP8> { [ KP_Up, KP_8, dead_ogonek, dead_ogonek ] }; @@ -1032,7 +1032,7 @@ xkb_symbols "olpc" { key <AD12> { [bracketright, braceright, 0x1000330, 0x1000330 ] }; // combining tilde below key <AC01> { [ a, A, ae, AE ] }; - key <AC02> { [ s, S, ssharp, 0x1001E9C ] }; // uppercase S sharp + key <AC02> { [ s, S, ssharp, 0x1001E9E ] }; // uppercase S sharp key <AC03> { [ d, D, eth, ETH ] }; key <AC04> { [ f, F, thorn, THORN ] }; key <AC06> { [ h, H, sterling, sterling ] }; @@ -1056,7 +1056,7 @@ xkb_symbols "olpc" { partial alphanumeric_keys xkb_symbols "olpc2" { include "us(olpc)" - name[Group1]= "English (the divide/multiply keys toggle the layout)"; + name[Group1]= "English (the divide/multiply toggle the layout)"; include "group(olpc)" }; @@ -1095,7 +1095,7 @@ xkb_symbols "olpcm" { key <AD12> { [bracketright, braceright, 0x1000330, 0x1000330 ] }; // combining tilde below key <AC01> { [ a, A, ae, AE ] }; - key <AC02> { [ s, S, ssharp, 0x1001E9C ] }; // uppercase S sharp + key <AC02> { [ s, S, ssharp, 0x1001E9E ] }; // uppercase S sharp key <AC03> { [ d, D, eth, ETH ] }; key <AC04> { [ f, F, thorn, THORN ] }; key <AC06> { [ h, H, sterling, sterling ] }; @@ -1178,6 +1178,31 @@ xkb_symbols "chr" { key <AB10> { [ U13C2, U13C9 ] }; }; +// Add Hawaiian `okina and kahako to US layout +// Author: Greg Meyer <gregory.meyer@gmail.com>, 2020 +// this mapping follows the one for Windows here: http://www.olelo.hawaii.edu/enehana/winkbd.php +// `okina replaces apostrophe (apostrophe moves to level 3) +// vowels with kahako (macron) are level 3 symbols +partial alphanumeric_keys +xkb_symbols "haw" { + + include "us(basic)" + name[Group1] = "Hawaiian"; + + // `okina replaces single apostrophe + // alt gives the literal apostrophe + key <AC11> {[ U02BB, quotedbl, apostrophe ] }; + + // kahako + key <AC01> {[ a, A, amacron, Amacron ]}; + key <AD03> {[ e, E, emacron, Emacron ]}; + key <AD07> {[ u, U, umacron, Umacron ]}; + key <AD08> {[ i, I, imacron, Imacron ]}; + key <AD09> {[ o, O, omacron, Omacron ]}; + + include "level3(ralt_switch)" +}; + // Serbian charecters added as third level symbols to US keyboard layout. partial alphanumeric_keys @@ -1203,51 +1228,6 @@ xkb_symbols "hbs" { include "level3(ralt_switch)" }; -//based on http://upload.wikimedia.org/wikipedia/commons/1/18/T-Mobile_G1_launch_event_2.jpg -partial alphanumeric_keys -xkb_symbols "htcdream" { - include "inet(htcdream)" - name[Group1]= "English (US)"; - - //second row - key <AD01> { [ q, Q, Tab, Tab ] }; - key <AD02> { [ w, W, grave, grave ] }; - key <AD03> { [ e, E, underscore, underscore ] }; - key <AD04> { [ r, R, sterling, sterling ] }; - key <AD05> { [ t, T, EuroSign, EuroSign ] }; - key <AD06> { [ y, Y, division, division ] }; - key <AD07> { [ u, U, multiply, multiply ] }; - key <AD08> { [ i, I, minus, minus ] }; - key <AD09> { [ o, O, plus, plus ] }; - key <AD10> { [ p, P, equal, equal ] }; - - //third row - key <AC01> { [ a, A, NoSymbol, NoSymbol ] }; - key <AC02> { [ s, S, bar, bar ] }; - key <AC03> { [ d ,D, backslash, backslash ] }; - key <AC04> { [ f, F, braceleft, braceleft ] }; - key <AC05> { [ g, G, braceright, braceright ] }; - key <AC06> { [ h, H, colon, colon ] }; - key <AC07> { [ j, J, semicolon, semicolon ] }; - key <AC08> { [ k, K, quotedbl, quotedbl ] }; - key <AC09> { [ l, L, apostrophe, apostrophe ] }; - - //forth row - key <AB01> { [ z, Z, NoSymbol, NoSymbol ] }; - key <AB02> { [ x, X, NoSymbol, NoSymbol ] }; - key <AB03> { [ c, C, NoSymbol, NoSymbol ] }; - key <AB04> { [ v, V, bracketleft, bracketleft ] }; - key <AB05> { [ b, B, bracketright, bracketright ] }; - key <AB06> { [ n, N, less, less ] }; - key <AB07> { [ m, M, greater, greater ] }; - key <AB08> { [ comma, comma, question, question ] }; - - //fifth row - key <FK15> { [ at, at, asciitilde, asciitilde ] }; - - include "level3(alt_switch)" -}; - // Workman Keyboard Layout symbols for xkb on X.Org Server 7.x // 09-06-2010 OJ Bucao. http://www.workmanlayout.com @@ -1642,6 +1622,24 @@ xkb_symbols "cz_sk_de" { include "level3(ralt_switch)" }; +// 03 December 2017 - Added us(scn), please refer to +// Cadèmia Siciliana <l10n@cademiasiciliana.org> +partial alphanumeric_keys +xkb_symbols "scn" { + + include "us(intl)" + name[Group1]="Sicilian (US keyboard)"; + + key <AD03> { [ e, E, U0259, U018F ] }; + key <AC03> { [ d, D, U1E0D, U1E0C ] }; + key <AC04> { [ f, F, U0111, U0110 ] }; + key <AC06> { [ h, H, U1E25, U1E24 ] }; + key <AB02> { [ x, X, U03C7, U03A7 ] }; + key <AB09> { [ period, greater, U1D58, dead_caron ] }; + + include "level3(ralt_switch)" +}; + // XCompose is out! Unicode combining is in! For those of us who live // on the edge: A keymap using Unicode combining characters instead of // deadkeys. This variation does not deviate from the lame MS-style @@ -1665,7 +1663,7 @@ xkb_symbols "cz_sk_de" { partial alphanumeric_keys xkb_symbols "intl-unicode" { - name[Group1]= "English (US, international AltGr Unicode combining)"; + name[Group1]= "English (US, intl., AltGr Unicode combining)"; include "us(intl)" include "level3(ralt_switch)" @@ -1715,7 +1713,7 @@ xkb_symbols "intl-unicode" { partial alphanumeric_keys xkb_symbols "alt-intl-unicode" { - name[Group1]= "English (US, international AltGr Unicode combining, alternative)"; + name[Group1]= "English (US, intl., AltGr Unicode combining, alt.)"; include "us(intl-unicode)" @@ -1787,3 +1785,224 @@ partial alphanumeric_keys xkb_symbols "sun_type6" { include "sun_vndr/us(sun_type6)" }; + +// Implementation of the 3l keyboard layout +// See https://github.com/jackrosenthal/threelayout for specification +partial alphanumeric_keys modifier_keys +xkb_symbols "3l" { + name[Group1] = "English (3l)"; + + key.type[Group1] = "ONE_LEVEL"; + key <TAB> { [ Escape ] }; + key <CAPS> { [ Tab ] }; + key <AC11> { [ ISO_Level3_Shift ] }; // Sym Modifier + key <AB10> { [ ISO_Level5_Shift ] }; // Cur/Num Modifier + + // Top row numbers - not part of spec, but given for convenience + key <AE01> { [ 1 ] }; + key <AE02> { [ 2 ] }; + key <AE03> { [ 3 ] }; + key <AE04> { [ 4 ] }; + key <AE05> { [ 5 ] }; + key <AE06> { [ 6 ] }; + key <AE07> { [ 7 ] }; + key <AE08> { [ 8 ] }; + key <AE09> { [ 9 ] }; + key <AE10> { [ 0 ] }; + + // Main keys + // Order of mods (defined by EIGHT_LEVEL_SEMIALPHABETIC) is: + // [ None, Shift, Sym, Shift+Sym, Num, Shift+Num, Sym+Num, Shift+Sym+Num ] + key.type[Group1] = "EIGHT_LEVEL_SEMIALPHABETIC"; + + // Second row + key <AD01> { [ q, Q, quotedbl, Greek_omicron, Prior, Prior, U21CD, Greek_OMICRON ] }; + key <AD02> { [ f, F, underscore, Greek_phi, BackSpace, BackSpace, U21A4, Greek_PHI ] }; + key <AD03> { [ u, U, bracketleft, Greek_upsilon, Up, Up, U2191, Greek_UPSILON ] }; + key <AD04> { [ y, Y, bracketright, Greek_psi, Delete, Delete, U21A6, Greek_PSI ] }; + key <AD05> { [ z, Z, asciicircum, Greek_zeta, Next, Next, U21CF, Greek_ZETA ] }; + key <AD06> { [ x, X, exclam, Greek_xi, NoSymbol, NoSymbol, U2260, Greek_XI ] }; + key <AD07> { [ k, K, less, Greek_kappa, 1, A, U2A7D, Greek_KAPPA ] }; + key <AD08> { [ c, C, greater, Greek_chi, 2, B, U2A7E, Greek_CHI ] }; + key <AD09> { [ w, W, equal, Greek_omega, 3, C, U2261, Greek_OMEGA ] }; + key <AD10> { [ b, B, ampersand, Greek_beta, NoSymbol, NoSymbol, U2248, Greek_BETA ] }; + + // Home row + key <AC01> { [ o, O, slash, Greek_omega, Home, Home, U21D0, Greek_OMEGA ] }; + key <AC02> { [ h, H, minus, Greek_theta, Left, Left, U2190, Greek_THETA ] }; + key <AC03> { [ e, E, braceleft, Greek_epsilon, Down, Down, U2193, Greek_EPSILON ] }; + key <AC04> { [ a, A, braceright, Greek_alpha, Right, Right, U2192, Greek_ALPHA ] }; + key <AC05> { [ i, I, asterisk, Greek_iota, End, End, U21D2, Greek_IOTA ] }; + key <AC06> { [ d, D, question, Greek_delta, period, colon, U2286, Greek_DELTA ] }; + key <AC07> { [ r, R, parenleft, Greek_rho, 4, D, U2227, Greek_RHO ] }; + key <AC08> { [ t, T, parenright, Greek_tau, 5, E, U2228, Greek_TAU ] }; + key <AC09> { [ n, N, apostrophe, Greek_eta, 6, F, U2200, Greek_ETA ] }; + key <AC10> { [ s, S, colon, Greek_sigma, NoSymbol, NoSymbol, U2203, Greek_SIGMA ] }; + + // Bottom row + key <AB01> { [ comma, comma, numbersign, NoSymbol, slash, NoSymbol, U21AE, NoSymbol ] }; + key <AB02> { [ m, M, dollar, Greek_mu, asterisk, NoSymbol, U2194, Greek_MU ] }; + key <AB03> { [ period, period, bar, NoSymbol, minus, NoSymbol, U21CE, NoSymbol ] }; + key <AB04> { [ j, J, asciitilde, Greek_SIGMA, plus, NoSymbol, U21D4, NoSymbol ] }; + key <AB05> { [ semicolon, semicolon, grave, NoSymbol, comma, NoSymbol, U2282, NoSymbol ] }; + key <AB06> { [ g, G, plus, Greek_gamma, 0, NoSymbol, U2229, Greek_GAMMA ] }; + key <AB07> { [ l, L, percent, Greek_lambda, 7, parenleft, U222A, Greek_LAMBDA ] }; + key <AB08> { [ p, P, backslash, Greek_pi, 8, parenright, U2208, Greek_PI ] }; + key <AB09> { [ v, V, at, Greek_nu, 9, NoSymbol, U2209, Greek_NU ] }; + + include "level5(modifier_mapping)" +}; + +// Chromebooks typically have the key which is normally in the caps +// lock position mapped to keycode 133 (LWIN). For 3l, it is critical +// that the key in this positon correspond to tab, so there is a +// variant available for chromebook hardware. +partial modifier_keys +xkb_symbols "3l-cros" { + include "us(3l)" + name[Group1] = "English (3l, Chromebook)"; + key <LWIN> { + type[Group1] = "ONE_LEVEL", + symbols[Group1] = [ Tab ] + }; +}; + +// A 3l variant for emacs users, which maps control to caps lock and (re)maps +// tab back to tab. +partial modifier_keys +xkb_symbols "3l-emacs" { + include "us(3l)" + name[Group1] = "English (3l, emacs)"; + + key <TAB> { [ Tab ] }; + key <CAPS> { [ Control_L ] }; + + modifier_map Control { <CAPS> }; +}; + +// Drix EU Latin - version 3.1 (2019-10-07) +// Author: Jerome Leclanche <jerome@leclan.ch> +// Latin layout based on classic US qwerty, with azerty-style second-row m key. +// Features: +// - Programmer-centric punctuation keys (All common symbols on right hand except < and > on left) +// - Most common dead accents on altgr-shift number row +// - Unicode arrows on Altgr+shift+WASD +// - Some commonly used special characters available: +// - Most common european special characters +// - Misc currency symbols, copyright/registered/trademark symbols +// - Common math symbols + some common greek letters +// - Compose key replaces Mod5 +// +// This layout is in the Public Domain. +// +// ┌─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┲━━━━━━━━━┓ +// │ ~ ~ │ " ´ │ ' ` │ ^ ^ │ ` ¨ │ ´ ° │ 6 ¯ │ 7 ¸ │ 8 ˛ │ 9 ˇ │ | ˝ │ _ ± │ = ≠ ┃Backspace┃ +// │ @ £ │ 1 ¹ │ 2 ² │ 3 ³ │ 4 ⁴ │ 5 ⁵ │ 6 ⁶ │ 7 ⁷ │ 8 ⁸ │ 9 ⁹ │ 0 ⁰ │ - " │ + ' ┃ ⌫ ┃ +// ┢━━━━━┷━┱───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┴─┬───┺━┳━━━━━━━┫ +// ┃Tab ┃ Q Ø │ W ↑ │ E € │ R ₽ │ T τ │ Y ¥ │ U U │ I ’ │ O Ω │ P ₱ │ [ « │ ] » ┃ ⏎ ┃ +// ┃ ↹ ┃ q ø │ w w │ e € │ r ® │ t ™ │ y ¥ │ u u │ i ‘ │ o œ │ p π │ ( { │ ) } ┃ Enter ┃ +// ┣━━━━━━━┻┱────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┴┬────┺┓ ┃ +// ┃Caps ┃ A ← │ S ↓ │ D → │ F Ƒ │ G G │ H H │ J ” │ K „ │ L λ │ M M │ % ‰ │ & × ┃ ┃ +// ┃Lock ⇬ ┃ a æ │ s ß │ d Δ │ f ƒ │ g g │ h h │ j “ │ k ‚ │ l £ │ m µ │ # ~ │ * $ ┃ ┃ +// ┣━━━━━━┳━┹───┬─┴───┬─┴───┬─┴───┬─┴───┬─┴───┬─┴───┬─┴───┬─┴───┬─┴───┬─┴───┲━┷━━━━━┻━━━━━━┫ +// ┃Shift ┃ > ≥ │ Z ¶ │ X ÷ │ C ¢ │ V V │ B ₿ │ N N │ ? ¿ │ , · │ ; ´ │ \ ¦ ┃Shift ┃ +// ┃ ⇧ ┃ < ≤ │ z § │ x × │ c © │ v ♀ │ b ♂ │ n ⚥ │ ! ¡ │ . … │ : ` │ / | ┃ ⇧ ┃ +// ┣━━━━━━┻┳━━━━┷━━┳━━┷━━━━┱┴─────┴─────┴─────┴─────┴─────┴────┲┷━━━━━╈━━━━━┻┳━━━━━━┳━━━━━━┫ +// ┃Ctrl ┃ Fn ┃Alt ┃ ␣ Space Nobreakspace ⍽ ┃AltGr ┃Multi ┃ Ctxt ┃ Ctrl ┃ +// ┃ ┃ ┃ ┃ ␣ Space Nobreakspace ⍽ ┃ ┃ ┃ Menu ┃ ┃ +// ┗━━━━━━━┻━━━━━━━┻━━━━━━━┹───────────────────────────────────┺━━━━━━┻━━━━━━┻━━━━━━┻━━━━━━┛ + +partial alphanumeric_keys modifier_keys +xkb_symbols "drix" { + + name[Group1] = "English (Drix)"; + + // First row + key <TLDE> {[ at, asciitilde, sterling, dead_tilde ]}; // @ ~ £ ~ + key <AE01> {[ 1, quotedbl, onesuperior, dead_grave ]}; // 1 " ¹ ` + key <AE02> {[ 2, apostrophe, twosuperior, dead_acute ]}; // 2 ' ² ´ + key <AE03> {[ 3, asciicircum, threesuperior, dead_circumflex ]}; // 3 ^ ³ ^ + key <AE04> {[ 4, grave, foursuperior, dead_diaeresis ]}; // 4 4 ⁴ ¨ + key <AE05> {[ 5, degree, fivesuperior, dead_abovering ]}; // 5 ° ⁵ ° + key <AE06> {[ 6, 6, sixsuperior, dead_macron ]}; // 6 6 ⁶ ¯ + key <AE07> {[ 7, 7, sevensuperior, dead_cedilla ]}; // 7 7 ⁷ ¸ + key <AE08> {[ 8, 8, eightsuperior, dead_ogonek ]}; // 8 8 ⁸ ˛ + key <AE09> {[ 9, 9, ninesuperior, dead_caron ]}; // 9 9 ⁹ ˇ + key <AE10> {[ 0, bar, zerosuperior, dead_doubleacute ]}; // 0 | ⁰ ˝ + key <AE11> {[ minus, underscore, quotedbl, plusminus ]}; // - _ " ± + key <AE12> {[ plus, equal, apostrophe, notequal ]}; // + = ' ≠ + + // Second row + key <AD01> {[ q, Q, oslash, Ooblique ]}; // q Q ø Ø + key <AD02> {[ w, W, w, uparrow ]}; // w W w ↑ + key <AD03> {[ e, E, EuroSign, EuroS ]}; // e E € € + key <AD04> {[ r, R, registered, 0x10020bd ]}; // r R ® ₽ + key <AD05> {[ t, T, trademark, Greek_tau ]}; // t T ™ τ + key <AD06> {[ y, Y, yen, yen ]}; // y Y ¥ ¥ + key <AD07> {[ u, U, u, U ]}; // u U u U + key <AD08> {[ i, I, leftsinglequotemark, rightsinglequotemark ]}; // i I ‘ ’ + key <AD09> {[ o, O, oe, Greek_OMEGA ]}; // o O œ Ω + key <AD10> {[ p, P, Greek_pi, 0x10020b1 ]}; // p P π ₱ + key <AD11> {[ parenleft, bracketleft, braceleft, guillemotleft ]}; // ( [ { « + key <AD12> {[ parenright, bracketright, braceright, guillemotright ]}; // ) ] } » + + // Third row + key <AC01> {[ a, A, ae, leftarrow ]}; // a A æ ← + key <AC02> {[ s, S, ssharp, downarrow ]}; // s S ß ↓ + key <AC03> {[ d, D, Greek_DELTA, rightarrow ]}; // d D Δ → + key <AC04> {[ f, F, 0x1000192, 0x1000191 ]}; // f F ƒ Ƒ + key <AC05> {[ g, G, g, G ]}; // g G g G + key <AC06> {[ h, H, h, H ]}; // h H h H + key <AC07> {[ j, J, leftdoublequotemark, rightdoublequotemark ]}; // j J “ ” + key <AC08> {[ k, K, singlelowquotemark, doublelowquotemark ]}; // k K ‚ „ + key <AC09> {[ l, L, sterling, Greek_lambda ]}; // l L £ λ + key <AC10> {[ m, M, mu, M ]}; // m M µ M + key <AC11> {[ numbersign, percent, asciitilde, 0x1002030 ]}; // # % ~ ‰ + + // Fourth row + key <LSGT> {[ less, greater, lessthanequal, greaterthanequal ]}; // < > ≤ ≥ + key <AB01> {[ z, Z, section, paragraph ]}; // z Z § ¶ + key <AB02> {[ x, X, multiply, division ]}; // x X × ÷ + key <AB03> {[ c, C, copyright, cent ]}; // c C © ¢ + key <AB04> {[ v, V, 0x1002640, V ]}; // v V ♀ V + key <AB05> {[ b, B, 0x1002642, 0x10020bf ]}; // b B ♂ ₿ + key <AB06> {[ n, N, 0x10026a5, N ]}; // n N ⚥ N + key <AB07> {[ exclam, question, exclamdown, questiondown ]}; // ! ? ¡ ¿ + key <AB08> {[ period, comma, 0x1002026, periodcentered ]}; // . , … · + key <AB09> {[ colon, semicolon, grave, acute ]}; // : ; ` ´ + key <AB10> {[ slash, backslash, bar, brokenbar ]}; // / \ | ¦ + + // Next to the enter key + key <BKSL> {[ asterisk, ampersand, dollar, multiply ]}; // * & $ × + + // Rebind right Super (windows key) into a Compose key + key <RWIN> {[ Multi_key ]}; + + // Implement AltGr and AltGr+Shift + // For some reason, include "level3(ralt_switch)" doesn't do the trick. + key <RALT> { + type[Group1]="TWO_LEVEL", + [ ISO_Level3_Shift, Multi_key ] + }; +}; + +// German and Swedish characters added as third level symbols to the US keyboard layout +// Author: Stephan Lachnit <stephanlachnit@protonmail.com>, 2019 +// the german umlauts are placed over the characters without diaeresis, the sharp-s over the s +// the swedish ao is placed over the p, since it's closed to the position on a swedish keyboard +// the euro sign is placed over the e, as it is usual for german and swedish keyboards +partial alphanumeric_keys +xkb_symbols "de_se_fi" { + + include "us(basic)" + include "eurosign(e)" + name[Group1] = "German, Swedish and Finnish (US)"; + + key <AC01> {[ a, A, adiaeresis, Adiaeresis ]}; + key <AD09> {[ o, O, odiaeresis, Odiaeresis ]}; + key <AC02> {[ s, S, ssharp, U1E9E ]}; + key <AD07> {[ u, U, udiaeresis, Udiaeresis ]}; + key <AD10> {[ p, P, aring, Aring ]}; + + include "level3(ralt_switch)" +}; |