altwin revision 1.1.1.11 1 // Meta is mapped to second level of Alt.
2 partial modifier_keys
3 xkb_symbols "meta_alt" {
4 key <LALT> { [ Alt_L, Meta_L ] };
5 key <RALT> { type[Group1] = "TWO_LEVEL",
6 symbols[Group1] = [ Alt_R, Meta_R ] };
7 modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R };
8 // modifier_map Mod4 {};
9 };
10
11 // Alt is mapped to the Super and the usual Alt.
12 partial modifier_keys
13 xkb_symbols "alt_win" {
14 key <LWIN> { [ Alt_L ] };
15 key <RWIN> { [ Alt_R ] };
16 modifier_map Mod1 { <LWIN>, <RWIN> };
17 };
18
19 // Ctrl is mapped to the Super and the usual Ctrl keys.
20 partial modifier_keys
21 xkb_symbols "ctrl_win" {
22 key <LWIN> { [ Control_L ] };
23 key <RWIN> { [ Control_R ] };
24 modifier_map Control { <LWIN>, <RWIN> };
25 };
26
27 // Ctrl is mapped to the Right Super and the usual Ctrl key.
28 partial modifier_keys
29 xkb_symbols "ctrl_rwin" {
30 key <RWIN> { [ Control_R ] };
31 modifier_map Control { <RWIN> };
32 };
33
34 // Ctrl is mapped to the Alt, Alt to the Super, and Win to the Ctrl keys.
35 partial modifier_keys
36 xkb_symbols "ctrl_alt_win" {
37 key <LALT> { [ Control_L, Control_L ] };
38 key <RALT> { type[Group1] = "TWO_LEVEL",
39 symbols[Group1] = [ Control_R, Control_R ] };
40 key <LWIN> { [ Alt_L, Meta_L ] };
41 key <RWIN> { [ Alt_R, Meta_R ] };
42 key <LCTL> { [ Super_L ] };
43 key <RCTL> { [ Super_R ] };
44 modifier_map Control { <RALT>, <LALT> };
45 modifier_map Mod1 { <LWIN>, <RWIN> };
46 modifier_map Mod4 { <LCTL>, <RCTL> };
47 };
48
49 // Meta is mapped to the Super.
50 partial modifier_keys
51 xkb_symbols "meta_win" {
52 key <LALT> { [ Alt_L, Alt_L ] };
53 key <RALT> { type[Group1] = "TWO_LEVEL",
54 symbols[Group1] = [ Alt_R, Alt_R ] };
55 key <LWIN> { [ Meta_L ] };
56 key <RWIN> { [ Meta_R ] };
57 modifier_map Mod1 { Alt_L, Alt_R };
58 modifier_map Mod4 { <META>, Meta_L, Meta_R };
59 };
60
61 // Meta is mapped to the left Win key.
62 partial modifier_keys
63 xkb_symbols "left_meta_win" {
64 key <LALT> { [ Alt_L, Alt_L ] };
65 key <LWIN> { [ Meta_L ] };
66 modifier_map Mod1 { Alt_L };
67 modifier_map Mod4 { <META>, Meta_L };
68 };
69
70 // Hyper is mapped to the Super.
71 partial modifier_keys
72 xkb_symbols "hyper_win" {
73 key <LWIN> { [ Hyper_L ] };
74 key <RWIN> { [ Hyper_R ] };
75 modifier_map Mod4 { Hyper_L, Hyper_R };
76 };
77
78 // Menu is mapped to the Menu key.
79 partial modifier_keys
80 xkb_symbols "menu" {
81 key <MENU> { [ Menu ] };
82 };
83
84 // Menu is mapped to the right Win key.
85 partial modifier_keys
86 xkb_symbols "menu_win" {
87 key <MENU> { [ Super_R ] };
88 };
89
90 // Layout for Tux key caps with additional right Alt key
91 partial modifier_keys
92 xkb_symbols "alt_super_win" {
93 key <LALT> { [ Alt_L, Meta_L ] };
94 key <RWIN> { [ Alt_R, Meta_R ] };
95 key <LWIN> { [ Super_L ]};
96 key <MENU> { [ Super_R ] };
97 modifier_map Mod1 { Alt_L, Alt_R, Meta_L, Meta_R };
98 modifier_map Mod4 { Super_L, Super_R };
99 };
100
101 // Swap the Alt and Super.
102 partial modifier_keys
103 xkb_symbols "swap_alt_win" {
104 include "altwin(swap_lalt_lwin)"
105 include "altwin(swap_ralt_rwin)"
106 };
107
108 // Swap the left Alt and Super.
109 partial modifier_keys
110 xkb_symbols "swap_lalt_lwin" {
111 key <LALT> { type[Group1] = "ONE_LEVEL",
112 symbols[Group1] = [ Super_L ] };
113 key <LWIN> { [ Alt_L, Meta_L ] };
114 };
115
116 // Swap the right Alt and Super.
117 hidden partial modifier_keys
118 xkb_symbols "swap_ralt_rwin" {
119 key <RALT> { type[Group1] = "ONE_LEVEL",
120 symbols[Group1] = [ Super_R ] };
121 key <RWIN> { [ Alt_R, Meta_R ] };
122 };
123
124 // Win is mapped to the PrtSc key (and the usual Win key).
125 partial modifier_keys
126 xkb_symbols "prtsc_rwin" {
127 replace key <PRSC> { [ Super_R, Super_R ] };
128 modifier_map Mod4 { <PRSC>, <RWIN> };
129 };
130