One more layout switcher: LeftCtrl+LeftWin/RightCtrl+Menu
authorVan de Bugger <van.de.bugger@gmail.com>
Wed, 9 Feb 2011 22:26:30 +0000 (01:26 +0300)
committerSergey V. Udaltsov <svu@gnome.org>
Fri, 11 Feb 2011 23:53:37 +0000 (23:53 +0000)
rules/base.o_s.part
rules/base.xml.in
symbols/group

index 6ce87e3..285a701 100644 (file)
@@ -39,6 +39,7 @@
   grp:lalt_toggle      =       +group(lalt_toggle)
   grp:sclk_toggle      =       +group(sclk_toggle)
   grp:lctrl_rctrl_switch       =       +group(lctrl_rctrl_switch)
+  grp:lctrl_lwin_rctrl_menu    =       +group(lctrl_lwin_rctrl_menu)
   lv3:switch           =       +level3(switch)
   lv3:ralt_switch      =       +level3(ralt_switch)
   lv3:ralt_switch_multikey     =       +level3(ralt_switch_multikey)
index 15581b7..1ce39d5 100644 (file)
           <_description>Scroll Lock</_description>
         </configItem>
       </option>
+      <option>
+        <configItem>
+          <name>grp:lctrl_lwin_rctrl_menu</name>
+          <_description>LeftCtrl+LeftWin (to first layout), RightCtrl+Menu (to second layout)</_description>
+        </configItem>
+      </option>
     </group>
     <group allowMultipleSelection="true">
       <!-- The key combination used to choose the 3rd (and 4th, together with Shift)
index f39b051..ca46745 100644 (file)
@@ -387,3 +387,16 @@ xkb_symbols "sclk_toggle" {
     };
 };
 
+// Control_L+Win_L locks the first group (presumably Lat).
+// Control_R+Menu locks the second group (presumably Rus).
+partial modifier_keys
+xkb_symbols "lctrl_lwin_rctrl_menu" {
+    key <LWIN> {
+        type[ Group1 ]    = "PC_CONTROL_LEVEL2",
+        symbols[ Group1 ] = [ Super_L,    ISO_First_Group ]
+    };
+    key <MENU> {
+        type[ Group1 ]    = "PC_CONTROL_LEVEL2",
+        symbols[ Group1 ] = [ Menu,       ISO_Last_Group ]
+    };
+}; // lctrl_lwin_rctrl_menu