diff options
author | Van de Bugger <van.de.bugger@gmail.com> | 2011-02-10 01:26:30 +0300 |
---|---|---|
committer | Sergey V. Udaltsov <svu@gnome.org> | 2011-02-11 23:53:37 +0000 |
commit | d6e26092800736873c88dbb19ea70746d5f1e217 (patch) | |
tree | bc4fbc4eaed74cdf750234007538f52ae119c8f5 | |
parent | 1b045f02e0fa84f1c469254414bed64005de51ec (diff) | |
download | xkeyboard-config-d6e26092800736873c88dbb19ea70746d5f1e217.tar.gz |
One more layout switcher: LeftCtrl+LeftWin/RightCtrl+Menu
-rw-r--r-- | rules/base.o_s.part | 1 | ||||
-rw-r--r-- | rules/base.xml.in | 6 | ||||
-rw-r--r-- | symbols/group | 13 |
3 files changed, 20 insertions, 0 deletions
diff --git a/rules/base.o_s.part b/rules/base.o_s.part index 6ce87e3..285a701 100644 --- a/rules/base.o_s.part +++ b/rules/base.o_s.part @@ -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) diff --git a/rules/base.xml.in b/rules/base.xml.in index 15581b7..1ce39d5 100644 --- a/rules/base.xml.in +++ b/rules/base.xml.in @@ -4886,6 +4886,12 @@ <_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) diff --git a/symbols/group b/symbols/group index f39b051..ca46745 100644 --- a/symbols/group +++ b/symbols/group @@ -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 |