From dfce90b2b3f3412d29b619f248e0ed4cbeaa31f0 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 23 Apr 2023 11:23:11 +0200 Subject: symbols/group: leave two first levels undefined, to allow combining Many people do not need the CapsLock functionality, so leaving the first level of the `` key undefined in these two options allows users to combine `grp:shift_caps_toggle` or `grp:alt_caps_toggle` with most of the one-level `caps:` options, for more versatility. (Because of the order of the rules, any `caps:` option will be applied first, and then the `grp:` option will add a second level.) Signed-off-by: Benno Schulenberg --- symbols/group | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/symbols/group b/symbols/group index 38b2b86..ad36b02 100644 --- a/symbols/group +++ b/symbols/group @@ -76,11 +76,10 @@ xkb_symbols "caps_toggle" { key {[ ISO_Next_Group, Caps_Lock ], type[group1] = "TWO_LEVEL" }; }; -// Pressing Shift+Caps_Lock switches to the next group, -// while plain Caps_Lock toggles CapsLock. +// Pressing Shift+Caps_Lock switches to the next group. partial modifier_keys xkb_symbols "shift_caps_toggle" { - key {[ Caps_Lock, ISO_Next_Group ], type[group1] = "TWO_LEVEL" }; + key {[ any, ISO_Next_Group ], type[group1] = "TWO_LEVEL" }; }; // Pressing Alt+Space switches to the next group. @@ -297,11 +296,10 @@ xkb_symbols "rctrl_toggle" { key {[ ISO_Next_Group ]}; }; -// Pressing Alt+Caps_Lock switches to the next group, -// while pressing Caps_Lock alone toggles CapsLock. +// Pressing Alt+Caps_Lock switches to the next group. partial modifier_keys xkb_symbols "alt_caps_toggle" { - key {[ Caps_Lock, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" }; + key {[ any, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" }; }; hidden partial modifier_keys -- cgit v1.2.1