summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--rules/base.o_s.part1
-rw-r--r--rules/base.xml.in6
-rw-r--r--symbols/group16
4 files changed, 26 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 44d7317..40e2427 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
* symbols/ru: Added ru(typewriter-legacy),
https://bugs.freedesktop.org/show_bug.cgi?id=25726
+ * rules/base.o_s.part, rules/base.xml.in, symbols/group: added
+ grp(lctrl_rctrl_switch),
+ https://bugs.freedesktop.org/show_bug.cgi?id=25727
2009-11-27 Sergey Udaltsov
diff --git a/rules/base.o_s.part b/rules/base.o_s.part
index 8f1b07d..47bfa00 100644
--- a/rules/base.o_s.part
+++ b/rules/base.o_s.part
@@ -38,6 +38,7 @@
grp:rctrl_toggle = +group(rctrl_toggle)
grp:lalt_toggle = +group(lalt_toggle)
grp:sclk_toggle = +group(sclk_toggle)
+ grp:lctrl_rctrl_switch = +group(lctrl_rctrl_switch)
lv3:switch = +level3(switch)
lv3:ralt_switch = +level3(ralt_switch)
lv3:ralt_switch_multikey = +level3(ralt_switch_multikey)
diff --git a/rules/base.xml.in b/rules/base.xml.in
index 47ce846..24bfc2d 100644
--- a/rules/base.xml.in
+++ b/rules/base.xml.in
@@ -4421,6 +4421,12 @@
</option>
<option>
<configItem>
+ <name>grp:lctrl_rctrl_switch</name>
+ <_description>Left Ctrl (to first layout), Right Ctrl (to last layout)</_description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
<name>grp:alt_caps_toggle</name>
<_description>Alt+CapsLock</_description>
</configItem>
diff --git a/symbols/group b/symbols/group
index 08b31a1..f39b051 100644
--- a/symbols/group
+++ b/symbols/group
@@ -168,6 +168,22 @@ xkb_symbols "win_menu_switch" {
};
};
+// using the group(lctrl_rctrl_switch) map, pressing:
+// Left Control selects the first group
+// Right Control selects the last group
+partial modifier_keys
+xkb_symbols "lctrl_rctrl_switch" {
+ virtual_modifiers AltGr;
+ key <LCTL> {
+ virtualMods= AltGr,
+ symbols[Group1] = [ ISO_First_Group ]
+ };
+ key <RCTL> {
+ virtualMods= AltGr,
+ symbols[Group1] = [ ISO_Last_Group ]
+ };
+};
+
// using the group(ctrl_alt_toggle) map, pressing:
// Control_L+Alt_L locks the previous group
// Control_R+Alt_R locks the next group