2013-10-26 11:49:57 -06:00
|
|
|
// Meta is mapped to second level of Alt keys.
|
2014-05-05 12:05:33 -06:00
|
|
|
partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "meta_alt" {
|
2013-10-26 11:49:57 -06:00
|
|
|
key <LALT> { [ Alt_L, Meta_L ] };
|
2011-01-10 07:25:56 -07:00
|
|
|
key <RALT> { type[Group1] = "TWO_LEVEL",
|
|
|
|
symbols[Group1] = [ Alt_R, Meta_R ] };
|
2013-10-26 11:49:57 -06:00
|
|
|
modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R };
|
|
|
|
// modifier_map Mod4 {};
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// Alt is mapped to the Win keys (and the usual Alt keys).
|
2014-05-05 12:05:33 -06:00
|
|
|
partial modifier_keys
|
2013-10-26 11:49:57 -06:00
|
|
|
xkb_symbols "alt_win" {
|
|
|
|
key <LWIN> { [ Alt_L ] };
|
|
|
|
key <RWIN> { [ Alt_R ] };
|
|
|
|
modifier_map Mod1 { <LWIN>, <RWIN> };
|
|
|
|
};
|
|
|
|
|
|
|
|
// Ctrl is mapped to the Win keys (and the usual Ctrl keys).
|
2014-05-05 12:05:33 -06:00
|
|
|
partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "ctrl_win" {
|
2013-10-26 11:49:57 -06:00
|
|
|
key <LWIN> { [ Control_L ] };
|
|
|
|
key <RWIN> { [ Control_R ] };
|
2009-06-06 11:52:23 -06:00
|
|
|
modifier_map Control { <LWIN>, <RWIN> };
|
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// Ctrl is mapped to the Alt keys, Alt to the Win keys, and Win to the Ctrl keys.
|
2014-05-05 12:05:33 -06:00
|
|
|
partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "ctrl_alt_win" {
|
2013-10-26 11:49:57 -06:00
|
|
|
key <LALT> { [ Control_L, Control_L ] };
|
2011-01-10 07:25:56 -07:00
|
|
|
key <RALT> { type[Group1] = "TWO_LEVEL",
|
|
|
|
symbols[Group1] = [ Control_R, Control_R ] };
|
2013-10-26 11:49:57 -06:00
|
|
|
key <LWIN> { [ Alt_L, Meta_L ] };
|
|
|
|
key <RWIN> { [ Alt_R, Meta_R ] };
|
2014-05-05 12:05:33 -06:00
|
|
|
key <LCTL> { [ Super_L ] };
|
|
|
|
key <RCTL> { [ Super_R ] };
|
2009-06-06 11:52:23 -06:00
|
|
|
modifier_map Control { <RALT>, <LALT> };
|
2013-10-26 11:49:57 -06:00
|
|
|
modifier_map Mod1 { <LWIN>, <RWIN> };
|
2014-05-05 12:05:33 -06:00
|
|
|
modifier_map Mod4 { <LCTL>, <RCTL> };
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// Meta is mapped to the Win keys.
|
2014-05-05 12:05:33 -06:00
|
|
|
partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "meta_win" {
|
2013-10-26 11:49:57 -06:00
|
|
|
key <LALT> { [ Alt_L, Alt_L ] };
|
2011-01-10 07:25:56 -07:00
|
|
|
key <RALT> { type[Group1] = "TWO_LEVEL",
|
|
|
|
symbols[Group1] = [ Alt_R, Alt_R ] };
|
2013-10-26 11:49:57 -06:00
|
|
|
key <LWIN> { [ Meta_L ] };
|
|
|
|
key <RWIN> { [ Meta_R ] };
|
|
|
|
modifier_map Mod1 { Alt_L, Alt_R };
|
|
|
|
modifier_map Mod4 { <META>, Meta_L, Meta_R };
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// Meta is mapped to the left Win key.
|
2014-05-05 12:05:33 -06:00
|
|
|
partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "left_meta_win" {
|
2013-10-26 11:49:57 -06:00
|
|
|
key <LALT> { [ Alt_L, Alt_L ] };
|
|
|
|
key <LWIN> { [ Meta_L ] };
|
|
|
|
modifier_map Mod1 { Alt_L };
|
|
|
|
modifier_map Mod4 { <META>, Meta_L };
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// Hyper is mapped to the Win keys.
|
2014-05-05 12:05:33 -06:00
|
|
|
partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "hyper_win" {
|
2013-10-26 11:49:57 -06:00
|
|
|
key <LWIN> { [ Hyper_L ] };
|
|
|
|
key <RWIN> { [ Hyper_R ] };
|
|
|
|
modifier_map Mod4 { Hyper_L, Hyper_R };
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// Menu is mapped to the Menu key.
|
2014-05-05 12:05:33 -06:00
|
|
|
partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "menu" {
|
2013-10-26 11:49:57 -06:00
|
|
|
key <MENU> { [ Menu ] };
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
// Layout for Tux key caps with additional right Alt key
|
2014-05-05 12:05:33 -06:00
|
|
|
partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "alt_super_win" {
|
2013-10-26 11:49:57 -06:00
|
|
|
key <LALT> { [ Alt_L, Meta_L ] };
|
|
|
|
key <RWIN> { [ Alt_R, Meta_R ] };
|
|
|
|
key <LWIN> { [ Super_L ]};
|
|
|
|
key <MENU> { [ Super_R ] };
|
|
|
|
modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R };
|
|
|
|
modifier_map Mod4 { Super_L, Super_R };
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|
|
|
|
|
2013-10-26 11:49:57 -06:00
|
|
|
// Swap the Alt and Win keys.
|
2014-05-05 12:05:33 -06:00
|
|
|
partial modifier_keys
|
2013-10-26 11:49:57 -06:00
|
|
|
xkb_symbols "swap_alt_win" {
|
|
|
|
include "altwin(swap_lalt_lwin)"
|
|
|
|
include "altwin(swap_ralt_rwin)"
|
|
|
|
};
|
|
|
|
|
|
|
|
// Swap the left Alt and Win keys.
|
2014-12-28 09:41:04 -07:00
|
|
|
hidden partial modifier_keys
|
2009-06-06 11:52:23 -06:00
|
|
|
xkb_symbols "swap_lalt_lwin" {
|
2011-01-10 07:25:56 -07:00
|
|
|
key <LALT> { type[Group1] = "ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ Super_L ] };
|
2013-10-26 11:49:57 -06:00
|
|
|
key <LWIN> { [ Alt_L, Meta_L ] };
|
|
|
|
};
|
|
|
|
|
|
|
|
// Swap the right Alt and Win keys.
|
2014-12-28 09:41:04 -07:00
|
|
|
hidden partial modifier_keys
|
2013-10-26 11:49:57 -06:00
|
|
|
xkb_symbols "swap_ralt_rwin" {
|
|
|
|
key <RALT> { type[Group1] = "ONE_LEVEL",
|
|
|
|
symbols[Group1] = [ Super_R ] };
|
|
|
|
key <RWIN> { [ Alt_R, Meta_R ] };
|
2009-06-06 11:52:23 -06:00
|
|
|
};
|