summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Udaltsov <sergey.udaltsov@gmail.com>2014-05-02 00:13:35 +0100
committerSergey Udaltsov <sergey.udaltsov@gmail.com>2014-05-02 00:13:35 +0100
commit40bc9e68840dd525047186ebb9277bedf9b892da (patch)
tree2d2677db921e3b41941d376a50a203ef8ff31bcc
parent5274a69ee85fb6c425c33c631fa8ea1310a8f097 (diff)
support for grp:lwin_space_toggle and similar
https://bugs.freedesktop.org/show_bug.cgi?id=78076
-rw-r--r--rules/base.o_s.part1
-rw-r--r--rules/base.xml.in6
-rw-r--r--symbols/group9
3 files changed, 16 insertions, 0 deletions
diff --git a/rules/base.o_s.part b/rules/base.o_s.part
index a31556b5..e31ab64e 100644
--- a/rules/base.o_s.part
+++ b/rules/base.o_s.part
@@ -22,6 +22,7 @@
grp:caps_switch = +capslock(groupshift)
grp:shift_caps_toggle = +group(shift_caps_toggle)
grp:shift_caps_switch = +group(shift_caps_switch)
+ grp:win_space_toggle = +group(win_space_toggle)
grp:win_menu_switch = +group(win_menu_switch)
grp:alt_caps_toggle = +group(alt_caps_toggle)
grp:alt_space_toggle = +group(alt_space_toggle)
diff --git a/rules/base.xml.in b/rules/base.xml.in
index 59b03c33..3b32e220 100644
--- a/rules/base.xml.in
+++ b/rules/base.xml.in
@@ -5874,6 +5874,12 @@
</option>
<option>
<configItem>
+ <name>grp:win_space_toggle</name>
+ <_description>Win Key+Space</_description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
<name>grp:rwin_toggle</name>
<_description>Right Win</_description>
</configItem>
diff --git a/symbols/group b/symbols/group
index 8592f434..91be4863 100644
--- a/symbols/group
+++ b/symbols/group
@@ -85,6 +85,15 @@ xkb_symbols "shift_caps_switch" {
key <CAPS> { [ ISO_First_Group, ISO_Last_Group ] };
};
+// toggle using win + space as combo
+partial modifier_keys
+xkb_symbols "win_space_toggle" {
+ key <SPCE> {
+ type[Group1]="PC_SUPER_LEVEL2",
+ symbols[Group1]= [ space, ISO_Next_Group ]
+ };
+};
+
// Pressing the left Win key selects the first group,
// pressing the right Win or the Menu key selects the last group.
partial modifier_keys