From 7b6285824b74a5c3f14a884fccba717bb747745a Mon Sep 17 00:00:00 2001 From: Surferlul Date: Tue, 7 Jun 2022 19:52:22 +0200 Subject: [PATCH] wrote into scirpt --- README.md | 2 + enable_gnome.sh | 2 + patch_xkb.py | 402 ++++++++++++ rules/evdev.extras.xml | 1405 ---------------------------------------- symbols/de | 1360 -------------------------------------- symbols/level3 | 239 ------- 6 files changed, 406 insertions(+), 3004 deletions(-) create mode 100755 enable_gnome.sh create mode 100755 patch_xkb.py delete mode 100644 rules/evdev.extras.xml delete mode 100644 symbols/de delete mode 100644 symbols/level3 diff --git a/README.md b/README.md index 496f908..5d1e77e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # xkb_neo My xkb modifications for making neo etc (inclusive vou) work properly with every part of GNU/Linux. YES, even IntelliJ + +Just execute patch_xkb.py as superuser to patch /usr/share/X11/xkb. Run enable_gnome.sh as normal user to enable alternative keyboard layouts on GNOME diff --git a/enable_gnome.sh b/enable_gnome.sh new file mode 100755 index 0000000..1529434 --- /dev/null +++ b/enable_gnome.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +gsettings set org.gnome.desktop.input-sources show-all-sources true diff --git a/patch_xkb.py b/patch_xkb.py new file mode 100755 index 0000000..8666855 --- /dev/null +++ b/patch_xkb.py @@ -0,0 +1,402 @@ +#!/usr/bin/env python3 + +xkb = "/usr/share/X11/xkb" + +def brackets(text): + res = 0 + slash = 0 + for i in text: + match i: + case "/": + slash += 1 + if slash == 2: + break + continue + case "{": + res += 1 + case "}": + res -= 1 + slash = 0 + return res + +def bracket_end(code ,pos): + indent = 0 + while indent := indent + brackets(code[pos]): + pos += 1 + return pos + 1 + +with open(f"{xkb}/rules/evdev.extras.xml", "r") as f: + evdev = f.read() +if "vou" not in evdev: + evdev = evdev.split("\n") + koy = [i for i in range(len(evdev)) if "koy" in evdev[i]][0] - 2 + vou = koy + 6 + evdev = [*evdev[:vou], + ' ', + ' ', + ' vou', + ' German (VOU)', + ' ', + ' ', + ' ', + ' ', + ' kou', + ' German (KOU)', + ' ', + ' ', + *evdev[vou:] + ] + with open(f"{xkb}/rules/evdev.extras.xml", "w") as f: + f.write("\n".join(evdev)) + +with open(f"{xkb}/symbols/de", "r") as f: + de = f.read() +if "vou" not in de: + de = de.split("\n") + neo_base = ([i for i in range(len(de)) if "\"neo_base\"" in de[i]][0], -1) + neo_base = (neo_base[0]-1, bracket_end(de, neo_base[0])) + de = [ + *de[:neo_base[0]], + 'partial alphanumeric_keys modifier_keys keypad_keys', + 'xkb_symbols "neo_base" {', + '', + ' // Levels in Neo jargon', + ' // --------------------------------------------------------------', + ' // Ebene 1: normal', + ' // Ebene 2: Shift', + ' // Ebene 3: Mod3', + ' // Ebene 4: Mod4 (for marking something use Shift + Mod4)', + ' // Ebene 5: Shift + Mod3', + ' // Ebene 6: Mod3 + Mod4', + ' // Compose (not a level): Mod3 + Tab', + ' // Feststelltaste (Capslock): Shift + Shift', + ' // Mod4-Lock: Mod4 + Mod4', + ' // Mod4-Lock: Shift + Mod3 + Tab', + '', + ' // Legend', + ' // ===============', + ' // Levels in Xkbmap jargon to be found here in the definitions. ', + ' // These are the levels used, and Xorg\'s translations:', + ' // --------------------------------------------------------------', + ' // Xorg: Level1 Level2 Level3 Level4 Level5 Level6 Level7 Level8 ', + ' // Neo: Ebene1 Ebene2 Ebene3 Ebene5 Ebene4 Pseudo-Ebene Ebene6 ??? ', + ' // Keys (Neo): None Shift Mod3 Mod3 + Shift Mod4 Mod4 + Shift Mod3 + Mod4 Mod3 + Mod4 + Shift ', + '', + '', + ' // Alphanumeric-keys', + ' // ===============', + ' key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK";', + '', + ' // Tab as Multi_key (Compose)', + ' // --------------------------------------------------------------', + ' key { [ Tab, ISO_Left_Tab, Multi_key, ISO_Level5_Lock, NoSymbol, NoSymbol, NoSymbol, ISO_Level5_Lock ] };', + '', + '', + ' // Number row', + ' // --------------------------------------------------------------', + ' key { [ dead_circumflex, dead_caron, U21BB, U02DE, dead_abovedot, Pointer_EnableKeys, dead_belowdot, NoSymbol ] };', + '', + ' key { [ 1, degree, onesuperior, onesubscript, ordfeminine, NoSymbol, notsign, NoSymbol ] };', + ' key { [ 2, section, twosuperior, twosubscript, masculine, NoSymbol, logicalor, NoSymbol ] };', + ' key { [ 3, U2113, threesuperior, threesubscript, numerosign, NoSymbol, logicaland, NoSymbol ] };', + ' key { [ 4, guillemotright, U203A, femalesymbol, NoSymbol, NoSymbol, U22A5, NoSymbol ] };', + ' key { [ 5, guillemotleft, U2039, malesymbol, periodcentered, NoSymbol, U2221, NoSymbol ] };', + ' key { [ 6, dollar, cent, U26A5, sterling, NoSymbol, U2225, NoSymbol ] };', + '', + ' key { [ 7, EuroSign, yen, U03F0, currency, NoSymbol, rightarrow, NoSymbol ] };', + ' key { [ 8, doublelowquotemark, singlelowquotemark, U27E8, Tab, ISO_Left_Tab, U221E, NoSymbol ] };', + ' key { [ 9, leftdoublequotemark, leftsinglequotemark, U27E9, KP_Divide, KP_Divide, variation, NoSymbol ] };', + ' key { [ 0, rightdoublequotemark, rightsinglequotemark, zerosubscript, KP_Multiply, KP_Multiply, emptyset, NoSymbol ] };', + '', + ' key { [ minus, emdash, NoSymbol, U2011, KP_Subtract, KP_Subtract, hyphen, NoSymbol ] };', + ' key { [ dead_grave, dead_cedilla, dead_abovering, dead_dasia, dead_diaeresis, NoSymbol, dead_macron, NoSymbol ] };', + '', + ' // Top row', + ' // --------------------------------------------------------------', + ' key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK";', + ' key { symbols[Group1] = [ x, X, ellipsis, Greek_xi, Prior, Prior, Greek_XI, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ v, V, underscore, NoSymbol, BackSpace, BackSpace, radical, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ l, L, bracketleft, Greek_lambda, Up, Up, Greek_LAMBDA, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ c, C, bracketright, Greek_chi, Delete, Delete, U2102, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ w, W, asciicircum, Greek_omega, Next, Next, Greek_OMEGA, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + '', + ' key { [ k, K, exclam, Greek_kappa, exclamdown, NoSymbol, multiply, NoSymbol ] };', + ' key { [ h, H, less, Greek_psi, KP_7, KP_7, Greek_PSI, NoSymbol ] };', + ' key { [ g, G, greater, Greek_gamma, KP_8, KP_8, Greek_GAMMA, NoSymbol ] };', + ' key { [ f, F, equal, Greek_phi, KP_9, KP_9, Greek_PHI, NoSymbol ] };', + ' key { [ q, Q, ampersand, U03D5, KP_Add, KP_Add, U211A, NoSymbol ] };', + '', + ' key { [ ssharp, U1E9E, U017F, Greek_finalsmallsigma, U2212, NoSymbol, jot, NoSymbol ] };', + '', + ' key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK";', + ' key { [ dead_acute, dead_tilde, dead_stroke, dead_psili, dead_doubleacute, NoSymbol, dead_breve, NoSymbol ] };', + '', + ' // Middle row', + ' // --------------------------------------------------------------', + ' key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK";', + ' key { symbols[Group1] = [ u, U, backslash, NoSymbol, Home, Home, includedin, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ i, I, slash, Greek_iota, Left, Left, integral, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ a, A, braceleft, Greek_alpha, Down, Down, U2200, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ e, E, braceright, Greek_epsilon, Right, Right, U2203, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ o, O, asterisk, Greek_omicron, End, End, elementof, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + '', + ' key { [ s, S, question, Greek_sigma, questiondown, NoSymbol, Greek_SIGMA, NoSymbol ] };', + ' key { [ n, N, parenleft, Greek_nu, KP_4, KP_4, U2115, NoSymbol ] };', + ' key { [ r, R, parenright, Greek_rho, KP_5, KP_5, U211D, NoSymbol ] };', + ' key { [ t, T, minus, Greek_tau, KP_6, KP_6, partialderivative, NoSymbol ] };', + ' key { [ d, D, colon, Greek_delta, KP_Separator, comma, Greek_DELTA, NoSymbol ] };', + '', + ' key { [ y, Y, at, Greek_upsilon, period, KP_Decimal, nabla, NoSymbol ] };', + '', + ' // Bottom row', + ' // --------------------------------------------------------------', + ' key { symbols[Group1] = [ udiaeresis, Udiaeresis, numbersign, NoSymbol, Escape, Escape, union, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ odiaeresis, Odiaeresis, dollar, U03F5, Tab, Tab, intersection, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ adiaeresis, Adiaeresis, bar, Greek_eta, Insert, Insert, U2135, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ p, P, asciitilde, Greek_pi, Return, Return, Greek_PI, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ z, Z, grave, Greek_zeta, Undo, Redo, U2124, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + '', + ' key { [ b, B, plus, Greek_beta, colon, NoSymbol, U21D0, NoSymbol ] };', + ' key { [ m, M, percent, Greek_mu, KP_1, KP_1, ifonlyif, NoSymbol ] };', + ' key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK";', + ' key { [ comma, endash, quotedbl, U03F1, KP_2, KP_2, U21D2, NoSymbol ] };', + ' key { [ period, enfilledcircbullet, apostrophe, U03D1, KP_3, KP_3, U21A6, NoSymbol ] };', + ' key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK";', + ' key { [ j, J, semicolon, Greek_theta, semicolon, NoSymbol, Greek_THETA, NoSymbol ] };', + ' key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK";', + '', + ' // Space key', + ' // --------------------------------------------------------------', + ' key { [ space, space, space, nobreakspace, KP_0, KP_0, U202F, NoSymbol ] };', + '', + '', + ' // Keypad-keys', + ' // ===============', + '', + ' // The former Numlock key:', + ' key { [ Tab, ISO_Left_Tab, equal, approxeq, notequal, Pointer_EnableKeys, identical, NoSymbol ] };', + '', + ' // Topmost row', + ' // --------------------------------------------------------------', + ' key { [ KP_Divide, KP_Divide, division, U2300, U2215, NoSymbol, U2223, NoSymbol ] };', + ' key { [ KP_Multiply, KP_Multiply, U22C5, U2299, multiply, NoSymbol, U2297, NoSymbol ] };', + ' key { [ KP_Subtract, KP_Subtract, U2212, U2296, U2216, NoSymbol, U2238, NoSymbol ] };', + '', + ' // Top row', + ' // --------------------------------------------------------------', + ' key { [ KP_7, U2714, U2195, U226A, KP_Home, KP_Home, upstile, NoSymbol ] };', + ' key { [ KP_8, U2718, uparrow, intersection, KP_Up, KP_Up, U22C2, NoSymbol ] };', + ' key { [ KP_9, dagger, U20D7, U226B, KP_Prior, KP_Prior, U2309, NoSymbol ] };', + ' key { [ KP_Add, KP_Add, plusminus, U2295, U2213, NoSymbol, U2214, NoSymbol ] };', + '', + ' // Middle row', + ' // --------------------------------------------------------------', + ' key { [ KP_4, club, leftarrow, includedin, KP_Left, KP_Left, U2286, NoSymbol ] };', + ' key { [ KP_5, EuroSign, colon, U22B6, KP_Begin, KP_Begin, U22B7, NoSymbol ] };', + ' key { [ KP_6, U2023, rightarrow, includes, KP_Right, KP_Right, U2287, NoSymbol ] };', + '', + ' // Bottom row', + ' // --------------------------------------------------------------', + ' key { [ KP_1, diamond, U2194, lessthanequal, KP_End, KP_End, downstile, NoSymbol ] };', + ' key { [ KP_2, heart, downarrow, union, KP_Down, KP_Down, U22C3, NoSymbol ] };', + ' key { [ KP_3, U2660, U21CC, greaterthanequal, KP_Next, KP_Next, U230B, NoSymbol ] };', + ' key { [ KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, NoSymbol ] };', + ' key { [ KP_Equal, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // Bottommost row', + ' // --------------------------------------------------------------', + ' key { [ KP_0, U2423, percent, U2030, KP_Insert, KP_Insert, U25A1, NoSymbol ] };', + ' key { [ KP_Separator, period, comma, minutes, KP_Delete, KP_Delete, seconds, NoSymbol ] };', + '};', + *de[neo_base[1]:] + ] + + koy = ([i for i in range(len(de)) if "\"koy\"" in de[i]][0], -1) + koy = (koy[0]-1, bracket_end(de, koy[0])) + + de = [ + *de[:koy[1]], + '', + 'partial alphanumeric_keys modifier_keys keypad_keys', + 'xkb_symbols "kou" {', + '', + ' include "de(koy_base)"', + '', + ' key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK";', + ' // level 4: replace numero sign by heavy check mark (key 3)', + ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, U2714, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // level 4: use unused place for heavy ballot X (key 4)', + ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, U2718, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // level 4: replace middle dot on key 5 with WHITE MEDIUM STAR', + ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, U2B50, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // level 4: move middle dot "·" from key 5 to key 7 (replacing the currency sign "¤")', + ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, periodcentered, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // move comma and endash to QWERTZ-C key', + ' key { [ comma, endash, NoSymbol, U03F1, NoSymbol, NoSymbol, U21D2, NoSymbol ] };', + '', + ' key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK";', + ' // move f and ssharp keys to new positions, replace at by rightarrow; level4: replace period with semicolon', + ' key { [ f, F, ampersand, Greek_phi, KP_Add, KP_Add, Greek_PHI, NoSymbol ] };', + ' key { [ ssharp, U1E9E, rightarrow, Greek_finalsmallsigma, semicolon, KP_Decimal, jot, NoSymbol ] };', + '', + ' // rotate x, q, z, j and v', + ' key { [ q, Q, NoSymbol, U03D5, NoSymbol, NoSymbol, U211A, NoSymbol ] };', + ' key { [ j, J, NoSymbol, Greek_theta, NoSymbol, NoSymbol, Greek_THETA, NoSymbol ] };', + ' key { [ z, Z, NoSymbol, Greek_zeta, NoSymbol, NoSymbol, U2124, NoSymbol ] };', + ' key { [ x, X, NoSymbol, Greek_xi, NoSymbol, NoSymbol, Greek_XI, NoSymbol ] };', + ' key { [ v, V, NoSymbol, radical, NoSymbol, NoSymbol, multiply, NoSymbol ] };', + '', + ' // swap u, y and ä (and comma, but not here)', + ' key { [ u, U, NoSymbol, NoSymbol, NoSymbol, NoSymbol, includedin, NoSymbol ] };', + ' key { [ y, Y, NoSymbol, Greek_upsilon, NoSymbol, NoSymbol, nabla, NoSymbol ] };', + ' key { [ adiaeresis, Adiaeresis, NoSymbol, Greek_eta, NoSymbol, NoSymbol, U2135, NoSymbol ] };', + '', + ' // swap b, d and p', + ' key { [ b, B, NoSymbol, Greek_beta, NoSymbol, NoSymbol, U21D0, NoSymbol ] };', + ' key { [ p, P, NoSymbol, Greek_pi, NoSymbol, NoSymbol, Greek_PI, NoSymbol ] };', + ' key { [ d, D, NoSymbol, Greek_delta, NoSymbol, NoSymbol, Greek_DELTA, NoSymbol ] };', + '', + ' // level3: replace long s by Euro sign', + ' key { [ NoSymbol, NoSymbol, EuroSign, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // level3: put braces ({, }) in upper row', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, braceleft, NoSymbol, Up, NoSymbol, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), NoAction(), NoAction(), NoAction() ]};', + ' key { [ NoSymbol, NoSymbol, braceright, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // level3: swap underscore and percent', + ' key { [ NoSymbol, NoSymbol, percent, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ NoSymbol, NoSymbol, underscore, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // level3: replace … by @', + ' key { [ NoSymbol, NoSymbol, at, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // level3: rearrangement of the home row', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, bar, NoSymbol, Home, Home, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, grave, NoSymbol, Left, Left, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, parenleft, NoSymbol, Down, Down, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, parenright, NoSymbol, Right, Right, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + '', + ' key { [ NoSymbol, NoSymbol, slash, NoSymbol, 4, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ NoSymbol, NoSymbol, colon, NoSymbol, 5, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ NoSymbol, NoSymbol, underscore, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // level3: rearrangement of the bottom row', + ' key { [ NoSymbol, NoSymbol, bracketleft, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ NoSymbol, NoSymbol, bracketright, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ NoSymbol, NoSymbol, dollar, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ NoSymbol, NoSymbol, quotedbl, NoSymbol, 1, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ NoSymbol, NoSymbol, apostrophe, NoSymbol, 2, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ NoSymbol, NoSymbol, backslash, NoSymbol, 3, NoSymbol, NoSymbol, NoSymbol ] };', + '', + '', + ' // level 4: rotate page down, backspace and delete', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Next, Next, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, BackSpace, BackSpace, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Delete, Delete, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + '', + ' // level4: rotate escape, insert and return; replace undo with thumbs up sign', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Insert, Insert, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Return, Return, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Escape, Escape, NoSymbol, NoSymbol ],', + ' actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]};', + ' key { [NoSymbol, NoSymbol, NoSymbol, NoSymbol, underscore, Undo, NoSymbol, NoSymbol ]};', + '', + ' // level4: swap . and ;', + ' // key BKSL was already changed above', + ' // key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, semicolon, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, period, KP_Decimal, NoSymbol, NoSymbol ] };', + '', + ' // level4: replace ¡ by :', + ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, colon, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // level4: replace ¿ by -', + ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, minus, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' // level4: replace : by _', + ' key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, 0, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' name[Group1]= "German (KOU)";', + '', + ' include "shift(both_capslock)"', + ' include "level3(caps_switch)"', + ' // use quote key (a-umlaut on German keyboards) as Mod3 switch', + ' include "level3(quote_switch)"', + ' include "level5(lsgt_switch_lock)"', + ' include "level5(ralt_switch_lock)"', + '};', + '', + 'partial alphanumeric_keys', + 'xkb_symbols "vou" {', + ' include "de(kou)"', + '', + ' key { [ k, K, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ v, V, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ l, L, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ h, H, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + ' key { [ c, C, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] };', + '', + ' name[Group1]= "German (VOU)";', + '', + ' include "shift(both_capslock)"', + ' include "level3(caps_switch)"', + ' // use quote key (a-umlaut on German keyboards) as Mod3 switch', + ' include "level3(quote_switch)"', + ' include "level5(lsgt_switch_lock)"', + ' include "level5(ralt_switch_lock)"', + '};', + *de[koy[1]:] + ] + + with open(f"{xkb}/symbols/de", "w") as f: + f.write("\n".join(de)) +with open(f"{xkb}/symbols/level3", "r") as f: + level3 = f.read() +if "vou" not in level3: + level3 = level3.split("\n") + bksl_switch = ([i for i in range(len(level3)) if "\"bksl_switch\"" in level3[i]][0], -1) + bksl_switch = (bksl_switch[0]-1, bracket_end(level3, bksl_switch[0])) + level3 = [ + *level3[:bksl_switch[1]], + '', + '// The Quote key (while pressed) chooses the third shift level.', + 'partial modifier_keys', + 'xkb_symbols "quote_switch" {', + ' key {', + ' type[Group1]="ONE_LEVEL",', + ' symbols[Group1] = [ ISO_Level3_Shift ]', + ' };', + ' include "level3(modifier_mapping)"', + '};', + *level3[bksl_switch[1]:] + ] + with open(f"{xkb}/symbols/level3", "w") as f: + f.write("\n".join(level3)) diff --git a/rules/evdev.extras.xml b/rules/evdev.extras.xml deleted file mode 100644 index 9798870..0000000 --- a/rules/evdev.extras.xml +++ /dev/null @@ -1,1405 +0,0 @@ - - - - - - - - apl - apl - APL - - eng - - - - - - dyalog - dlg - APL symbols (Dyalog APL) - - - - - sax - sax - APL symbols (SAX, Sharp APL for Unix) - - - - - unified - ufd - APL symbols (unified) - - - - - apl2 - apl2 - APL symbols (IBM APL2) - - - - - aplplusII - aplII - APL symbols (Manugistics APL*PLUS II) - - - - - aplx - aplx - APL symbols (APLX unified) - - - - - - - ca - fr - French (Canada) - - fra - - - - - - kut - kut - Kutenai - - - - - shs - shs - Secwepemctsin - - - - - sun_type6 - Multilingual (Canada, Sun Type 6/7) - - - - - - - de - de - German - - deu - - - - - - hu - German (with Hungarian letters, no dead keys) - - deu - hun - - - - - - pl - Polish (Germany, no dead keys) - - deu - pol - - - - - - sun_type6 - German (Sun Type 6/7) - - - - - adnw - German (Aus der Neo-Welt) - - - - - koy - German (KOY) - - - - - vou - German (VOU) - - - - - bone - German (Bone) - - - - - bone_eszett_home - German (Bone, eszett in the home row) - - - - - neo_qwertz - German (Neo, QWERTZ) - - - - - neo_qwerty - German (Neo, QWERTY) - - - - - ru-recom - - ru - Russian (Germany, recommended) - - rus - - - - - - ru-translit - - ru - Russian (Germany, transliteration) - - rus - - - - - - lld - de_lld - German (Ladin) - - deu - lld - - - - - - - - eg - Coptic - - cop - egy - - - - - - hu - Hungarian - - - - - oldhun - oldhun - Old Hungarian - - - - - oldhunlig - oldhun(lig) - Old Hungarian (for ligatures) - - - - - - - - ir - fa - Persian - - fas - - - - - - ave - Avestan - - ave - - - - - - - - lt - lt - Lithuanian - - lit - - - - - - us_dvorak - Lithuanian (Dvorak) - - - - - sun_type6 - Lithuanian (Sun Type 6/7) - - - - - - - lv - lv - Latvian - - lav - - - - - - dvorak - Latvian (Dvorak) - - - - - ykeydvorak - Latvian (Dvorak, with Y) - - - - - minuskeydvorak - Latvian (Dvorak, with minus) - - - - - dvorakprogr - Latvian (programmer Dvorak) - - - - - ykeydvorakprogr - Latvian (programmer Dvorak, with Y) - - - - - minuskeydvorakprogr - Latvian (programmer Dvorak, with minus) - - - - - colemak - Latvian (Colemak) - - - - - apostrophecolemak - Latvian (Colemak, with apostrophe) - - - - - sun_type6 - Latvian (Sun Type 6/7) - - - - - apostrophe-deadquotes - Latvian (apostrophe, dead quotes) - - - - - - - us - en - English (US) - - eng - - - - - - intl-unicode - English (US, intl., AltGr Unicode combining) - - - - - alt-intl-unicode - English (US, intl., AltGr Unicode combining, alt.) - - - - - ats - Atsina - - - - - - crd - Coeur d'Alene Salish - - crd - - - - - - cz_sk_de - Czech Slovak and German (US) - - eng - ces - slk - deu - - - - - - cz_sk_pl_de_es_fi_sv - Czech, Slovak, Polish, Spanish, Finnish, Swedish and German (US) - - eng - cze - slo - pol - ger - spa - fin - swe - - - - - - drix - English (Drix) - - - - - de_se_fi - German, Swedish and Finnish (US) - - eng - deu - swe - fin - - - - - - ibm238l - English (US, IBM Arabic 238_L) - - - - - sun_type6 - English (US, Sun Type 6/7) - - - - - carpalx - English (Carpalx) - - - - - carpalx-intl - English (Carpalx, intl., with dead keys) - - - - - carpalx-altgr-intl - English (Carpalx, intl., with AltGr dead keys) - - - - - carpalx-full - English (Carpalx, full optimization) - - - - - carpalx-full-intl - English (Carpalx, full optimization, intl., with dead keys) - - - - - carpalx-full-altgr-intl - English (Carpalx, full optimization, intl., with AltGr dead keys) - - - - - 3l - English (3l) - - - - - 3l-cros - English (3l, Chromebook) - - - - - 3l-emacs - English (3l, emacs) - - - - - scn - Sicilian (US keyboard) - - eng - ita - scn - - - - - - - - pl - pl - Polish - - pol - - - - - - intl - Polish (intl., with dead keys) - - - - - colemak - Polish (Colemak) - - - - - colemak_dh - Polish (Colemak-DH) - - - - - sun_type6 - Polish (Sun Type 6/7) - - - - - glagolica - Polish (Glagolica) - - - - - - - ro - ro - Romanian - - ron - - - - - - crh_dobruja - crh - Crimean Tatar (Dobruja Q) - - crh - - - - - - ergonomic - Romanian (ergonomic Touchtype) - - - - - sun_type6 - Romanian (Sun Type 6/7) - - - - - - - rs - sr - Serbian - - srp - - - - - - combiningkeys - Serbian (combining accents instead of dead keys) - - - - - - - ru - ru - Russian - - - - - chu - Church Slavonic - - chu - - - - - - ruu - ru - Russian (with Ukrainian-Belorussian layout) - - rus - ukr - bel - - - - - - rulemak - Russian (Rulemak, phonetic Colemak) - - - - - phonetic_mac - Russian (phonetic Macintosh) - - - - - sun_type6 - Russian (Sun Type 6/7) - - - - - unipunct - Russian (with US punctuation) - - - - - prxn - ru - Russian (Polyglot and Reactionary) - - RU - RS - BA - ME - MK - BG - MD - UA - BY - KZ - MN - KG - TJ - UZ - TM - AZ - - - rus - ukr - bel - srp - mkd - bul - chu - kaz - kir - uzb - bak - aze - tat - uig - kdr - tyv - kjh - crh - tgk - abk - sah - mon - kal - sjd - chv - oss - krl - ale - wbl - kur - niv - dng - kom - udm - sel - ulc - ude - oac - oaa - gld - eve - evn - kca - itl - yrk - neg - - - - - - - - am - hy - Armenian - - hye - - - - - - olpc-phonetic - Armenian (OLPC, phonetic) - - - - - - - il - he - Hebrew - - heb - - - - - - biblicalSIL - Hebrew (Biblical, SIL phonetic) - - heb - - - - - - - - ara - ar - Arabic - - - - - sun_type6 - Arabic (Sun Type 6/7) - - - - - basic_ext - Arabic (Arabic numerals, extensions in the 4th level) - - - - - basic_ext_digits - Arabic (Eastern Arabic numerals, extensions in the 4th level) - - - - - uga - Ugaritic instead of Arabic - - - - - - - be - be - Belgian - - - - - sun_type6 - Belgian (Sun Type 6/7) - - - - - - - br - pt - Portuguese (Brazil) - - - - - sun_type6 - Portuguese (Brazil, Sun Type 6/7) - - - - - - - cz - cs - Czech - - - - - sun_type6 - Czech (Sun Type 6/7) - - - - - prog - Czech (programming) - - - - - typo - Czech (typographic) - - - - - coder - Czech (coder) - - - - - prog_typo - Czech (programming, typographic) - - - - - - - dk - da - Danish - - - - - sun_type6 - Danish (Sun Type 6/7) - - - - - - - nl - nl - Dutch - - - - - sun_type6 - Dutch (Sun Type 6/7) - - - - - - - ee - et - Estonian - - - - - sun_type6 - Estonian (Sun Type 6/7) - - - - - - - fi - fi - Finnish - - - - - sun_type6 - Finnish (Sun Type 6/7) - - - - - das - Finnish (DAS) - - - - - fidvorak - Finnish (Dvorak) - - - - - - - fr - fr - French - - - - - sun_type6 - French (Sun Type 6/7) - - - - - us-alt - French (US with dead keys, alt.) - - - - - us-azerty - French (US, AZERTY) - - - - - - - gr - gr - Greek - - - - - sun_type6 - Greek (Sun Type 6/7) - - - - - colemak - Greek (Colemak) - - - - - - - it - it - Italian - - - - - sun_type6 - Italian (Sun Type 6/7) - - - - - lld - it_lld - Italian (Ladin) - - ita - lld - - - - - - dvorak - Italian (Dvorak) - - ita - - - - - - - - jp - ja - Japanese - - - - - sun_type6 - Japanese (Sun Type 6) - - - - - sun_type7 - Japanese (Sun Type 7, PC-compatible) - - - - - sun_type7_suncompat - Japanese (Sun Type 7, Sun-compatible) - - - - - - - no - no - Norwegian - - - - - sun_type6 - Norwegian (Sun Type 6/7) - - - - - - - pk - ur - Urdu (Pakistan) - - - - - urd-navees - Urdu (Navees, Pakistan) - - urd - - - - - - - - pt - pt - Portuguese - - - - - sun_type6 - Portuguese (Sun Type 6/7) - - - - - colemak - Portuguese (Colemak) - - - - - - - sk - sk - Slovak - - - - - acc - Slovak (ACC layout, only accented letters) - - - - - sun_type6 - Slovak (Sun Type 6/7) - - - - - - - es - es - Spanish - - - - - sun_type6 - Spanish (Sun Type 6/7) - - - - - - - se - sv - Swedish - - - - - dvorak_a5 - Swedish (Dvorak A5) - - - - - sun_type6 - Swedish (Sun Type 6/7) - - - - - ovd - Elfdalian (Swedish, with combining ogonek) - - ovd - - - - - - - - ch - de - German (Switzerland) - - - - - sun_type6_de - German (Switzerland, Sun Type 6/7) - - - - - sun_type6_fr - French (Switzerland, Sun Type 6/7) - - - - - - - tr - tr - Turkish - - - - - sun_type6 - Turkish (Sun Type 6/7) - - - - - otk - Old Turkic - - - - - - - ua - uk - Ukrainian - - - - - sun_type6 - Ukrainian (Sun Type 6/7) - - - - - - - gb - en - English (UK) - - - - - sun_type6 - English (UK, Sun Type 6/7) - - - - - - - kr - ko - Korean - - - - - sun_type6 - Korean (Sun Type 6/7) - - - - - - - vn - - vi - Vietnamese - - vie - - - - - - aderty - Vietnamese (AÐERTY) - - - - - qderty - Vietnamese (QĐERTY) - - - - - - - eu - - eu - EurKEY (US) - - cat - dan - eng - est - fao - fin - deu - ell - gsw - ita - lav - lit - nld - nor - por - spa - swe - - - - - - trans - - International Phonetic Alphabet - - - - - - in - - in - Indian - - - - - modi-kagapa - mr - Modi (KaGaPa phonetic) - - mar - - - - - - san-misc - sas - Sanskrit symbols - - san - - - - - - urd-navees - ur - Urdu (Navees) - - urd - - - - - - - - - - - lv3 - Key to choose the 3rd level - - - - - - - - parens - Parentheses position - - - - - diff --git a/symbols/de b/symbols/de deleted file mode 100644 index 6a2d63e..0000000 --- a/symbols/de +++ /dev/null @@ -1,1360 +0,0 @@ -default -xkb_symbols "basic" { - - include "latin(type4)" - - name[Group1]="German"; - - key { [ 2, quotedbl, twosuperior, oneeighth ] }; - key { [ 3, section, threesuperior, sterling ] }; - key { [ 4, dollar, onequarter, currency ] }; - - key {type[Group1]="FOUR_LEVEL_PLUS_LOCK", symbols[Group1]= - [ssharp, question, backslash, questiondown, 0x1001E9E ]}; - key { [dead_acute, dead_grave, dead_cedilla, dead_ogonek ] }; - - key { [ e, E, EuroSign, EuroSign ] }; - key { [ z, Z, leftarrow, yen ] }; - key { [udiaeresis, Udiaeresis, dead_diaeresis, dead_abovering ] }; - key { [ plus, asterisk, asciitilde, macron ] }; - - key { [ s, S, U017F, U1E9E ] }; - key { [ j, J, dead_belowdot, dead_abovedot ] }; - key { [odiaeresis, Odiaeresis, dead_doubleacute, dead_belowdot ] }; - key { [adiaeresis, Adiaeresis, dead_circumflex, dead_caron ] }; - key { [dead_circumflex, degree, U2032, U2033 ] }; - - key { [numbersign, apostrophe, rightsinglequotemark, dead_breve ] }; - key { [ y, Y, guillemotright, U203A ] }; - key { [ x, X, guillemotleft, U2039 ] }; - key { [ v, V, doublelowquotemark, singlelowquotemark ] }; - key { [ b, B, leftdoublequotemark, leftsinglequotemark ] }; - key { [ n, N, rightdoublequotemark, rightsinglequotemark ] }; - key { [ comma, semicolon, periodcentered, multiply ] }; - key { [ period, colon, U2026, division ] }; - key { [ minus, underscore, endash, emdash ] }; - key { [ less, greater, bar, dead_belowmacron ] }; - - include "kpdl(comma)" - - include "level3(ralt_switch)" -}; - -partial alphanumeric_keys -xkb_symbols "deadtilde" { - // previous standard German layout with tilde as dead key - - include "de(basic)" - name[Group1]="German (dead tilde)"; - - key { [ plus, asterisk, dead_tilde, dead_macron ] }; -}; - -partial alphanumeric_keys -xkb_symbols "nodeadkeys" { - - // modify the basic German layout to not have any dead keys - - include "de(basic)" - name[Group1]="German (no dead keys)"; - - key { [asciicircum, degree, notsign, notsign ] }; - key { [ acute, grave, cedilla, cedilla ] }; - key { [ udiaeresis, Udiaeresis, diaeresis, diaeresis ] }; - key { [ plus, asterisk, asciitilde, macron ] }; - key { [ odiaeresis, Odiaeresis, doubleacute, doubleacute ] }; - key { [ adiaeresis, Adiaeresis, asciicircum, asciicircum ] }; - key { [ numbersign, apostrophe, rightsinglequotemark, grave ] }; -}; - -partial alphanumeric_keys -xkb_symbols "deadgraveacute" { - // modify the basic German layout to have only acute and grave - // as dead keys (tilde and circumflex are needed as spacing characters - // in many programming languages) - - include "de(basic)" - name[Group1]="German (dead grave acute)"; - - key { [asciicircum, degree, notsign, notsign ] }; - key { [ plus, asterisk, asciitilde, dead_macron ] }; - key { [ numbersign, apostrophe, rightsinglequotemark, grave ] }; -}; - -partial alphanumeric_keys -xkb_symbols "deadacute" { - // modify the basic German layout to have only acute as - // dead keys (ASCII grave, tilde and circumflex are needed as - // spacing characters in many programming languages and text formatters) - - include "de(deadgraveacute)" - - name[Group1]="German (dead acute)"; - - key { [dead_acute, grave, dead_cedilla, dead_ogonek ] }; - key { [numbersign, apostrophe, rightsinglequotemark, dead_grave ] }; -}; - -partial alphanumeric_keys -xkb_symbols "e1" { - // German extended layout E1 based on DIN 2137-1:2020-11 - // Designed for a 105-key keyboard - // https://de.wikipedia.org/wiki/Tastaturbelegung - - name[Group1]="German (E1)"; - - // first row - key.type[Group1] = "EIGHT_LEVEL"; - key { [ dead_circumflex, degree, multiply, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ 1, exclam, rightsinglequotemark, NoSymbol, onequarter, U25CA, NoSymbol, NoSymbol ] }; - key { [ 2, quotedbl, twosuperior, NoSymbol, onehalf, U00A6, NoSymbol, NoSymbol ] }; - key { [ 3, section, threesuperior, NoSymbol, threequarters, U00B6, NoSymbol, NoSymbol ] }; - key { [ 4, dollar, emdash, NoSymbol, currency, U2133, NoSymbol, NoSymbol ] }; - key { [ 5, percent, exclamdown, NoSymbol, U2030, U20B0, NoSymbol, NoSymbol ] }; - key { [ 6, ampersand, questiondown, NoSymbol, U2044, U204A, NoSymbol, NoSymbol ] }; - key { [ 7, slash, braceleft, NoSymbol, U2300, U2116, NoSymbol, NoSymbol ] }; - key { [ 8, parenleft, bracketleft, NoSymbol, U27E8, U27EA, NoSymbol, NoSymbol ] }; - key { [ 9, parenright, bracketright, NoSymbol, U27E9, U27EB, NoSymbol, NoSymbol ] }; - key { [ 0, equal, braceright, NoSymbol, division, U2205, NoSymbol, NoSymbol ] }; - key { [ ssharp, question, backslash, NoSymbol, notequal, U00AC, NoSymbol, NoSymbol ] }; - key { [ dead_acute, dead_grave, dead_abovedot, NoSymbol, sterling, U035C, NoSymbol, NoSymbol ] }; - - // second row - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC"; - key { [ q, Q, at, NoSymbol, masculine, U2642, NoSymbol, NoSymbol ] }; - key { [ w, W, dead_macron, NoSymbol, ordfeminine, U2640, NoSymbol, NoSymbol ] }; - key { [ e, E, EuroSign, NoSymbol, schwa, SCHWA, NoSymbol, NoSymbol ] }; - key { [ r, R, dead_doubleacute, NoSymbol, trademark, registered, NoSymbol, NoSymbol ] }; - key { [ t, T, dead_caron, NoSymbol, thorn, THORN, NoSymbol, NoSymbol ] }; - key { [ z, Z, dead_diaeresis, NoSymbol, U0292, U01B7, NoSymbol, NoSymbol ] }; - key { [ u, U, dead_breve, NoSymbol, rightarrow, leftarrow, NoSymbol, NoSymbol ] }; - key { [ i, I, dead_tilde, NoSymbol, idotless, U26A5, NoSymbol, NoSymbol ] }; - key { [ o, O, dead_abovering, NoSymbol, oslash, Oslash, NoSymbol, NoSymbol ] }; - key { [ p, P, dead_hook, NoSymbol, downarrow, uparrow, NoSymbol, NoSymbol ] }; - key { [ udiaeresis, Udiaeresis, dead_horn, NoSymbol, U2198, U2197, NoSymbol, NoSymbol ] }; - key.type[Group1] = "EIGHT_LEVEL"; - key { [ plus, asterisk, asciitilde, NoSymbol, plusminus, U2052, NoSymbol, NoSymbol ] }; - - // third row - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC"; - // Per DIN 2137-1:2018-12, p. 11-12, (Alt)Gr+a can either invoke - // a selection possibility for emojis or special characters, or - // output the U+263A smiley. - key { [ a, A, Multi_key, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ s, S, seconds, NoSymbol, U017F, U2211, NoSymbol, NoSymbol ] }; - key { [ d, D, minutes, NoSymbol, eth, ETH, NoSymbol, NoSymbol ] }; - key { [ f, F, ISO_Level5_Latch, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ g, G, U1E9E, NoSymbol, U02BF, U261B, NoSymbol, NoSymbol ] }; - key { [ h, H, dead_belowmacron, NoSymbol, U02BE, U261A, NoSymbol, NoSymbol ] }; - key { [ j, J, dead_cedilla, NoSymbol, U02B9, U02BA, NoSymbol, NoSymbol ] }; - key { [ k, K, dead_belowcomma, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ l, L, dead_ogonek, NoSymbol, lstroke, Lstroke, NoSymbol, NoSymbol ] }; - key { [ odiaeresis, Odiaeresis, dead_belowdot, NoSymbol, oe, OE, NoSymbol, NoSymbol ] }; - key { [ adiaeresis, Adiaeresis, dead_stroke, NoSymbol, ae, AE, NoSymbol, NoSymbol ] }; - key.type[Group1] = "EIGHT_LEVEL"; - key { [ numbersign, apostrophe, U2212, NoSymbol, U2020, U2021, NoSymbol, NoSymbol ] }; - - // fourth row - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC"; - key { [ y, Y, U203A, NoSymbol, U2423, U23D1, NoSymbol, NoSymbol ] }; - key { [ x, X, guillemotright, NoSymbol, doublelowquotemark, singlelowquotemark, NoSymbol, NoSymbol ] }; - key { [ c, C, U202F, NoSymbol, cent, copyright, NoSymbol, NoSymbol ] }; - key { [ v, V, guillemotleft, NoSymbol, leftdoublequotemark, leftsinglequotemark, NoSymbol, NoSymbol ] }; - key { [ b, B, U2039, NoSymbol, rightdoublequotemark, rightsinglequotemark, NoSymbol, NoSymbol ] }; - key { [ n, N, endash, NoSymbol, eng, ENG, NoSymbol, NoSymbol ] }; - // Per DIN 2137-1:2018-12, p. 12, U+2217 should be replaced by the - // 'middle asterisk' character as soon as it has been added to - // Unicode (see Unicode proposal L2/17-152). - key { [ m, M, mu, NoSymbol, U200C, U2217, NoSymbol, NoSymbol ] }; - key.type[Group1] = "EIGHT_LEVEL"; - key { [ comma, semicolon, U2011, NoSymbol, U02BB, U2661, NoSymbol, NoSymbol ] }; - key { [ period, colon, periodcentered, NoSymbol, ellipsis, U2713, NoSymbol, NoSymbol ] }; - key { [ minus, underscore, hyphen, NoSymbol, U2022, U25E6, NoSymbol, NoSymbol ] }; - - // fifth row - key.type[Group1] = "EIGHT_LEVEL"; - key { [ space, space, nobreakspace, NoSymbol, U200A, U2009, NoSymbol, NoSymbol ] }; - key.type[Group1] = "ONE_LEVEL"; - key { [ Shift_L ] }; - key { [ Shift_R ] }; - key { [ ISO_Level3_Shift ] }; - - // key exists only on the 105-key keyboard - key.type[Group1] = "EIGHT_LEVEL"; - key { [ less, greater, bar, NoSymbol, lessthanequal, greaterthanequal, NoSymbol, NoSymbol ] }; - - include "kpdl(comma)" - include "level3(modifier_mapping)" - include "level5(modifier_mapping)" - }; - -partial alphanumeric_keys -xkb_symbols "e2" { - // German extended layout E2 based on DIN 2137-1:2020-11 - // Designed for a 104-key keyboard - // https://de.wikipedia.org/wiki/Tastaturbelegung - - include "de(e1)" - name[Group1]="German (E2)"; - - // one key less: assign bar, less and greater to other keys - key.type[Group1] = "EIGHT_LEVEL"; - key { [ dead_circumflex, degree, bar, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ 2, quotedbl, less, NoSymbol, onehalf, U00A6, NoSymbol, NoSymbol ] }; - key { [ 3, section, greater, NoSymbol, threequarters, U00B6, NoSymbol, NoSymbol ] }; - key { [ plus, asterisk, asciitilde, NoSymbol, multiply, U2052, NoSymbol, NoSymbol ] }; - - // if E2 is used on a 105-key keyboard - key.type[Group1] = "ONE_LEVEL"; - key { [ ISO_Level3_Shift ] }; -}; - -partial alphanumeric_keys -xkb_symbols "T3" { - // German extended layout T3 based on DIN 2137-1:2012-06 - // Now obsolete, use de(e1) or de(e2) - - name[Group1]="German (T3)"; - - key.type[Group1] = "EIGHT_LEVEL"; - key { [ dead_circumflex, degree, multiply, NoSymbol, U204A, hyphen, bar, NoSymbol ] }; - key { [ 1, exclam, rightsinglequotemark, NoSymbol, onesuperior, exclamdown, U02B9, NoSymbol ] }; - key { [ 2, quotedbl, twosuperior, NoSymbol, twosuperior, currency, U02BA, NoSymbol ] }; - key { [ 3, section, threesuperior, NoSymbol, threesuperior, sterling, U02BF, NoSymbol ] }; - key { [ 4, dollar, emdash, NoSymbol, onequarter, 0x20AC, U02BE, NoSymbol ] }; - key { [ 5, percent, exclamdown, NoSymbol, onehalf, uparrow, U02C1, NoSymbol ] }; - key { [ 6, ampersand, questiondown, NoSymbol, threequarters, downarrow, U02C0, NoSymbol ] }; - key { [ 7, slash, braceleft, NoSymbol, oneeighth, leftarrow, braceleft, NoSymbol ] }; - key { [ 8, parenleft, bracketleft, NoSymbol, threeeighths, rightarrow, braceright, NoSymbol ] }; - key { [ 9, parenright, bracketright, NoSymbol, fiveeighths, plusminus, bracketleft, NoSymbol ] }; - key { [ 0, equal, braceright, NoSymbol, seveneighths, trademark, bracketright, NoSymbol ] }; - key { [ ssharp, question, backslash, NoSymbol, backslash, questiondown, U02BB, NoSymbol ] }; - key { [ dead_acute, dead_grave, dead_abovedot, NoSymbol, dead_cedilla, dead_ogonek, notsign, NoSymbol ] }; - - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC"; - key { [ q, Q, at, NoSymbol, U0242, U0241, U030D, NoSymbol ] }; - key { [ w, W, dead_caron, NoSymbol, U02B7, U2126, dead_abovedot, NoSymbol ] }; - key { [ e, E, EuroSign, NoSymbol, oe, OE, dead_breve, NoSymbol ] }; - key { [ r, R, dead_diaeresis, NoSymbol, paragraph, registered, dead_circumflex, NoSymbol ] }; - key { [ t, T, dead_macron, NoSymbol, UA78C, UA78B, dead_diaeresis, NoSymbol ] }; - key { [ z, Z, dead_doubleacute, NoSymbol, U027C, yen, dead_invertedbreve, NoSymbol ] }; - key { [ u, U, dead_breve, NoSymbol, U0223, U0222, dead_caron, NoSymbol ] }; - key { [ i, I, dead_tilde, NoSymbol, idotless, U214D, dead_abovecomma, NoSymbol ] }; - key { [ o, O, dead_abovering, NoSymbol, oslash, Oslash, dead_horn, NoSymbol ] }; - key { [ p, P, dead_hook, NoSymbol, thorn, THORN, dead_hook, NoSymbol ] }; - key { [ udiaeresis, Udiaeresis, dead_horn, NoSymbol, U017F, dead_abovering, dead_grave, NoSymbol ] }; - key.type[Group1] = "EIGHT_LEVEL"; - key { [ plus, asterisk, asciitilde, NoSymbol, dead_tilde, dead_macron, at, NoSymbol ] }; - - key.type[Group1] = "ONE_LEVEL"; - key { [ Caps_Lock ] }; - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC"; - key { [ a, A, lessthanequal, NoSymbol, ae, AE, U0329, NoSymbol ] }; - key { [ s, S, greaterthanequal, NoSymbol, ssharp, section, dead_belowdot, NoSymbol ] }; - key { [ d, D, U2300, NoSymbol, eth, ETH, dead_belowbreve, NoSymbol ] }; - key { [ f, F, minutes, NoSymbol, U0294, ordfeminine, dead_belowcircumflex, NoSymbol ] }; - key { [ g, G, seconds, NoSymbol, eng, ENG, dead_belowmacron, NoSymbol ] }; - key { [ h, H, U1E9E, NoSymbol, U0272, U019D, U0332, NoSymbol ] }; - key { [ j, J, dead_cedilla, NoSymbol, U0133, U0132, dead_belowring, NoSymbol ] }; - key { [ k, K, dead_belowcomma, NoSymbol, kra, dead_belowcomma, dead_stroke, NoSymbol ] }; - key { [ l, L, dead_ogonek, NoSymbol, lstroke, Lstroke, U0338, NoSymbol ] }; - key { [ odiaeresis, Odiaeresis, dead_belowdot, NoSymbol, dead_acute, dead_doubleacute, degree, NoSymbol ] }; - key { [ adiaeresis, Adiaeresis, dead_stroke, NoSymbol, U019B, U1E9E, minutes, NoSymbol ] }; - key.type[Group1] = "EIGHT_LEVEL"; - key { [ numbersign, apostrophe, registered, NoSymbol, schwa, SCHWA, seconds, NoSymbol ] }; - - key { [ less, greater, bar, NoSymbol, U0149, brokenbar, U266A, NoSymbol ] }; - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC"; - key { [ y, Y, U203A, NoSymbol, U0292, U01B7, guillemotleft, NoSymbol ] }; - key { [ x, X, guillemotright, NoSymbol, doublelowquotemark, singlelowquotemark, guillemotright, NoSymbol ] }; - key { [ c, C, copyright, NoSymbol, cent, copyright, Greek_horizbar, NoSymbol ] }; - key { [ v, V, guillemotleft, NoSymbol, leftdoublequotemark, leftsinglequotemark, U2039, NoSymbol ] }; - key { [ b, B, U2039, NoSymbol, rightdoublequotemark, rightsinglequotemark, U203A, NoSymbol ] }; - key { [ n, N, endash, NoSymbol, U019E, U0220, endash, NoSymbol ] }; - key { [ m, M, mu, NoSymbol, mu, masculine, emdash, NoSymbol ] }; - key.type[Group1] = "EIGHT_LEVEL"; - key { [ comma, semicolon, U02BB, NoSymbol, ellipsis, multiply, dollar, NoSymbol ] }; - key { [ period, colon, U200C, NoSymbol, periodcentered, division, numbersign, NoSymbol ] }; - key { [ minus, underscore, hyphen, NoSymbol, U0140, U013F, U2011, NoSymbol ] }; - - key { [ space, space, nobreakspace, NoSymbol, U202F, U200C, nobreakspace, NoSymbol ] }; - - include "kpdl(comma)" - - include "level5(modifier_mapping)" - include "level3(modifier_mapping)" - key.type[Group1] = "THREE_LEVEL"; - key { [ Shift_L, Shift_L, ISO_Level5_Latch ] }; - key { [ Shift_R, Shift_R, ISO_Level5_Latch ] }; - key { [ ISO_Level3_Shift, ISO_Level5_Latch, ISO_Level5_Latch ] }; - }; - -partial alphanumeric_keys -xkb_symbols "ro" { - // Adds Romanian-specific letters to the German basic layout. - // Romanian symbols are accessible by combining and - // 'a', 's', 't', 'i', 'ä (ä)' (+ for capital letters). - - include "de(basic)" - - name[Group1]="Romanian (Germany)"; - - key { [ t, T, U021b, U021a ] }; - key { [ i, I, icircumflex, Icircumflex ] }; - key { [ a, A, acircumflex, Acircumflex ] }; - key { [ s, S, U0219, U0218 ] }; - key { [ adiaeresis, Adiaeresis, abreve, Abreve ] }; -}; - -partial alphanumeric_keys -xkb_symbols "ro_nodeadkeys" { - // Adds Romanian-specific letters to the German nodeadkeys layout. - // Read the comment for de_ro ! - - include "de(nodeadkeys)" - name[Group1]="Romanian (Germany, no dead keys)"; - - key { [ t, T, U021b, U021a ] }; - key { [ i, I, icircumflex, Icircumflex ] }; - key { [ a, A, acircumflex, Acircumflex ] }; - key { [ s, S, U0219, U0218 ] }; - key { [ adiaeresis, Adiaeresis, abreve, Abreve ] }; -}; - -// German Dvorak keymap by Thorsten Staerk (www.staerk.de/thorsten) -// Have acute and grave as dead keys, tilde and circumflex alive as they are needed -// in many programming languages. -// to use this keymap, use a 105-key-keyboard and the command setxkbmap -model pc105 -layout dvorak -variant de -// source: http://www-lehre.informatik.uni-osnabrueck.de/~rfreund/dvorak.php -partial alphanumeric_keys -xkb_symbols "dvorak" { - include "us(dvorak)" - - name[Group1]="German (Dvorak)"; - - key { [ asciicircum, degree ] }; - - key { [ 1, exclam, onesuperior ] }; - key { [ 2, quotedbl, twosuperior ] }; - key { [ 3, section, threesuperior ] }; - key { [ 4, dollar, bar ] }; - key { [ 5, percent, bar ] }; - key { [ 6, ampersand, brokenbar ] }; - key { [ 7, slash, braceleft ] }; - key { [ 8, parenleft, bracketleft ] }; - key { [ 9, parenright, bracketright ] }; - key { [ 0, equal, braceright ] }; - key { [ plus, asterisk, asciitilde ] }; - key { [ less, greater, dead_grave ] }; - - key { [ udiaeresis, Udiaeresis, at ] }; - key { [ comma, semicolon, dead_diaeresis ] }; - key { [ period, colon ] }; - key { [ c, C, copyright, Cacute ] }; - key { [ t, T, trademark ] }; - key { [ z, Z, zabovedot, Zabovedot ] }; - key { [ question, ssharp ] }; - key { [ slash, backslash, dead_acute ] }; - - key { [ a, A, at, aogonek ] }; - key { [ o, O, oacute, Oacute ] }; - key { [ e, E, EuroSign, eogonek ] }; - key { [ i, I ] }; - key { [ u, U ] }; - key { [ h, H ] }; - key { [ d, D ] }; - key { [ r, R, registered ] }; - key { [ n, N, nacute, Nacute ] }; - key { [ s, S, sacute, Sacute] }; - key { [ l, L, lstroke, Lstroke ] }; - - key { [ odiaeresis, Odiaeresis ] }; - key { [ q, Q, at ] }; - key { [ m, M, mu ] }; - key { [ numbersign, apostrophe ] }; - - key { [ minus, underscore, hyphen, diaeresis] }; - - key { [ adiaeresis, Adiaeresis, bar ] }; - - include "level3(ralt_switch)" -}; - - -// German Neo-Layout Version 2 -// adopted 2004 by Hanno Behrens -// inspired by Dvorak/de-ergo http://www.goebel-consult.de/de-ergo/ -// -// Authors: -// Stephan Hilb -// -// Benjamin Kellermann -// Erik Streb -// and many other contributors -// -// http://www.neo-layout.org -// -// $Revision$, $Date$ - -partial alphanumeric_keys modifier_keys keypad_keys -xkb_symbols "neo_base" { - - // Levels in Neo jargon - // -------------------------------------------------------------- - // Ebene 1: normal - // Ebene 2: Shift - // Ebene 3: Mod3 - // Ebene 4: Mod4 (for marking something use Shift + Mod4) - // Ebene 5: Shift + Mod3 - // Ebene 6: Mod3 + Mod4 - // Compose (not a level): Mod3 + Tab - // Feststelltaste (Capslock): Shift + Shift - // Mod4-Lock: Mod4 + Mod4 - // Mod4-Lock: Shift + Mod3 + Tab - - // Legend - // =============== - // Levels in Xkbmap jargon to be found here in the definitions. - // These are the levels used, and Xorg's translations: - // -------------------------------------------------------------- - // Xorg: Level1 Level2 Level3 Level4 Level5 Level6 Level7 Level8 - // Neo: Ebene1 Ebene2 Ebene3 Ebene5 Ebene4 Pseudo-Ebene Ebene6 ??? - // Keys (Neo): None Shift Mod3 Mod3 + Shift Mod4 Mod4 + Shift Mod3 + Mod4 Mod3 + Mod4 + Shift - - - // Alphanumeric-keys - // =============== - key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK"; - - // Tab as Multi_key (Compose) - // -------------------------------------------------------------- - key { [ Tab, ISO_Left_Tab, Multi_key, ISO_Level5_Lock, NoSymbol, NoSymbol, NoSymbol, ISO_Level5_Lock ] }; - - - // Number row - // -------------------------------------------------------------- - key { [ dead_circumflex, dead_caron, U21BB, U02DE, dead_abovedot, Pointer_EnableKeys, dead_belowdot, NoSymbol ] }; - - key { [ 1, degree, onesuperior, onesubscript, ordfeminine, NoSymbol, notsign, NoSymbol ] }; - key { [ 2, section, twosuperior, twosubscript, masculine, NoSymbol, logicalor, NoSymbol ] }; - key { [ 3, U2113, threesuperior, threesubscript, numerosign, NoSymbol, logicaland, NoSymbol ] }; - key { [ 4, guillemotright, U203A, femalesymbol, NoSymbol, NoSymbol, U22A5, NoSymbol ] }; - key { [ 5, guillemotleft, U2039, malesymbol, periodcentered, NoSymbol, U2221, NoSymbol ] }; - key { [ 6, dollar, cent, U26A5, sterling, NoSymbol, U2225, NoSymbol ] }; - - key { [ 7, EuroSign, yen, U03F0, currency, NoSymbol, rightarrow, NoSymbol ] }; - key { [ 8, doublelowquotemark, singlelowquotemark, U27E8, Tab, ISO_Left_Tab, U221E, NoSymbol ] }; - key { [ 9, leftdoublequotemark, leftsinglequotemark, U27E9, KP_Divide, KP_Divide, variation, NoSymbol ] }; - key { [ 0, rightdoublequotemark, rightsinglequotemark, zerosubscript, KP_Multiply, KP_Multiply, emptyset, NoSymbol ] }; - - key { [ minus, emdash, NoSymbol, U2011, KP_Subtract, KP_Subtract, hyphen, NoSymbol ] }; - key { [ dead_grave, dead_cedilla, dead_abovering, dead_dasia, dead_diaeresis, NoSymbol, dead_macron, NoSymbol ] }; - - // Top row - // -------------------------------------------------------------- - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK"; - key { symbols[Group1] = [ x, X, ellipsis, Greek_xi, Prior, Prior, Greek_XI, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ v, V, underscore, NoSymbol, BackSpace, BackSpace, radical, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ l, L, bracketleft, Greek_lambda, Up, Up, Greek_LAMBDA, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ c, C, bracketright, Greek_chi, Delete, Delete, U2102, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ w, W, asciicircum, Greek_omega, Next, Next, Greek_OMEGA, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - - key { [ k, K, exclam, Greek_kappa, exclamdown, NoSymbol, multiply, NoSymbol ] }; - key { [ h, H, less, Greek_psi, KP_7, KP_7, Greek_PSI, NoSymbol ] }; - key { [ g, G, greater, Greek_gamma, KP_8, KP_8, Greek_GAMMA, NoSymbol ] }; - key { [ f, F, equal, Greek_phi, KP_9, KP_9, Greek_PHI, NoSymbol ] }; - key { [ q, Q, ampersand, U03D5, KP_Add, KP_Add, U211A, NoSymbol ] }; - - key { [ ssharp, U1E9E, U017F, Greek_finalsmallsigma, U2212, NoSymbol, jot, NoSymbol ] }; - - key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK"; - key { [ dead_acute, dead_tilde, dead_stroke, dead_psili, dead_doubleacute, NoSymbol, dead_breve, NoSymbol ] }; - - // Middle row - // -------------------------------------------------------------- - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK"; - key { symbols[Group1] = [ u, U, backslash, NoSymbol, Home, Home, includedin, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ i, I, slash, Greek_iota, Left, Left, integral, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ a, A, braceleft, Greek_alpha, Down, Down, U2200, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ e, E, braceright, Greek_epsilon, Right, Right, U2203, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ o, O, asterisk, Greek_omicron, End, End, elementof, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - - key { [ s, S, question, Greek_sigma, questiondown, NoSymbol, Greek_SIGMA, NoSymbol ] }; - key { [ n, N, parenleft, Greek_nu, KP_4, KP_4, U2115, NoSymbol ] }; - key { [ r, R, parenright, Greek_rho, KP_5, KP_5, U211D, NoSymbol ] }; - key { [ t, T, minus, Greek_tau, KP_6, KP_6, partialderivative, NoSymbol ] }; - key { [ d, D, colon, Greek_delta, KP_Separator, comma, Greek_DELTA, NoSymbol ] }; - - key { [ y, Y, at, Greek_upsilon, period, KP_Decimal, nabla, NoSymbol ] }; - - // Bottom row - // -------------------------------------------------------------- - key { symbols[Group1] = [ udiaeresis, Udiaeresis, numbersign, NoSymbol, Escape, Escape, union, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ odiaeresis, Odiaeresis, dollar, U03F5, Tab, Tab, intersection, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ adiaeresis, Adiaeresis, bar, Greek_eta, Insert, Insert, U2135, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ p, P, asciitilde, Greek_pi, Return, Return, Greek_PI, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ z, Z, grave, Greek_zeta, Undo, Redo, U2124, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - - key { [ b, B, plus, Greek_beta, colon, NoSymbol, U21D0, NoSymbol ] }; - key { [ m, M, percent, Greek_mu, KP_1, KP_1, ifonlyif, NoSymbol ] }; - key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK"; - key { [ comma, endash, quotedbl, U03F1, KP_2, KP_2, U21D2, NoSymbol ] }; - key { [ period, enfilledcircbullet, apostrophe, U03D1, KP_3, KP_3, U21A6, NoSymbol ] }; - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK"; - key { [ j, J, semicolon, Greek_theta, semicolon, NoSymbol, Greek_THETA, NoSymbol ] }; - key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK"; - - // Space key - // -------------------------------------------------------------- - key { [ space, space, space, nobreakspace, KP_0, KP_0, U202F, NoSymbol ] }; - - - // Keypad-keys - // =============== - - // The former Numlock key: - key { [ Tab, ISO_Left_Tab, equal, approxeq, notequal, Pointer_EnableKeys, identical, NoSymbol ] }; - - // Topmost row - // -------------------------------------------------------------- - key { [ KP_Divide, KP_Divide, division, U2300, U2215, NoSymbol, U2223, NoSymbol ] }; - key { [ KP_Multiply, KP_Multiply, U22C5, U2299, multiply, NoSymbol, U2297, NoSymbol ] }; - key { [ KP_Subtract, KP_Subtract, U2212, U2296, U2216, NoSymbol, U2238, NoSymbol ] }; - - // Top row - // -------------------------------------------------------------- - key { [ KP_7, U2714, U2195, U226A, KP_Home, KP_Home, upstile, NoSymbol ] }; - key { [ KP_8, U2718, uparrow, intersection, KP_Up, KP_Up, U22C2, NoSymbol ] }; - key { [ KP_9, dagger, U20D7, U226B, KP_Prior, KP_Prior, U2309, NoSymbol ] }; - key { [ KP_Add, KP_Add, plusminus, U2295, U2213, NoSymbol, U2214, NoSymbol ] }; - - // Middle row - // -------------------------------------------------------------- - key { [ KP_4, club, leftarrow, includedin, KP_Left, KP_Left, U2286, NoSymbol ] }; - key { [ KP_5, EuroSign, colon, U22B6, KP_Begin, KP_Begin, U22B7, NoSymbol ] }; - key { [ KP_6, U2023, rightarrow, includes, KP_Right, KP_Right, U2287, NoSymbol ] }; - - // Bottom row - // -------------------------------------------------------------- - key { [ KP_1, diamond, U2194, lessthanequal, KP_End, KP_End, downstile, NoSymbol ] }; - key { [ KP_2, heart, downarrow, union, KP_Down, KP_Down, U22C3, NoSymbol ] }; - key { [ KP_3, U2660, U21CC, greaterthanequal, KP_Next, KP_Next, U230B, NoSymbol ] }; - key { [ KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, KP_Enter, NoSymbol ] }; - key { [ KP_Equal, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - - // Bottommost row - // -------------------------------------------------------------- - key { [ KP_0, U2423, percent, U2030, KP_Insert, KP_Insert, U25A1, NoSymbol ] }; - key { [ KP_Separator, period, comma, minutes, KP_Delete, KP_Delete, seconds, NoSymbol ] }; -}; - -partial alphanumeric_keys modifier_keys keypad_keys -xkb_symbols "neo" { - - include "de(neo_base)" - - name[Group1]= "German (Neo 2)"; - - include "shift(both_capslock)" - include "level3(caps_switch)" - include "level3(bksl_switch)" - include "level5(lsgt_switch_lock)" - include "level5(ralt_switch_lock)" -}; - -// Copied from macintosh_vndr/de -// olh@suse.de very close to MacOS map - -partial alphanumeric_keys -xkb_symbols "mac" { - - include "de" - name[Group1]= "German (Macintosh)"; - - key { [ 1, exclam, exclamdown, at ] }; - key { [ 5, percent, bracketleft ] }; - key { [ 6, ampersand, bracketright ] }; - key { [ 7, slash, bar, backslash ] }; - key { [ 8, parenleft, braceleft, asciitilde ] }; - key { [ 9, parenright, braceright ] }; - key { [ q, Q, guillemotleft, guillemotright ] }; - key { [ r, R, registered ] }; - key { [ u, U, diaeresis, Aacute ] }; - key { [ i, I, slash, Ucircumflex ] }; - key { [ udiaeresis, Udiaeresis, periodcentered, degree ] }; - key { [ plus, asterisk, asciitilde ] }; - key { [ a, A, aring, Aring ] }; - key { [ g, G, copyright ] }; - key { [ h, H, ordfeminine ] }; - key { [ l, L, at ] }; - key { [ odiaeresis, Odiaeresis, dead_acute ] }; - key { [ n, N, asciitilde ] }; -}; - -partial alphanumeric_keys -xkb_symbols "mac_nodeadkeys" { - // modify the standard German mac layout to not have any dead keys - include "de(mac)" - name[Group1]= "German (Macintosh, no dead keys)"; - - key { [ asciicircum, degree, notsign ] }; - key { [ 4, dollar, onequarter, currency ] }; - key { [ acute, grave, cedilla ] }; - key { [ udiaeresis, Udiaeresis, diaeresis ] }; - key { [ plus, asterisk, asciitilde, macron ] }; - key { [ odiaeresis, Odiaeresis, acute ] }; - key { [ adiaeresis, Adiaeresis, asciicircum ] }; - - key { [ numbersign, apostrophe, rightsinglequotemark ] }; -}; - -partial alphanumeric_keys -xkb_symbols "dsb" -{ - include "latin(basic)" - name[Group1] = "Lower Sorbian"; - key { [ z, Z, zcaron, Zcaron ] }; - key { [ x, X, zacute, Zacute ] }; - key { [ c, C, cacute, Cacute ] }; - key { [ v, V, ccaron, Ccaron ] }; - key { [ n, N, nacute, Nacute ] }; - key { [ s, S, sacute, Sacute ] }; - key { [ d, D, scaron, Scaron ] }; - key { [ f, F ] }; - key { [ q, Q ] }; - key { [ w, W ] }; - key { [ e, E, ecaron, Ecaron ] }; - key { [ r, R, racute, Racute ] }; - key { [ t, T, U20B5, EuroSign ] }; - key { [ o, O, oacute, Oacute ] }; - include "kpdl(comma)" - include "level3(ralt_switch)" -}; - -partial alphanumeric_keys -xkb_symbols "dsb_qwertz" -{ - include "latin(basic)" - name[Group1] = "Lower Sorbian (QWERTZ)"; - key { [ y, Y ] }; - key { [ x, X ] }; - key { [ c, C, cacute, Cacute ] }; - key { [ v, V, ccaron, Ccaron ] }; - key { [ n, N, nacute, Nacute ] }; - key { [ s, S, sacute, Sacute ] }; - key { [ d, D, scaron, Scaron ] }; - key { [ f, F ] }; - key { [ q, Q ] }; - key { [ w, W ] }; - key { [ e, E, ecaron, Ecaron ] }; - key { [ r, R, racute, Racute ] }; - key { [ t, T, U20B5, EuroSign ] }; - key { [ z, Z, zcaron, Zcaron ] }; - key { [ u, U, zacute, Zacute ] }; - key { [ o, O, oacute, Oacute ] }; - include "kpdl(comma)" - include "level3(ralt_switch)" -}; - -partial alphanumeric_keys -xkb_symbols "qwerty" { - - // This layout should work exactly as a de with the exception - // of 'Z' and 'Y' keys, which are in the qwerty style (ie. swapped). - // 2008 by Matej Košík - - include "de(basic)" - - name[Group1] = "German (QWERTY)"; - - key { [ z, Z, leftarrow, yen ] }; - key { [ y, Y, guillemotleft, less ] }; -}; - -// layout for Russian letters on an german keyboard -// based on US-RU layout by Ivan Popov 2005-07-17 -// adopted for german layout by Alexey Fisher 2010-08-19 - -partial alphanumeric_keys -xkb_symbols "ru" { - - include "de(basic)" - - name[Group1]= "Russian (Germany, phonetic)"; - - key { [ Cyrillic_a, Cyrillic_A ] }; - key { [ Cyrillic_be, Cyrillic_BE ] }; - key { [ Cyrillic_ve, Cyrillic_VE ] }; - key { [ Cyrillic_ghe, Cyrillic_GHE ] }; - key { [ Cyrillic_de, Cyrillic_DE ] }; - key { [ Cyrillic_ie, Cyrillic_IE ] }; - key { [ Cyrillic_io, Cyrillic_IO, asciitilde ] }; - key { [ Cyrillic_zhe, Cyrillic_ZHE ] }; - key { [ Cyrillic_ze, Cyrillic_ZE ] }; - key { [ Cyrillic_i, Cyrillic_I ] }; - key { [ Cyrillic_shorti, Cyrillic_SHORTI ] }; - key { [ Cyrillic_ka, Cyrillic_KA ] }; - key { [ Cyrillic_el, Cyrillic_EL ] }; - key { [ Cyrillic_em, Cyrillic_EM ] }; - key { [ Cyrillic_en, Cyrillic_EN ] }; - key { [ Cyrillic_o, Cyrillic_O ] }; - key { [ Cyrillic_pe, Cyrillic_PE ] }; - key { [ Cyrillic_er, Cyrillic_ER ] }; - key { [ Cyrillic_es, Cyrillic_ES ] }; - key { [ Cyrillic_te, Cyrillic_TE ] }; - key { [ Cyrillic_u, Cyrillic_U ] }; - key { [ Cyrillic_ef, Cyrillic_EF ] }; - key { [ Cyrillic_ha, Cyrillic_HA ] }; - key { [ Cyrillic_tse, Cyrillic_TSE ] }; - key { [ Cyrillic_che, Cyrillic_CHE ] }; - key { [ Cyrillic_sha, Cyrillic_SHA ] }; - key { [ Cyrillic_shcha, Cyrillic_SHCHA, plus, asterisk ] }; - key { [ Cyrillic_hardsign, Cyrillic_HARDSIGN ] }; - key { [ Cyrillic_yeru, Cyrillic_YERU ] }; - key { [ Cyrillic_softsign, Cyrillic_SOFTSIGN ] }; - key { [ Cyrillic_e, Cyrillic_E ] }; - key { [ Cyrillic_yu, Cyrillic_YU, numbersign, apostrophe ] }; - key { [ Cyrillic_ya, Cyrillic_YA ] }; - - include "level3(ralt_switch)" -}; - -// layout for Russian (recommended) letters on a german keyboard -// based on "Russisch für Deutsche, empfohlen" by B. Bendixen und H. Rothe http://russisch.urz.uni-leipzig.de/key2000.htm 2016-02-01 -// adapted for Linux by Niko Krause 2016-06-09 - -partial alphanumeric_keys -xkb_symbols "ru-recom" { - - include "de(basic)" - - name[Group1]= "Russian (Germany, recommended)"; - - key { [ Cyrillic_a, Cyrillic_A ] }; - key { [ Cyrillic_be, Cyrillic_BE ] }; - key { [ Cyrillic_ve, Cyrillic_VE ] }; - key { [ Cyrillic_ghe, Cyrillic_GHE, Ukrainian_ghe_with_upturn, Ukrainian_GHE_WITH_UPTURN ] }; - key { [ Cyrillic_de, Cyrillic_DE ] }; - key { [ Cyrillic_ie, Cyrillic_IE ] }; - key { [ Cyrillic_ya, Cyrillic_YA, asciicircum, degree ] }; - key { [ Cyrillic_ha, Cyrillic_HA ] }; - key { [ Cyrillic_tse, Cyrillic_TSE ] }; - key { [ Cyrillic_i, Cyrillic_I, Ukrainian_i, Ukrainian_I ] }; - key { [ Cyrillic_shorti, Cyrillic_SHORTI, Ukrainian_yi, Ukrainian_YI ] }; - key { [ Cyrillic_ka, Cyrillic_KA ] }; - key { [ Cyrillic_el, Cyrillic_EL ] }; - key { [ Cyrillic_em, Cyrillic_EM ] }; - key { [ Cyrillic_en, Cyrillic_EN ] }; - key { [ Cyrillic_o, Cyrillic_O ] }; - key { [ Cyrillic_pe, Cyrillic_PE ] }; - key { [ Cyrillic_er, Cyrillic_ER ] }; - key { [ Cyrillic_es, Cyrillic_ES, Cyrillic_ze, Cyrillic_ZE ] }; - key { [ Cyrillic_te, Cyrillic_TE ] }; - key { [ Cyrillic_u, Cyrillic_U ] }; - key { [ Cyrillic_ef, Cyrillic_EF ] }; - key { [ Cyrillic_zhe, Cyrillic_ZHE ] }; - key { [ Cyrillic_che, Cyrillic_CHE ] }; - key { [ Cyrillic_io, Cyrillic_IO ] }; - key { [ Cyrillic_yu, Cyrillic_YU ] }; - key { [ Cyrillic_sha, Cyrillic_SHA, plus, asterisk ] }; - key { [ Cyrillic_ze, Cyrillic_ZE ] }; - key { [ Cyrillic_yeru, Cyrillic_YERU ] }; - key { [ Cyrillic_softsign, Cyrillic_SOFTSIGN ] }; - key { [ Cyrillic_e, Cyrillic_E, Ukrainian_ie, Ukrainian_IE ] }; - key { [ Cyrillic_hardsign, Cyrillic_HARDSIGN, numbersign, apostrophe ] }; - key { [ Cyrillic_shcha, Cyrillic_SHCHA ] }; - - key { [ asciitilde, question, backslash, questiondown ] }; - key { [ U0301, U0300, U0323, U0307 ] }; - - include "level3(ralt_switch)" -}; - -// layout for Russian (transliteration) letters on a german keyboard -// based on "Russisch für Deutsche, Transliteration" by B. Bendixen und H. Rothe http://russisch.urz.uni-leipzig.de/key2000.htm 2016-02-01 -// adapted for Linux by Niko Krause 2016-06-09 - -partial alphanumeric_keys -xkb_symbols "ru-translit" { - - include "de(basic)" - - name[Group1]= "Russian (Germany, transliteration)"; - - key { [ Cyrillic_a, Cyrillic_A ] }; - key { [ Cyrillic_be, Cyrillic_BE ] }; - key { [ Cyrillic_sha, Cyrillic_SHA ] }; - key { [ Cyrillic_ghe, Cyrillic_GHE, Ukrainian_ghe_with_upturn, Ukrainian_GHE_WITH_UPTURN ] }; - key { [ Cyrillic_de, Cyrillic_DE ] }; - key { [ Cyrillic_ie, Cyrillic_IE ] }; - key { [ Cyrillic_ya, Cyrillic_YA, asciicircum, degree ] }; - key { [ Cyrillic_ha, Cyrillic_HA ] }; - key { [ Cyrillic_ze, Cyrillic_ZE ] }; - key { [ Cyrillic_i, Cyrillic_I, Ukrainian_i, Ukrainian_I ] }; - key { [ Cyrillic_shorti, Cyrillic_SHORTI, Ukrainian_yi, Ukrainian_YI ] }; - key { [ Cyrillic_ka, Cyrillic_KA ] }; - key { [ Cyrillic_el, Cyrillic_EL ] }; - key { [ Cyrillic_em, Cyrillic_EM ] }; - key { [ Cyrillic_en, Cyrillic_EN ] }; - key { [ Cyrillic_o, Cyrillic_O ] }; - key { [ Cyrillic_pe, Cyrillic_PE ] }; - key { [ Cyrillic_er, Cyrillic_ER ] }; - key { [ Cyrillic_es, Cyrillic_ES, Cyrillic_che, Cyrillic_CHE ] }; - key { [ Cyrillic_te, Cyrillic_TE ] }; - key { [ Cyrillic_u, Cyrillic_U ] }; - key { [ Cyrillic_ef, Cyrillic_EF ] }; - key { [ Cyrillic_zhe, Cyrillic_ZHE ] }; - key { [ Cyrillic_tse, Cyrillic_TSE ] }; - key { [ Cyrillic_io, Cyrillic_IO ] }; - key { [ Cyrillic_yu, Cyrillic_YU ] }; - key { [ Cyrillic_hardsign, Cyrillic_HARDSIGN, plus, asterisk ] }; - key { [ Cyrillic_che, Cyrillic_CHE ] }; - key { [ Cyrillic_yeru, Cyrillic_YERU ] }; - key { [ Cyrillic_ve, Cyrillic_VE ] }; - key { [ Cyrillic_e, Cyrillic_E, Ukrainian_ie, Ukrainian_IE ] }; - key { [ Cyrillic_softsign, Cyrillic_SOFTSIGN, numbersign, apostrophe ] }; - key { [ Cyrillic_shcha, Cyrillic_SHCHA ] }; - - key { [ asciitilde, question, backslash, questiondown ] }; - key { [ U0301, U0300, U0323, U0307 ] }; - - include "level3(ralt_switch)" -}; - -partial alphanumeric_keys -xkb_symbols "pl" { - - // Combined layout for entering both German and Polish symbols on a German physical - // keyboard. Based on German (no dead keys) and Polish (basic). Polish diacritics - // on AltGr+"acelnosxz". EuroSign moved to AE04 (AltGr+dollar key) to avoid conflict - // with Polish eogonek. - // - // https://github.com/kontextify/xkeyboard-config - - include "latin(type4)" - include "de(nodeadkeys)" - - name[Group1]= "Polish (Germany, no dead keys)"; - - key { [ 4, dollar, EuroSign, currency ] }; - - key { [ q, Q ] }; - key { [ w, W ] }; - key { [ e, E, eogonek, Eogonek ] }; - key { [ o, O, oacute, Oacute ] }; - key { [ a, A, aogonek, Aogonek ] }; - key { [ s, S, sacute, Sacute ] }; - key { [ f, F ] }; - key { [ z, Z, zabovedot, Zabovedot ] }; - key { [ x, X, zacute, Zacute ] }; - key { [ c, C, cacute, Cacute ] }; - key { [ n, N, nacute, Nacute ] }; - - include "kpdl(comma)" - - include "level3(ralt_switch)" -}; - -partial alphanumeric_keys -xkb_symbols "tr" { - - // add turkish-specific letters to the basic German layout. - // Turkish symbols are accessible with combination of and - // 'i', 's', 'g', 'c'' (+ for capital letters). - - include "de(basic)" - - name[Group1]="Turkish (Germany)"; - - key { [ i, I, U0131, U0130 ] }; - key { [ s, S, U015F, U015E ] }; - key { [ g, G, U011F, U011E ] }; - key { [ c, C, U0E7, U0C7 ] }; -}; - -partial alphanumeric_keys -xkb_symbols "us" { - include "us" - - name[Group1]="German (US)"; - - key { [ 3, numbersign, section, degree ] }; - key { [ minus, underscore, ssharp, U1E9E ] }; - - key { [ e, E, EuroSign, cent ] }; - key { [ u, U, udiaeresis, Udiaeresis ] }; - key { [ o, O, odiaeresis, Odiaeresis ] }; - key { [ bracketleft, braceleft, udiaeresis, Udiaeresis ] }; - - key { [ a, A, adiaeresis, Adiaeresis ] }; - key { [ s, S, ssharp, U1E9E ] }; - key { [ semicolon, colon, odiaeresis, Odiaeresis ] }; - key { [ apostrophe, quotedbl, adiaeresis, Adiaeresis ] }; - - key { [ c, C, Multi_key, Multi_key ] }; - key { [ m, M, dead_greek, Menu ] }; - - include "level3(ralt_switch)" -}; - -// EXTRAS: - -partial alphanumeric_keys -xkb_symbols "hu" { - - // modify the basic German layout to not have any dead keys and add Hungarian letters - - include "de(basic)" - name[Group1]="German (with Hungarian letters, no dead keys)"; - - key { [ y, Y, guillemotleft, less ] }; - key { [odiaeresis, Odiaeresis, eacute, Eacute ] }; - key { [adiaeresis, Adiaeresis, aacute, Aacute] }; - key { [ e, E, EuroSign, EuroSign ] }; - key { [ z, Z, leftarrow, yen ] }; - key { [ u, U, uacute, Uacute ] }; - key { [ i, I, iacute, Iacute ] }; - key { [ o, O, odoubleacute, Odoubleacute ] }; - key { [udiaeresis, Udiaeresis, udoubleacute, Udoubleacute ] }; - key { [ plus, asterisk, asciitilde, macron ] }; - key { [ acute, grave, oacute, Oacute ] }; - key { [numbersign, apostrophe, rightsinglequotemark, grave ] }; - key { [asciicircum, degree, notsign, notsign ] }; -}; - -partial alphanumeric_keys - xkb_symbols "sun_type6" { - include "sun_vndr/de(sun_type6)" -}; - -partial alphanumeric_keys -xkb_symbols "adnw_base" { - include "de(neo_base)" - - key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK"; - key { [ period, enfilledcircbullet, NoSymbol, U03D1, NoSymbol, NoSymbol, U21A6, NoSymbol ] }; - key { [ comma, endash, NoSymbol, U03F1, NoSymbol, NoSymbol, U21D2, NoSymbol ] }; - - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK"; - key { [ k, K, NoSymbol, Greek_kappa, NoSymbol, NoSymbol, multiply, NoSymbol ] }; - key { [ u, U, NoSymbol, NoSymbol, NoSymbol, NoSymbol, includedin, NoSymbol ] }; - key { [ udiaeresis, Udiaeresis, NoSymbol, NoSymbol, NoSymbol, NoSymbol, union, NoSymbol ] }; - key { [ adiaeresis, Adiaeresis, NoSymbol, Greek_eta, NoSymbol, NoSymbol, U2135, NoSymbol ] }; - key { [ v, V, NoSymbol, NoSymbol, NoSymbol, NoSymbol, radical, NoSymbol ] }; - key { [ g, G, NoSymbol, Greek_gamma, NoSymbol, NoSymbol, Greek_GAMMA, NoSymbol ] }; - key { [ c, C, NoSymbol, Greek_chi, NoSymbol, NoSymbol, U2102, NoSymbol ] }; - key { [ l, L, NoSymbol, Greek_lambda, NoSymbol, NoSymbol, Greek_LAMBDA, NoSymbol ] }; - key { [ j, J, NoSymbol, Greek_theta, NoSymbol, NoSymbol, Greek_THETA, NoSymbol ] }; - key { [ f, F, NoSymbol, Greek_phi, NoSymbol, NoSymbol, Greek_PHI, NoSymbol ] }; - key { [ h, H, NoSymbol, Greek_psi, NoSymbol, NoSymbol, Greek_PSI, NoSymbol ] }; - key { [ i, I, NoSymbol, Greek_iota, NoSymbol, NoSymbol, integral, NoSymbol ] }; - key { [ e, E, NoSymbol, Greek_epsilon, NoSymbol, NoSymbol, U2203, NoSymbol ] }; - key { [ a, A, NoSymbol, Greek_alpha, NoSymbol, NoSymbol, U2200, NoSymbol ] }; - key { [ o, O, NoSymbol, Greek_omicron, NoSymbol, NoSymbol, elementof, NoSymbol ] }; - key { [ d, D, NoSymbol, Greek_delta, NoSymbol, NoSymbol, Greek_DELTA, NoSymbol ] }; - key { [ t, T, NoSymbol, Greek_tau, NoSymbol, NoSymbol, partialderivative, NoSymbol ] }; - key { [ r, R, NoSymbol, Greek_rho, NoSymbol, NoSymbol, U211D, NoSymbol ] }; - key { [ n, N, NoSymbol, Greek_nu, NoSymbol, NoSymbol, U2115, NoSymbol ] }; - key { [ s, S, NoSymbol, Greek_sigma, NoSymbol, NoSymbol, Greek_SIGMA, NoSymbol ] }; - key { [ ssharp, U1E9E, NoSymbol, Greek_finalsmallsigma, NoSymbol, NoSymbol, jot, NoSymbol ] }; - key { [ x, X, NoSymbol, Greek_xi, NoSymbol, NoSymbol, Greek_XI, NoSymbol ] }; - key { [ y, Y, NoSymbol, Greek_upsilon, NoSymbol, NoSymbol, nabla, NoSymbol ] }; - key { [ odiaeresis, Odiaeresis, NoSymbol, U03F5, NoSymbol, NoSymbol, intersection, NoSymbol ] }; - key { [ q, Q, NoSymbol, U03D5, NoSymbol, NoSymbol, U211A, NoSymbol ] }; - key { [ b, B, NoSymbol, Greek_beta, NoSymbol, NoSymbol, U21D0, NoSymbol ] }; - key { [ p, P, NoSymbol, Greek_pi, NoSymbol, NoSymbol, Greek_PI, NoSymbol ] }; - key { [ w, W, NoSymbol, Greek_omega, NoSymbol, NoSymbol, Greek_OMEGA, NoSymbol ] }; - key { [ m, M, NoSymbol, Greek_mu, NoSymbol, NoSymbol, ifonlyif, NoSymbol ] }; - key { [ z, Z, NoSymbol, Greek_zeta, NoSymbol, NoSymbol, U2124, NoSymbol ] }; -}; - -partial alphanumeric_keys modifier_keys keypad_keys -xkb_symbols "adnw" { - - include "de(adnw_base)" - - name[Group1]= "German (Aus der Neo-Welt)"; - - include "shift(both_capslock)" - include "level3(caps_switch)" - include "level3(bksl_switch)" - include "level5(lsgt_switch_lock)" - include "level5(ralt_switch_lock)" -}; - -partial alphanumeric_keys -xkb_symbols "koy_base" { - include "de(neo_base)" - - key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK"; - key { [ period, enfilledcircbullet, NoSymbol, U03D1, NoSymbol, NoSymbol, U21A6, NoSymbol ] }; - key { [ comma, endash, NoSymbol, U03F1, NoSymbol, NoSymbol, U21D2, NoSymbol ] }; - - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK"; - key { [ k, K, NoSymbol, Greek_kappa, NoSymbol, NoSymbol, multiply, NoSymbol ] }; - key { [ o, O, NoSymbol, Greek_omicron, NoSymbol, NoSymbol, elementof, NoSymbol ] }; - key { [ y, Y, NoSymbol, Greek_upsilon, NoSymbol, NoSymbol, nabla, NoSymbol ] }; - key { [ v, V, NoSymbol, NoSymbol, NoSymbol, NoSymbol, radical, NoSymbol ] }; - key { [ g, G, NoSymbol, Greek_gamma, NoSymbol, NoSymbol, Greek_GAMMA, NoSymbol ] }; - key { [ c, C, NoSymbol, Greek_chi, NoSymbol, NoSymbol, U2102, NoSymbol ] }; - key { [ l, L, NoSymbol, Greek_lambda, NoSymbol, NoSymbol, Greek_LAMBDA, NoSymbol ] }; - key { [ ssharp, U1E9E, NoSymbol, Greek_finalsmallsigma, NoSymbol, NoSymbol, jot, NoSymbol ] }; - key { [ z, Z, NoSymbol, Greek_zeta, NoSymbol, NoSymbol, U2124, NoSymbol ] }; - key { [ h, H, NoSymbol, Greek_psi, NoSymbol, NoSymbol, Greek_PSI, NoSymbol ] }; - key { [ a, A, NoSymbol, Greek_alpha, NoSymbol, NoSymbol, U2200, NoSymbol ] }; - key { [ e, E, NoSymbol, Greek_epsilon, NoSymbol, NoSymbol, U2203, NoSymbol ] }; - key { [ i, I, NoSymbol, Greek_iota, NoSymbol, NoSymbol, integral, NoSymbol ] }; - key { [ u, U, NoSymbol, NoSymbol, NoSymbol, NoSymbol, includedin, NoSymbol ] }; - key { [ d, D, NoSymbol, Greek_delta, NoSymbol, NoSymbol, Greek_DELTA, NoSymbol ] }; - key { [ t, T, NoSymbol, Greek_tau, NoSymbol, NoSymbol, partialderivative, NoSymbol ] }; - key { [ r, R, NoSymbol, Greek_rho, NoSymbol, NoSymbol, U211D, NoSymbol ] }; - key { [ n, N, NoSymbol, Greek_nu, NoSymbol, NoSymbol, U2115, NoSymbol ] }; - key { [ s, S, NoSymbol, Greek_sigma, NoSymbol, NoSymbol, Greek_SIGMA, NoSymbol ] }; - key { [ f, F, NoSymbol, Greek_phi, NoSymbol, NoSymbol, Greek_PHI, NoSymbol ] }; - key { [ x, X, NoSymbol, Greek_xi, NoSymbol, NoSymbol, Greek_XI, NoSymbol ] }; - key { [ q, Q, NoSymbol, U03D5, NoSymbol, NoSymbol, U211A, NoSymbol ] }; - key { [ adiaeresis, Adiaeresis, NoSymbol, Greek_eta, NoSymbol, NoSymbol, U2135, NoSymbol ] }; - key { [ udiaeresis, Udiaeresis, NoSymbol, NoSymbol, NoSymbol, NoSymbol, union, NoSymbol ] }; - key { [ odiaeresis, Odiaeresis, NoSymbol, U03F5, NoSymbol, NoSymbol, intersection, NoSymbol ] }; - key { [ b, B, NoSymbol, Greek_beta, NoSymbol, NoSymbol, U21D0, NoSymbol ] }; - key { [ p, P, NoSymbol, Greek_pi, NoSymbol, NoSymbol, Greek_PI, NoSymbol ] }; - key { [ w, W, NoSymbol, Greek_omega, NoSymbol, NoSymbol, Greek_OMEGA, NoSymbol ] }; - key { [ m, M, NoSymbol, Greek_mu, NoSymbol, NoSymbol, ifonlyif, NoSymbol ] }; - key { [ j, J, NoSymbol, Greek_theta, NoSymbol, NoSymbol, Greek_THETA, NoSymbol ] }; -}; - -partial alphanumeric_keys modifier_keys keypad_keys -xkb_symbols "koy" { - - include "de(koy_base)" - - name[Group1]= "German (KOY)"; - - include "shift(both_capslock)" - include "level3(caps_switch)" - include "level3(bksl_switch)" - include "level5(lsgt_switch_lock)" - include "level5(ralt_switch_lock)" -}; - -partial alphanumeric_keys modifier_keys keypad_keys -xkb_symbols "kou" { - - include "de(koy_base)" - - key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK"; - // level 4: replace numero sign by heavy check mark (key 3) - key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, U2714, NoSymbol, NoSymbol, NoSymbol ] }; - - // level 4: use unused place for heavy ballot X (key 4) - key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, U2718, NoSymbol, NoSymbol, NoSymbol ] }; - - // level 4: replace middle dot on key 5 with WHITE MEDIUM STAR - key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, U2B50, NoSymbol, NoSymbol, NoSymbol ] }; - - // level 4: move middle dot "·" from key 5 to key 7 (replacing the currency sign "¤") - key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, periodcentered, NoSymbol, NoSymbol, NoSymbol ] }; - - // move comma and endash to QWERTZ-C key - key { [ comma, endash, NoSymbol, U03F1, NoSymbol, NoSymbol, U21D2, NoSymbol ] }; - - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK"; - // move f and ssharp keys to new positions, replace at by rightarrow; level4: replace period with semicolon - key { [ f, F, ampersand, Greek_phi, KP_Add, KP_Add, Greek_PHI, NoSymbol ] }; - key { [ ssharp, U1E9E, rightarrow, Greek_finalsmallsigma, semicolon, KP_Decimal, jot, NoSymbol ] }; - - // rotate x, q, z, j and v - key { [ q, Q, NoSymbol, U03D5, NoSymbol, NoSymbol, U211A, NoSymbol ] }; - key { [ j, J, NoSymbol, Greek_theta, NoSymbol, NoSymbol, Greek_THETA, NoSymbol ] }; - key { [ z, Z, NoSymbol, Greek_zeta, NoSymbol, NoSymbol, U2124, NoSymbol ] }; - key { [ x, X, NoSymbol, Greek_xi, NoSymbol, NoSymbol, Greek_XI, NoSymbol ] }; - key { [ v, V, NoSymbol, radical, NoSymbol, NoSymbol, multiply, NoSymbol ] }; - - // swap u, y and ä (and comma, but not here) - key { [ u, U, NoSymbol, NoSymbol, NoSymbol, NoSymbol, includedin, NoSymbol ] }; - key { [ y, Y, NoSymbol, Greek_upsilon, NoSymbol, NoSymbol, nabla, NoSymbol ] }; - key { [ adiaeresis, Adiaeresis, NoSymbol, Greek_eta, NoSymbol, NoSymbol, U2135, NoSymbol ] }; - - // swap b, d and p - key { [ b, B, NoSymbol, Greek_beta, NoSymbol, NoSymbol, U21D0, NoSymbol ] }; - key { [ p, P, NoSymbol, Greek_pi, NoSymbol, NoSymbol, Greek_PI, NoSymbol ] }; - key { [ d, D, NoSymbol, Greek_delta, NoSymbol, NoSymbol, Greek_DELTA, NoSymbol ] }; - - // level3: replace long s by Euro sign - key { [ NoSymbol, NoSymbol, EuroSign, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - - // level3: put braces ({, }) in upper row - key { symbols[Group1] = [ NoSymbol, NoSymbol, braceleft, NoSymbol, Up, NoSymbol, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), NoAction(), NoAction(), NoAction() ]}; - key { [ NoSymbol, NoSymbol, braceright, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - - // level3: swap underscore and percent - key { [ NoSymbol, NoSymbol, percent, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ NoSymbol, NoSymbol, underscore, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - - // level3: replace … by @ - key { [ NoSymbol, NoSymbol, at, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - - // level3: rearrangement of the home row - key { symbols[Group1] = [ NoSymbol, NoSymbol, bar, NoSymbol, Home, Home, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ NoSymbol, NoSymbol, grave, NoSymbol, Left, Left, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ NoSymbol, NoSymbol, parenleft, NoSymbol, Down, Down, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ NoSymbol, NoSymbol, parenright, NoSymbol, Right, Right, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - - key { [ NoSymbol, NoSymbol, slash, NoSymbol, 4, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ NoSymbol, NoSymbol, colon, NoSymbol, 5, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ NoSymbol, NoSymbol, underscore, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - - // level3: rearrangement of the bottom row - key { [ NoSymbol, NoSymbol, bracketleft, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ NoSymbol, NoSymbol, bracketright, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ NoSymbol, NoSymbol, dollar, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ NoSymbol, NoSymbol, quotedbl, NoSymbol, 1, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ NoSymbol, NoSymbol, apostrophe, NoSymbol, 2, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ NoSymbol, NoSymbol, backslash, NoSymbol, 3, NoSymbol, NoSymbol, NoSymbol ] }; - - - // level 4: rotate page down, backspace and delete - key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Next, Next, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, BackSpace, BackSpace, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Delete, Delete, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - - // level4: rotate escape, insert and return; replace undo with thumbs up sign - key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Insert, Insert, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Return, Return, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { symbols[Group1] = [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, Escape, Escape, NoSymbol, NoSymbol ], - actions[Group1] = [ NoAction(), NoAction(), NoAction(), NoAction(), RedirectKey(key=), RedirectKey(key=), NoAction(), NoAction() ]}; - key { [NoSymbol, NoSymbol, NoSymbol, NoSymbol, underscore, Undo, NoSymbol, NoSymbol ]}; - - // level4: swap . and ; - // key BKSL was already changed above - // key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, semicolon, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, period, KP_Decimal, NoSymbol, NoSymbol ] }; - - // level4: replace ¡ by : - key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, colon, NoSymbol, NoSymbol, NoSymbol ] }; - - // level4: replace ¿ by - - key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, minus, NoSymbol, NoSymbol, NoSymbol ] }; - - // level4: replace : by _ - key { [ NoSymbol, NoSymbol, NoSymbol, NoSymbol, 0, NoSymbol, NoSymbol, NoSymbol ] }; - - name[Group1]= "German (KOU)"; - - include "shift(both_capslock)" - include "level3(caps_switch)" - // use quote key (a-umlaut on German keyboards) as Mod3 switch - include "level3(quote_switch)" - include "level5(lsgt_switch_lock)" - include "level5(ralt_switch_lock)" -}; - -partial alphanumeric_keys -xkb_symbols "vou" { - include "de(kou)" - - key { [ k, K, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ v, V, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ l, L, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ h, H, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - key { [ c, C, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol, NoSymbol ] }; - - name[Group1]= "German (VOU)"; - - include "shift(both_capslock)" - include "level3(caps_switch)" - // use quote key (a-umlaut on German keyboards) as Mod3 switch - include "level3(quote_switch)" - include "level5(lsgt_switch_lock)" - include "level5(ralt_switch_lock)" -}; - -partial alphanumeric_keys -xkb_symbols "bone_base" { - include "de(neo_base)" - - key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK"; - key { [ comma, endash, NoSymbol, U03F1, NoSymbol, NoSymbol, U21D2, NoSymbol ] }; - key { [ period, enfilledcircbullet, NoSymbol, U03D1, NoSymbol, NoSymbol, U21A6, NoSymbol ] }; - - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK"; - key { [ j, J, NoSymbol, Greek_theta, NoSymbol, NoSymbol, Greek_THETA, NoSymbol ] }; - key { [ d, D, NoSymbol, Greek_delta, NoSymbol, NoSymbol, Greek_DELTA, NoSymbol ] }; - key { [ u, U, NoSymbol, NoSymbol, NoSymbol, NoSymbol, includedin, NoSymbol ] }; - key { [ a, A, NoSymbol, Greek_alpha, NoSymbol, NoSymbol, U2200, NoSymbol ] }; - key { [ x, X, NoSymbol, Greek_xi, NoSymbol, NoSymbol, Greek_XI, NoSymbol ] }; - key { [ p, P, NoSymbol, Greek_pi, NoSymbol, NoSymbol, Greek_PI, NoSymbol ] }; - key { [ h, H, NoSymbol, Greek_psi, NoSymbol, NoSymbol, Greek_PSI, NoSymbol ] }; - key { [ l, L, NoSymbol, Greek_lambda, NoSymbol, NoSymbol, Greek_LAMBDA, NoSymbol ] }; - key { [ m, M, NoSymbol, Greek_mu, NoSymbol, NoSymbol, ifonlyif, NoSymbol ] }; - key { [ w, W, NoSymbol, Greek_omega, NoSymbol, NoSymbol, Greek_OMEGA, NoSymbol ] }; - key { [ ssharp, U1E9E, NoSymbol, Greek_finalsmallsigma, NoSymbol, NoSymbol, jot, NoSymbol ] }; - key { [ c, C, NoSymbol, Greek_chi, NoSymbol, NoSymbol, U2102, NoSymbol ] }; - key { [ t, T, NoSymbol, Greek_tau, NoSymbol, NoSymbol, partialderivative, NoSymbol ] }; - key { [ i, I, NoSymbol, Greek_iota, NoSymbol, NoSymbol, integral, NoSymbol ] }; - key { [ e, E, NoSymbol, Greek_epsilon, NoSymbol, NoSymbol, U2203, NoSymbol ] }; - key { [ o, O, NoSymbol, Greek_omicron, NoSymbol, NoSymbol, elementof, NoSymbol ] }; - key { [ b, B, NoSymbol, Greek_beta, NoSymbol, NoSymbol, U21D0, NoSymbol ] }; - key { [ n, N, NoSymbol, Greek_nu, NoSymbol, NoSymbol, U2115, NoSymbol ] }; - key { [ r, R, NoSymbol, Greek_rho, NoSymbol, NoSymbol, U211D, NoSymbol ] }; - key { [ s, S, NoSymbol, Greek_sigma, NoSymbol, NoSymbol, Greek_SIGMA, NoSymbol ] }; - key { [ g, G, NoSymbol, Greek_gamma, NoSymbol, NoSymbol, Greek_GAMMA, NoSymbol ] }; - key { [ q, Q, NoSymbol, U03D5, NoSymbol, NoSymbol, U211A, NoSymbol ] }; - key { [ f, F, NoSymbol, Greek_phi, NoSymbol, NoSymbol, Greek_PHI, NoSymbol ] }; - key { [ v, V, NoSymbol, NoSymbol, NoSymbol, NoSymbol, radical, NoSymbol ] }; - key { [ udiaeresis, Udiaeresis, NoSymbol, NoSymbol, NoSymbol, NoSymbol, union, NoSymbol ] }; - key { [ adiaeresis, Adiaeresis, NoSymbol, Greek_eta, NoSymbol, NoSymbol, U2135, NoSymbol ] }; - key { [ odiaeresis, Odiaeresis, NoSymbol, U03F5, NoSymbol, NoSymbol, intersection, NoSymbol ] }; - key { [ y, Y, NoSymbol, Greek_upsilon, NoSymbol, NoSymbol, nabla, NoSymbol ] }; - key { [ z, Z, NoSymbol, Greek_zeta, NoSymbol, NoSymbol, U2124, NoSymbol ] }; - key { [ k, K, NoSymbol, Greek_kappa, NoSymbol, NoSymbol, multiply, NoSymbol ] }; -}; - -partial alphanumeric_keys modifier_keys keypad_keys -xkb_symbols "bone" { - - include "de(bone_base)" - - name[Group1]= "German (Bone)"; - - include "shift(both_capslock)" - include "level3(caps_switch)" - include "level3(bksl_switch)" - include "level5(lsgt_switch_lock)" - include "level5(ralt_switch_lock)" -}; - -partial alphanumeric_keys -xkb_symbols "bone_eszett_home_base" { - include "de(bone_base)" - - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK"; - key { [ q, Q, NoSymbol, U03D5, NoSymbol, NoSymbol, U211A, NoSymbol ] }; - key { [ ssharp, U1E9E, NoSymbol, Greek_finalsmallsigma, NoSymbol, NoSymbol, jot, NoSymbol ] }; -}; - -partial alphanumeric_keys modifier_keys keypad_keys -xkb_symbols "bone_eszett_home" { - - include "de(bone_eszett_home_base)" - - name[Group1]= "German (Bone, eszett in the home row)"; - - include "shift(both_capslock)" - include "level3(caps_switch)" - include "level3(bksl_switch)" - include "level5(lsgt_switch_lock)" - include "level5(ralt_switch_lock)" -}; - -partial alphanumeric_keys -xkb_symbols "neo_qwertz_base" { - include "de(neo_base)" - - key.type[Group1] = "EIGHT_LEVEL_LEVEL_FIVE_LOCK"; - key { [ comma, endash, NoSymbol, U03F1, NoSymbol, NoSymbol, U21D2, NoSymbol ] }; - key { [ period, enfilledcircbullet, NoSymbol, U03D1, NoSymbol, NoSymbol, U21A6, NoSymbol ] }; - key { [ minus, emdash, NoSymbol, U2011, NoSymbol, NoSymbol, hyphen, NoSymbol ] }; - - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK"; - key { [ ssharp, U1E9E, NoSymbol, Greek_finalsmallsigma, NoSymbol, NoSymbol, jot, NoSymbol ] }; - key { [ q, Q, NoSymbol, U03D5, NoSymbol, NoSymbol, U211A, NoSymbol ] }; - key { [ w, W, NoSymbol, Greek_omega, NoSymbol, NoSymbol, Greek_OMEGA, NoSymbol ] }; - key { [ e, E, NoSymbol, Greek_epsilon, NoSymbol, NoSymbol, U2203, NoSymbol ] }; - key { [ r, R, NoSymbol, Greek_rho, NoSymbol, NoSymbol, U211D, NoSymbol ] }; - key { [ t, T, NoSymbol, Greek_tau, NoSymbol, NoSymbol, partialderivative, NoSymbol ] }; - key { [ z, Z, NoSymbol, Greek_zeta, NoSymbol, NoSymbol, U2124, NoSymbol ] }; - key { [ u, U, NoSymbol, NoSymbol, NoSymbol, NoSymbol, includedin, NoSymbol ] }; - key { [ i, I, NoSymbol, Greek_iota, NoSymbol, NoSymbol, integral, NoSymbol ] }; - key { [ o, O, NoSymbol, Greek_omicron, NoSymbol, NoSymbol, elementof, NoSymbol ] }; - key { [ p, P, NoSymbol, Greek_pi, NoSymbol, NoSymbol, Greek_PI, NoSymbol ] }; - key { [ udiaeresis, Udiaeresis, NoSymbol, NoSymbol, NoSymbol, NoSymbol, union, NoSymbol ] }; - key { [ a, A, NoSymbol, Greek_alpha, NoSymbol, NoSymbol, U2200, NoSymbol ] }; - key { [ s, S, NoSymbol, Greek_sigma, NoSymbol, NoSymbol, Greek_SIGMA, NoSymbol ] }; - key { [ d, D, NoSymbol, Greek_delta, NoSymbol, NoSymbol, Greek_DELTA, NoSymbol ] }; - key { [ f, F, NoSymbol, Greek_phi, NoSymbol, NoSymbol, Greek_PHI, NoSymbol ] }; - key { [ g, G, NoSymbol, Greek_gamma, NoSymbol, NoSymbol, Greek_GAMMA, NoSymbol ] }; - key { [ h, H, NoSymbol, Greek_psi, NoSymbol, NoSymbol, Greek_PSI, NoSymbol ] }; - key { [ j, J, NoSymbol, Greek_theta, NoSymbol, NoSymbol, Greek_THETA, NoSymbol ] }; - key { [ k, K, NoSymbol, Greek_kappa, NoSymbol, NoSymbol, multiply, NoSymbol ] }; - key { [ l, L, NoSymbol, Greek_lambda, NoSymbol, NoSymbol, Greek_LAMBDA, NoSymbol ] }; - key { [ odiaeresis, Odiaeresis, NoSymbol, U03F5, NoSymbol, NoSymbol, intersection, NoSymbol ] }; - key { [ adiaeresis, Adiaeresis, NoSymbol, Greek_eta, NoSymbol, NoSymbol, U2135, NoSymbol ] }; - key { [ y, Y, NoSymbol, Greek_upsilon, NoSymbol, NoSymbol, nabla, NoSymbol ] }; - key { [ x, X, NoSymbol, Greek_xi, NoSymbol, NoSymbol, Greek_XI, NoSymbol ] }; - key { [ c, C, NoSymbol, Greek_chi, NoSymbol, NoSymbol, U2102, NoSymbol ] }; - key { [ v, V, NoSymbol, NoSymbol, NoSymbol, NoSymbol, radical, NoSymbol ] }; - key { [ b, B, NoSymbol, Greek_beta, NoSymbol, NoSymbol, U21D0, NoSymbol ] }; - key { [ n, N, NoSymbol, Greek_nu, NoSymbol, NoSymbol, U2115, NoSymbol ] }; - key { [ m, M, NoSymbol, Greek_mu, NoSymbol, NoSymbol, ifonlyif, NoSymbol ] }; -}; - -partial alphanumeric_keys modifier_keys keypad_keys -xkb_symbols "neo_qwertz" { - - include "de(neo_qwertz_base)" - - name[Group1]= "German (Neo, QWERTZ)"; - - include "shift(both_capslock)" - include "level3(caps_switch)" - include "level3(bksl_switch)" - include "level5(lsgt_switch_lock)" - include "level5(ralt_switch_lock)" -}; - -partial alphanumeric_keys -xkb_symbols "neo_qwerty_base" { - include "de(neo_qwertz_base)" - - key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC_LEVEL_FIVE_LOCK"; - key { [ y, Y, NoSymbol, Greek_upsilon, NoSymbol, NoSymbol, nabla, NoSymbol ] }; - key { [ z, Z, NoSymbol, Greek_zeta, NoSymbol, NoSymbol, U2124, NoSymbol ] }; -}; - -partial alphanumeric_keys modifier_keys keypad_keys -xkb_symbols "neo_qwerty" { - - include "de(neo_qwerty_base)" - - name[Group1]= "German (Neo, QWERTY)"; - - include "shift(both_capslock)" - include "level3(caps_switch)" - include "level3(bksl_switch)" - include "level5(lsgt_switch_lock)" - include "level5(ralt_switch_lock)" -}; - -partial alphanumeric_keys - xkb_symbols "lld" { - include "de(basic)" - name[Group1] = "German (Ladin)"; - - key { [ p, P, ediaeresis, Ediaeresis ] }; -}; diff --git a/symbols/level3 b/symbols/level3 deleted file mode 100644 index 4422626..0000000 --- a/symbols/level3 +++ /dev/null @@ -1,239 +0,0 @@ -// These partial variants assign ISO_Level3_Shift to various XKB keycodes -// so that the third shift level can be reached. - -// The default behaviour: -// the right Alt key (AltGr) chooses the third symbol engraved on a key. -default partial modifier_keys -xkb_symbols "ralt_switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// Ensure a mapping to a real modifier for LevelThree. -partial modifier_keys -xkb_symbols "modifier_mapping" { - replace key { - type[Group1] = "ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - modifier_map Mod5 { }; -}; - -// The right Alt key never chooses the third level. -// This option attempts to undo the effect of a layout's inclusion of -// 'ralt_switch'. You may want to also select another level3 option -// to map the level3 shift to some other key. -partial modifier_keys -xkb_symbols "ralt_alt" { - key { - type[Group1]="TWO_LEVEL", - type[Group2]="TWO_LEVEL", - type[Group3]="TWO_LEVEL", - type[Group4]="TWO_LEVEL", - symbols[Group1] = [ Alt_R, Meta_R ], - symbols[Group2] = [ Alt_R, Meta_R ], - symbols[Group3] = [ Alt_R, Meta_R ], - symbols[Group4] = [ Alt_R, Meta_R ] - }; - modifier_map Mod1 { }; -}; - -// The right Alt key (while pressed) chooses the third shift level, -// and Compose is mapped to its second level. -partial modifier_keys -xkb_symbols "ralt_switch_multikey" { - key { - type[Group1]="TWO_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift, Multi_key ] - }; - include "level3(modifier_mapping)" -}; - -// A special case of the right-Alt switch -- for use with grp:alts_toggle. -hidden partial modifier_keys -xkb_symbols "ralt_switch_for_alts_toggle" { - virtual_modifiers LAlt, AltGr; - key { - type[Group1]="PC_RALT_LEVEL2", - symbols[Group1] = [ Alt_L, ISO_Prev_Group, ISO_Prev_Group ], - virtualMods= LAlt - }; - key { - type[Group1]="PC_ALT_LEVEL2", - symbols[Group1] = [ ISO_Level3_Shift, ISO_Next_Group ], - virtualMods= AltGr - }; - include "level3(modifier_mapping)" -}; - -// Either Alt key (while pressed) chooses the third shift level. -// (To be used mostly to imitate Mac OS functionality.) -partial modifier_keys -xkb_symbols "alt_switch" { - include "level3(lalt_switch)" - include "level3(ralt_switch)" -}; - -// The left Alt key (while pressed) chooses the third shift level. -partial modifier_keys -xkb_symbols "lalt_switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// The right Ctrl key (while pressed) chooses the third shift level. -partial modifier_keys -xkb_symbols "switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// The Menu key (while pressed) chooses the third shift level. -partial modifier_keys -xkb_symbols "menu_switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// Either Win key (while pressed) chooses the third shift level. -partial modifier_keys -xkb_symbols "win_switch" { - include "level3(lwin_switch)" - include "level3(rwin_switch)" -}; - -// The left Win key (while pressed) chooses the third shift level. -partial modifier_keys -xkb_symbols "lwin_switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// The right Win key (while pressed) chooses the third shift level. -// (When using this map, you should set your keyboard as pc101 or pc102 -// instead of pc104 or pc105.) -partial modifier_keys -xkb_symbols "rwin_switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// The Enter key on the kepypad (while pressed) chooses the third shift level. -// (This is especially useful for Mac laptops which miss the right Alt key.) -partial modifier_keys -xkb_symbols "enter_switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// The CapsLock key (while pressed) chooses the third shift level. -partial modifier_keys -xkb_symbols "caps_switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// The Backslash key (while pressed) chooses the third shift level. -partial modifier_keys -xkb_symbols "bksl_switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// The Quote key (while pressed) chooses the third shift level. -partial modifier_keys -xkb_symbols "quote_switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// The Less/Greater key (while pressed) chooses the third shift level. -partial modifier_keys -xkb_symbols "lsgt_switch" { - key { - type[Group1]="ONE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// The CapsLock key (while pressed) chooses the third shift level, -// and latches when pressed together with another third-level chooser. -partial modifier_keys -xkb_symbols "caps_switch_latch" { - key { - type[Group1]="THREE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Latch ] - }; - include "level3(modifier_mapping)" -}; - -// The Backslash key (while pressed) chooses the third shift level, -// and latches when pressed together with another third-level chooser. -partial modifier_keys -xkb_symbols "bksl_switch_latch" { - key { - type[Group1]="THREE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Latch ] - }; - include "level3(modifier_mapping)" -}; - -// The Less/Greater key (while pressed) chooses the third shift level, -// and latches when pressed together with another third-level chooser. -partial modifier_keys -xkb_symbols "lsgt_switch_latch" { - key { - type[Group1]="THREE_LEVEL", - symbols[Group1] = [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Latch ] - }; - include "level3(modifier_mapping)" -}; - -// Number key 4 chooses third shift level when pressed in isolation. -partial modifier_keys -xkb_symbols "4_switch_isolated" { - override key { - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -}; - -// Number key 9 chooses third shift level when pressed in isolation. -partial modifier_keys -xkb_symbols "9_switch_isolated" { - override key { - symbols[Group1] = [ ISO_Level3_Shift ] - }; - include "level3(modifier_mapping)" -};