summaryrefslogtreecommitdiffstats
path: root/linux/X/de
diff options
context:
space:
mode:
Diffstat (limited to 'linux/X/de')
-rw-r--r--linux/X/de101
1 files changed, 57 insertions, 44 deletions
diff --git a/linux/X/de b/linux/X/de
index ca205d3..08a823f 100644
--- a/linux/X/de
+++ b/linux/X/de
@@ -216,6 +216,7 @@ xkb_symbols "sundeadkeys" {
// inspired by Dvorak/de-ergo http://www.goebel-consult.de/de-ergo/
//
// Authors:
+// Stephan Hilb <stephan at ehilb dot de>
// <lucky at zankt dot net>
// Benjamin Kellermann <Benjamin dot Kellermann at gmx dot Germany>
// Erik Streb <mail at erikstreb dot de>
@@ -240,66 +241,74 @@ xkb_symbols "neo" {
// Ebene 6: Mod3 + Mod4
// Compose (not a level): Mod3 + Tab
// Feststelltaste (Capslock): Shift + Shift
- // Mod3-Lock: Mod3 + Mod3
// Mod4-Lock: Mod4 + Mod4
//
- // Levels in Xkbmap jargon to be found here in the definitions.
- // These are the levels used, and Xorg's translations with type="EIGHT_LEVEL":
- // --------------------------------------------------------------
- // Legend
- // ===============
- // I don't think we need EIGHT_LEVEL_ALPHABETIC because the Lock gets deactivated
- // as soon as a Shift-key is pressed.
- // Therefore there is no need for Lock + Shift.
- // key.type[Group1] = "EIGHT_LEVEL_ALPHABETIC";
- key.type[Group1] = "EIGHT_LEVEL";
-
- // Xorg: Level1 Level2 Level3 Level4 Level5 Level6 Level7 Level8
- // Neo: Ebene1 Ebene2 Ebene4 ??? Ebene3 Ebene5 Ebene6 ???
- // Keys (Neo): None Shift Mod4 Mod4 + Shift Mod3 Mod3 + Shift Mod3 + Mod4 Mod3 + Mod4 + Shift
+ // NOTE: To get the desired Mod4-Lock the real modifier Mod2 was misused in order to get control over the lock-state!
+ // I wasn't able to get it working with a virtual modifier and I think its not that fatal, because Num-Lock (the original use for Mod2) isn't used in Neo anyways.
// Modifier-keys
// ===============
- // FIXME Force norepeat is not working correctly:
- // key <BKSL> { repeat = false };
- // key <LSGT> { repeat = false };
- // key <RALT> { repeat = false };
-
// Shift
// --------------------------------------------------------------
- // Redefinition of both Shift-keys in order to get the desired "Shift + Shift = Shift_Lock"
- key <LFSH> { [ Shift_L, Shift_Lock, Shift_L, Shift_Lock, Shift_L, Shift_Lock, Shift_L, Shift_Lock ] };
- key <RTSH> { [ Shift_R, Shift_Lock, Shift_R, Shift_Lock, Shift_R, Shift_Lock, Shift_R, Shift_Lock ] };
+ // Shift + Shift = Caps_Lock
+ key.type[Group1] = "TWO_LEVEL";
+ key <LFSH> {
+ symbols[Group1] = [ Shift_L, Caps_Lock ],
+ actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ]
+ };
+ key <RTSH> {
+ symbols[Group1] = [ Shift_R, Caps_Lock ],
+ actions[Group1] = [ SetMods(modifiers=Shift), LockMods(modifiers=Lock) ]
+ };
// Neo-Mod3
// --------------------------------------------------------------
- // Mod3 + Mod3 = Mod3_Lock
- key <LSGT> { [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Lock, ISO_Level3_Lock, ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Lock, ISO_Level3_Lock ] };
- key <RALT> { [ ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Lock, ISO_Level3_Lock, ISO_Level3_Shift, ISO_Level3_Shift, ISO_Level3_Lock, ISO_Level3_Lock ] };
- // The following is also done somewhere else, but I couldn't find where and since the
- // modifier_map is needed by ISO_Level5 too (see below) I'm adding it here.
- // Also see how Level-switching is done in "symbols/level3(ralt_switch)"
- modifier_map Mod5 { ISO_Level3_Shift }; // optional
- // This ^^^^ has nothing to do with the "Neo-Mod-Keys"!
+ key.type[Group1] = "ONE_LEVEL";
+ key <CAPS> {
+ vmods = LevelFive,
+ symbols[Group1] = [ ISO_Level3_Shift ],
+ actions[Group1] = [ SetMods(modifiers=LevelFive) ]
+ };
+ key <BKSL> {
+ vmods = LevelFive,
+ symbols[Group1] = [ ISO_Level3_Shift ],
+ actions[Group1] = [ SetMods(modifiers=LevelFive) ]
+ };
+ modifier_map Mod3 { <CAPS>, <BKSL> };
// Neo-Mod4
// --------------------------------------------------------------
+ key.type[Group1] = "THREE_LEVEL";
// Mod4 + Mod4 = Mod4_Lock
- // The console-setup package doesn't like ISO_Level5_Shift and ISO_Level5_Lock, see
- // https://bugs.launchpad.net/ubuntu/+source/console-setup/+bug/363388
- key <CAPS> { [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ] };
- key <BKSL> { [ ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Shift, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock, ISO_Level5_Lock ] };
- // ISO_Level5_Shift alone won't have the desired effect in all applicitions, therefore
- // adding the following as it is done in "symbols/level5(rctrl_switch)".
- modifier_map Mod3 { ISO_Level5_Shift }; // mandatory
- // This ^^^^ has nothing to do with the "Neo-Mod-Keys"!
+ key <LSGT> {
+ vmods = NumLock,
+ symbols[Group1] = [ Num_Lock, Num_Lock, Num_Lock ],
+ actions[Group1] = [ SetMods(modifiers=LevelThree), SetMods(modifiers=LevelThree), LockMods(modifiers=NumLock) ]
+ };
+ key <RALT> {
+ vmods = NumLock,
+ symbols[Group1] = [ Num_Lock, Num_Lock, Num_Lock ],
+ actions[Group1] = [ SetMods(modifiers=LevelThree), SetMods(modifiers=LevelThree), LockMods(modifiers=NumLock) ]
+ };
+ modifier_map Mod2 { <LSGT>, <RALT> };
+
+
+ // 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 Ebene4 ??? Ebene3 Ebene5 Ebene6 ???
+ // Keys (Neo): None Shift Mod4 Mod4 + Shift Mod3 Mod3 + Shift Mod3 + Mod4 Mod3 + Mod4 + Shift
// Alphanumeric-keys
// ===============
+ key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS";
// Tab as Multi_key (Compose)
// --------------------------------------------------------------
@@ -320,13 +329,14 @@ xkb_symbols "neo" {
key <AE08> { [ 8, doublelowquotemark, NoSymbol, NoSymbol, singlelowquotemark, U27E8, U221E, NoSymbol ] };
key <AE09> { [ 9, leftdoublequotemark, KP_Divide, NoSymbol, leftsinglequotemark, U27E9, U220B, NoSymbol ] };
key <AE10> { [ 0, rightdoublequotemark, KP_Multiply, NoSymbol, rightsinglequotemark, zerosubscript, emptyset, NoSymbol ] };
-
+
key <AE11> { [ minus, emdash, KP_Subtract, NoSymbol, NoSymbol, U2011, hyphen, NoSymbol ] };
key <AE12> { [ dead_grave, NoSymbol, dead_doublegrave, NoSymbol, dead_diaeresis, dead_dasia, NoSymbol, NoSymbol ] };
key <BKSP> { [ BackSpace, BackSpace, BackSpace, BackSpace, BackSpace, BackSpace, BackSpace, NoSymbol ] };
// Top Row
// --------------------------------------------------------------
+ key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS_QUATERALPHABETIC";
key <AD01> { [ x, X, U22EE, NoSymbol, ellipsis, Greek_xi, Greek_XI, NoSymbol ] };
key <AD02> { [ v, V, BackSpace, BackSpace, underscore, NoSymbol, U222E, NoSymbol ] };
key <AD03> { [ l, L, Up, Up, bracketleft, Greek_lambda, Greek_LAMBDA, NoSymbol ] };
@@ -340,10 +350,13 @@ xkb_symbols "neo" {
key <AD10> { [ q, Q, KP_Add, NoSymbol, ampersand, U03D5, U211A, NoSymbol ] };
key <AD11> { [ ssharp, U1E9E, U2212, NoSymbol, U017F, Greek_finalsmallsigma, jot, NoSymbol ] };
+
+ key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS";
key <AD12> { [ dead_acute, dead_cedilla, dead_doubleacute, NoSymbol, dead_stroke, dead_psili, dead_abovedot, NoSymbol ] };
// Middle Row
// --------------------------------------------------------------
+ key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS_QUATERALPHABETIC";
key <AC01> { [ u, U, Home, Home, backslash, NoSymbol, mu, NoSymbol ] };
key <AC02> { [ i, I, Left, Left, slash, Greek_iota, integral, NoSymbol ] };
key <AC03> { [ a, A, Down, Down, braceleft, Greek_alpha, U2200, NoSymbol ] };
@@ -364,13 +377,16 @@ xkb_symbols "neo" {
key <AB02> { [ odiaeresis, Odiaeresis, Tab, Tab, dollar, U03F5, U2111, NoSymbol ] };
key <AB03> { [ adiaeresis, Adiaeresis, Next, Next, bar, Greek_eta, U2135, NoSymbol ] };
key <AB04> { [ p, P, Return, Return, asciitilde, Greek_pi, Greek_PI, NoSymbol ] };
- key <AB05> { [ z, Z, NoSymbol, NoSymbol, grave, Greek_zeta, U2124, NoSymbol ] };
+ key <AB05> { [ z, Z, Undo, NoSymbol, grave, Greek_zeta, U2124, NoSymbol ] };
key <AB06> { [ b, B, colon, NoSymbol, plus, Greek_beta, U21D0, NoSymbol ] };
key <AB07> { [ m, M, KP_1, NoSymbol, percent, Greek_mu, ifonlyif, NoSymbol ] };
+ key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS";
key <AB08> { [ comma, endash, KP_2, NoSymbol, quotedbl, Greek_rho, U21D2, NoSymbol ] };
key <AB09> { [ period, enfilledcircbullet, KP_3, NoSymbol, apostrophe, U03D1, Greek_THETA, NoSymbol ] };
+ key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS_QUATERALPHABETIC";
key <AB10> { [ j, J, semicolon, NoSymbol, semicolon, Greek_theta, variation, NoSymbol ] };
+ key.type[Group1] = "EIGHT_LEVEL_NEO_LOCKS";
// Space key
// --------------------------------------------------------------
@@ -380,9 +396,6 @@ xkb_symbols "neo" {
// Keypad-keys
// ===============
- // Num-Lock is no longer used with Neo:
- //key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD";
-
// The former Numlock key:
key <NMLK> { [ Tab, ISO_Left_Tab, notequal, NoSymbol, equal, approxeq, identical, NoSymbol ] };