summaryrefslogtreecommitdiff
path: root/symbols/ctrl
diff options
context:
space:
mode:
authorBenno Schulenberg <bensberg@justemail.net>2013-12-04 20:51:49 +0100
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2013-12-18 22:33:58 +0000
commit4ab768508e4455bb19f7f4107552993cdaf81f09 (patch)
treea4142ccb24857748096f5d63b9acc57b5e4ed0c9 /symbols/ctrl
parent9e733e0e821cd0894838605e1251080e41f6c95a (diff)
downloadxkeyboard-config-4ab768508e4455bb19f7f4107552993cdaf81f09.tar.gz
Add three options for swapping the left Ctrl and Alt and Win keys.
These additions were proposed by Mildred Ki'Lya in: https://bugs.freedesktop.org/show_bug.cgi?id=17960 Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Diffstat (limited to 'symbols/ctrl')
-rw-r--r--symbols/ctrl23
1 files changed, 23 insertions, 0 deletions
diff --git a/symbols/ctrl b/symbols/ctrl
index 343a3d6..7375f41 100644
--- a/symbols/ctrl
+++ b/symbols/ctrl
@@ -55,3 +55,26 @@ xkb_symbols "ralt_rctrl" {
symbols[Group1] = [ Control_R, Control_R ] };
modifier_map Control { <RALT> };
};
+
+// Swap the functions of the left Alt key and the left Ctrl key.
+partial modifier_keys
+xkb_symbols "swap_lalt_lctl" {
+ replace key <LALT> { [ Control_L, Control_L ] };
+ replace key <LCTL> { [ Alt_L, Meta_L ] };
+};
+
+// Swap the functions of the left Win key and the left Ctrl key.
+partial modifier_keys
+xkb_symbols "swap_lwin_lctl" {
+ replace key <LWIN> { [ Control_L ] };
+ replace key <LCTL> { [ Super_L ] };
+};
+
+// Map Ctrl to the left Alt key, Alt to the left Win key,
+// and Super to the left Ctrl key.
+partial modifier_keys
+xkb_symbols "swap_lalt_lctl_lwin" {
+ replace key <LALT> { [ Control_L, Control_L ] };
+ replace key <LWIN> { [ Alt_L, Meta_L ] };
+ replace key <LCTL> { [ Super_L ] };
+};