summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey V. Udaltsov <svu@gnome.org>2013-03-09 22:17:39 +0000
committerSergey V. Udaltsov <svu@gnome.org>2013-03-09 22:17:39 +0000
commit2ed85c1e936f7cd4a9540ace5c12b9fec60ee1fb (patch)
treebfbde67c9f3c6de5e8f3cd0d44ef592c2c01c2ca
parent5340e0ca1213fd501e2ef0d0d7171558c1d7cef3 (diff)
Map Alt to WinHEADmaster
https://bugs.freedesktop.org/show_bug.cgi?id=60559
-rw-r--r--rules/base.o_s.part1
-rw-r--r--rules/base.xml.in6
-rw-r--r--symbols/altwin8
3 files changed, 15 insertions, 0 deletions
diff --git a/rules/base.o_s.part b/rules/base.o_s.part
index 72129198..46c07b01 100644
--- a/rules/base.o_s.part
+++ b/rules/base.o_s.part
@@ -1,5 +1,6 @@
altwin:menu = +altwin(menu)
altwin:meta_alt = +altwin(meta_alt)
+ altwin:alt_win = +altwin(alt_win)
altwin:ctrl_win = +altwin(ctrl_win)
altwin:ctrl_alt_win = +altwin(ctrl_alt_win)
altwin:meta_win = +altwin(meta_win)
diff --git a/rules/base.xml.in b/rules/base.xml.in
index 95790dda..1d346238 100644
--- a/rules/base.xml.in
+++ b/rules/base.xml.in
@@ -6221,6 +6221,12 @@
</option>
<option>
<configItem>
+ <name>altwin:alt_win</name>
+ <_description>Alt is mapped to Win keys (and the usual Alt keys)</_description>
+ </configItem>
+ </option>
+ <option>
+ <configItem>
<name>altwin:ctrl_win</name>
<_description>Control is mapped to Win keys (and the usual Ctrl keys)</_description>
</configItem>
diff --git a/symbols/altwin b/symbols/altwin
index f7578b49..d22013d0 100644
--- a/symbols/altwin
+++ b/symbols/altwin
@@ -7,6 +7,14 @@ xkb_symbols "meta_alt" {
// modifier_map Mod4 {};
};
+// Alt is mapped to the Win-keys (and the usual Alt keys).
+partial modifier_keys
+xkb_symbols "alt_win" {
+ key <LWIN> { [ Alt_L ] };
+ key <RWIN> { [ Alt_R ] };
+ modifier_map Mod1 { <LWIN>, <RWIN> };
+};
+
// Control is mapped to the Win-keys (and the usual Ctrl keys).
partial modifier_keys
xkb_symbols "ctrl_win" {