summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@telfort.nl>2023-04-23 11:23:11 +0200
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2023-04-24 08:11:05 +0000
commitdfce90b2b3f3412d29b619f248e0ed4cbeaa31f0 (patch)
treefd79ba0625e397e5ad6fc84e72a10cf451b0abf9
parentaca77abb7d3d70896f01d1b25e0d6c8ce32e30ef (diff)
downloadxkeyboard-config-dfce90b2b3f3412d29b619f248e0ed4cbeaa31f0.tar.gz
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 `<CAPS>` 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 <bensberg@telfort.nl>
-rw-r--r--symbols/group10
1 files 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 <CAPS> {[ 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> {[ Caps_Lock, ISO_Next_Group ], type[group1] = "TWO_LEVEL" };
+ key <CAPS> {[ 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 <RCTL> {[ 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> {[ Caps_Lock, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" };
+ key <CAPS> {[ any, ISO_Next_Group ], type[group1] = "PC_ALT_LEVEL2" };
};
hidden partial modifier_keys