summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Udaltsov <sergey.udaltsov@gmail.com>2014-08-18 00:04:02 +0100
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2014-08-18 00:04:02 +0100
commite56ecb3002fbcb91e78f32a0e7483050cd375b2a (patch)
treedc3b2e87832d3803d4e03569332a8e26bc5764b3
parentd2c4d817e3bdd7fd185f489e44957a005d1a41f1 (diff)
Add option to swap right alt & right control
https://bugs.freedesktop.org/show_bug.cgi?id=81271
-rw-r--r--rules/base.o_s.part4
-rw-r--r--rules/base.xml.in5
-rw-r--r--symbols/ctrl7
3 files changed, 16 insertions, 0 deletions
diff --git a/rules/base.o_s.part b/rules/base.o_s.part
index e31ab64e..cda36e45 100644
--- a/rules/base.o_s.part
+++ b/rules/base.o_s.part
@@ -79,6 +79,10 @@
ctrl:rctrl_ralt = +ctrl(rctrl_ralt)
ctrl:menu_rctrl = +ctrl(menu_rctrl)
ctrl:ralt_rctrl = +ctrl(ralt_rctrl)
+ ctrl:swap_lalt_lctl = +ctrl(swap_lalt_lctl)
+ ctrl:swap_lwin_lctl = +ctrl(swap_lwin_lctl)
+ ctrl:swap_rwin_rctl = +ctrl(swap_rwin_rctl)
+ ctrl:swap_lalt_lctl_lwin = +ctrl(swap_lalt_lctl_lwin)
compose:ralt = +compose(ralt)
compose:lwin = +compose(lwin)
compose:lwin-altgr = +compose(lwin-altgr)
diff --git a/rules/base.xml.in b/rules/base.xml.in
index 319878fa..71f374ab 100644
--- a/rules/base.xml.in
+++ b/rules/base.xml.in
@@ -6103,6 +6103,11 @@
<name>ctrl:swap_lwin_lctl</name>
<_description>Swap Left Win key with Left Ctrl key</_description>
</configItem>
+ </option><option>
+ <configItem>
+ <name>ctrl:swap_rwin_rctl</name>
+ <_description>Swap Right Win key with Right Ctrl key</_description>
+ </configItem>
</option>
<option>
<configItem>
diff --git a/symbols/ctrl b/symbols/ctrl
index 785777cf..dd68add1 100644
--- a/symbols/ctrl
+++ b/symbols/ctrl
@@ -70,6 +70,13 @@ xkb_symbols "swap_lwin_lctl" {
replace key <LCTL> { [ Super_L ] };
};
+// Swap the functions of the right Win key and the right Ctrl key.
+partial modifier_keys
+xkb_symbols "swap_rwin_rctl" {
+ replace key <RWIN> { [ Control_R ] };
+ replace key <RCTL> { [ Super_R ] };
+};
+
// Map Ctrl to the left Alt key, Alt to the left Win key,
// and Super to the left Ctrl key.
partial modifier_keys