// Meta is mapped to second level of Alt. partial modifier_keys xkb_symbols "meta_alt" { key {[ Alt_L, Meta_L ]}; key {[ Alt_R, Meta_R ], type[group1] = "TWO_LEVEL" }; modifier_map Mod1 { , }; }; // Alt is mapped to the Super and the usual Alt. partial modifier_keys xkb_symbols "alt_win" { key {[ Alt_L ]}; key {[ Alt_R ]}; modifier_map Mod1 { , }; }; // Ctrl is mapped to the Super and the usual Ctrl keys. partial modifier_keys xkb_symbols "ctrl_win" { key {[ Control_L ]}; key {[ Control_R ]}; modifier_map Control { , }; }; // Ctrl is mapped to the Right Super and the usual Ctrl key. partial modifier_keys xkb_symbols "ctrl_rwin" { key {[ Control_R ]}; modifier_map Control { }; }; // Ctrl is mapped to the Alt, Alt to the Super, and Win to the Ctrl keys. partial modifier_keys xkb_symbols "ctrl_alt_win" { key {[ Control_L, Control_L ]}; key {[ Control_R, Control_R ], type[group1] = "TWO_LEVEL" }; key {[ Alt_L, Meta_L ]}; key {[ Alt_R, Meta_R ]}; key {[ Super_L ]}; key {[ Super_R ]}; modifier_map Control { , }; modifier_map Mod1 { , }; modifier_map Mod4 { , }; }; // Meta is mapped to the Super keys. partial modifier_keys xkb_symbols "meta_win" { key {[ Alt_L, Alt_L ]}; key {[ Alt_R, Alt_R ], type[group1] = "TWO_LEVEL" }; key {[ Meta_L ]}; key {[ Meta_R ]}; modifier_map Mod1 { , }; modifier_map Mod4 { , Meta_L, Meta_R }; }; // Meta is mapped to the left Super key. partial modifier_keys xkb_symbols "left_meta_win" { key {[ Alt_L, Alt_L ]}; key {[ Meta_L ]}; modifier_map Mod1 { }; modifier_map Mod4 { , Meta_L }; }; // Hyper is mapped to the Super keys. partial modifier_keys xkb_symbols "hyper_win" { key {[ Hyper_L ]}; key {[ Hyper_R ]}; modifier_map Mod4 { Hyper_L, Hyper_R }; }; // Menu is mapped to the Menu key. partial modifier_keys xkb_symbols "menu" { key {[ Menu ]}; }; // Super is mapped to the Menu key. partial modifier_keys xkb_symbols "menu_win" { key {[ Super_R ]}; modifier_map Mod4 { }; }; // Make the right Super key an additional Alt, // and the Menu key an additional Super. partial modifier_keys xkb_symbols "alt_super_win" { key {[ Alt_L, Meta_L ]}; key {[ Alt_R, Meta_R ]}; key {[ Super_L ]}; key {[ Super_R ]}; modifier_map Mod1 { , }; modifier_map Mod4 { , }; }; // Swap the left Alt and Super. partial modifier_keys xkb_symbols "swap_lalt_lwin" { key {[ Super_L ], type[group1] = "ONE_LEVEL" }; key {[ Alt_L, Meta_L ]}; modifier_map Mod4 { }; modifier_map Mod1 { }; }; // Swap the right Alt and Super. hidden partial modifier_keys xkb_symbols "swap_ralt_rwin" { key {[ Super_R ], type[group1] = "ONE_LEVEL" }; key {[ Alt_R, Meta_R ]}; modifier_map Mod4 { }; modifier_map Mod1 { }; }; // Swap Alt and Super. partial modifier_keys xkb_symbols "swap_alt_win" { include "altwin(swap_lalt_lwin)" include "altwin(swap_ralt_rwin)" }; // Super is mapped to the PrtSc key (and the usual Win key). partial modifier_keys xkb_symbols "prtsc_rwin" { replace key {[ Super_R, Super_R ]}; modifier_map Mod4 { , }; };