Skip to content

Commit

Permalink
Symbol mods less intrusive to Locale mappings
Browse files Browse the repository at this point in the history
* When a Sym mod was used as an option, it would overwrite any sym keys set by the locale variant.
* Now, bracket and other common keys are commented out in the Sym mods where possible.
  • Loading branch information
DreymaR committed Aug 26, 2024
1 parent 35439e2 commit 5852cc1
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions xkb-data_xmod/xkb/symbols/symkeys
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ default
// See "DreymaR's Big Bag of Keyboard Tricks": https://dreymar.colemak.org/ergo-mods.html#symbols

// Standard symbol key setup, as found in QWERTY and several other layouts
// NOTE: This should be read in first, before adding any locale variants and then optionally a Symbol mod.
// The Sym mods below change as little as possible from this entry, to avoid overwriting locale keys.
partial alphanumeric_keys
xkb_symbols "cmk_ed_symbols" {
include "symkeys(cmk_ed_commons)"
Expand All @@ -38,46 +40,46 @@ xkb_symbols "cmk_ed_symbols" {
// DreymaR's Sym (S) mod for setups not using a Wide (W) mod
partial alphanumeric_keys
xkb_symbols "cmk_ed_sym_non-w" {
include "symkeys(cmk_ed_commons)"
include "symkeys(cmk_ed_numbers)"
// include "symkeys(cmk_ed_commons)"
// include "symkeys(cmk_ed_numbers)"
key <AE11> { [ equal, plus, dead_doubleacute, notequal ] }; // =+ _≠
key <AE12> { [ bracketleft, braceleft, aring, Aring ] }; // [{ åÅ
key <AD10> { [ apostrophe, quotedbl, dead_acute, U2032 ] }; // '" _′
key <AD11> { [ minus, underscore, dead_macron, plusminus ] }; // -_ _±
key <AD12> { [ bracketright, braceright, ae, AE ] }; // ]} æÆ
// key <AD12> { [ bracketright, braceright, ae, AE ] }; // ]} æÆ
key <AC11> { [ semicolon, colon, dead_diaeresis, ellipsis ] }; // QWE P Cmk ;: ¨…
// key <AB10> { [ slash, question, dead_stroke, questiondown ] }; // /? _¿
key <BKSL> { [ backslash, bar, dead_grave, brokenbar ] }; // \| _¦
key <AB10> { [ slash, question, dead_stroke, questiondown ] }; // /? _¿
};

// DreymaR's Sym mod for setups using the Wide-ANSI model (without Sym, it has the Quote key on AD12)
partial alphanumeric_keys
xkb_symbols "cmk_ed_sym_w-104" {
include "symkeys(cmk_ed_commons)"
include "symkeys(cmk_ed_numbers)"
// include "symkeys(cmk_ed_commons)"
// include "symkeys(cmk_ed_numbers)"
key <AE11> { [ equal, plus, dead_doubleacute, notequal ] }; // =+ _≠
key <AE12> { [ backslash, bar, dead_grave, brokenbar ] }; // \| _¦
key <AD10> { [ minus, underscore, dead_macron, plusminus ] }; // -_ _±
key <AD11> { [ bracketleft, braceleft, aring, Aring ] }; // [{ åÅ
key <AD12> { [ bracketright, braceright, ae, AE ] }; // ]} æÆ
key <AC11> { [ apostrophe, quotedbl, dead_acute, U2032 ] }; // '" _′
// key <AD11> { [ bracketleft, braceleft, aring, Aring ] }; // [{ åÅ
// key <AD12> { [ bracketright, braceright, ae, AE ] }; // ]} æÆ
// key <AC11> { [ apostrophe, quotedbl, dead_acute, U2032 ] }; // '" _′
// key <AB10> { [ slash, question, dead_stroke, questiondown ] }; // /? _¿
key <BKSL> { [ semicolon, colon, dead_diaeresis, ellipsis ] }; // QWE P Cmk ;: ¨…
key <AB10> { [ slash, question, dead_stroke, questiondown ] }; // /? _¿
};

// DreymaR's Sym mod for setups using the Wide-ISO model (without Sym, it has the Slash key on AD12)
partial alphanumeric_keys
xkb_symbols "cmk_ed_sym_w-105" {
include "symkeys(cmk_ed_commons)"
include "symkeys(cmk_ed_numbers)"
// include "symkeys(cmk_ed_commons)"
// include "symkeys(cmk_ed_numbers)"
key <AE11> { [ equal, plus, dead_doubleacute, notequal ] }; // =+ _≠
key <AE12> { [ backslash, bar, dead_grave, brokenbar ] }; // \| _¦
key <AD10> { [ apostrophe, quotedbl, dead_acute, U2032 ] }; // '" _′
key <AD11> { [ bracketleft, braceleft, aring, Aring ] }; // [{ åÅ
key <AD12> { [ bracketright, braceright, ae, AE ] }; // ]} æÆ
// key <AD11> { [ bracketleft, braceleft, aring, Aring ] }; // [{ åÅ
// key <AD12> { [ bracketright, braceright, ae, AE ] }; // ]} æÆ
key <AC11> { [ semicolon, colon, dead_diaeresis, ellipsis ] }; // QWE P Cmk ;: ¨…
key <BKSL> { [ slash, question, dead_stroke, questiondown ] }; // /? _¿
key <AB10> { [ minus, underscore, dead_macron, plusminus ] }; // -_ _±
key <BKSL> { [ slash, question, dead_stroke, questiondown ] }; // /? _¿
};

hidden partial alphanumeric_keys
Expand Down

0 comments on commit 5852cc1

Please sign in to comment.