summaryrefslogtreecommitdiff
path: root/test/data/symbols/ctrl
diff options
context:
space:
mode:
Diffstat (limited to 'test/data/symbols/ctrl')
-rw-r--r--test/data/symbols/ctrl19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/data/symbols/ctrl b/test/data/symbols/ctrl
index 8791b49..a9e97f5 100644
--- a/test/data/symbols/ctrl
+++ b/test/data/symbols/ctrl
@@ -20,6 +20,25 @@ xkb_symbols "swapcaps" {
modifier_map Lock { <LCTL> };
};
+// Swap the functions of the CapsLock key and the left Ctrl key,
+// but make the Ctrl key a 'Hyper' modifier
+partial modifier_keys
+xkb_symbols "swapcaps_hyper" {
+ replace key <CAPS> { [ Control_L ] };
+ replace key <LCTL> { [ Hyper_L ] };
+ modifier_map Control { <CAPS> };
+ modifier_map Mod3 { <LCTL> };
+};
+
+// Set CapsLock to left Ctrl and left Ctrl to switch layout.
+partial modifier_keys
+xkb_symbols "swapcaps_and_switch_layout" {
+ replace key <CAPS> { [ Control_L ] };
+ replace key <LCTL> { [ ISO_Next_Group ] };
+ modifier_map Control { <CAPS> };
+ modifier_map Lock { <LCTL> };
+};
+
// Move Ctrl to the leftmost key on the middle row and CapsLock to the
// leftmost key on the bottom row. Only works if the geometry or keycodes
// file has defined appropriate aliases for the keys in question.