summaryrefslogtreecommitdiff
path: root/symbols/altwin
blob: 0b646414fb88c402a578534b3346ea3f034584bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
// Meta is mapped to second level of Alt.
partial modifier_keys
xkb_symbols "meta_alt" {
    key <LALT> {[  Alt_L,  Meta_L  ]};
    key <RALT> {[  Alt_R,  Meta_R  ], type[group1] = "TWO_LEVEL" };
    modifier_map Mod1 { <LALT>, <RALT> };
};

// Alt is mapped to the Super and the usual Alt.
partial modifier_keys
xkb_symbols "alt_win" {
    key <LWIN> {[  Alt_L  ]};
    key <RWIN> {[  Alt_R  ]};
    modifier_map Mod1 { <LWIN>, <RWIN> };
};

// Ctrl is mapped to the Super and the usual Ctrl keys.
partial modifier_keys
xkb_symbols "ctrl_win" {
    key <LWIN> {[  Control_L  ]};
    key <RWIN> {[  Control_R  ]};
    modifier_map Control { <LWIN>, <RWIN> };
};

// Ctrl is mapped to the Right Super and the usual Ctrl key.
partial modifier_keys
xkb_symbols "ctrl_rwin" {
    key <RWIN> {[  Control_R  ]};
    modifier_map Control { <RWIN> };
};

// 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 <LALT> {[  Control_L,  Control_L  ]};
    key <RALT> {[  Control_R,  Control_R  ], type[group1] = "TWO_LEVEL" };
    key <LWIN> {[  Alt_L,  Meta_L  ]};
    key <RWIN> {[  Alt_R,  Meta_R  ]};
    key <LCTL> {[  Super_L  ]};
    key <RCTL> {[  Super_R  ]};
    modifier_map Control { <LALT>, <RALT> };
    modifier_map Mod1 { <LWIN>, <RWIN> };
    modifier_map Mod4 { <LCTL>, <RCTL> };
};

// Meta is mapped to the Super keys.
partial modifier_keys
xkb_symbols "meta_win" {
    key <LALT> {[  Alt_L,  Alt_L  ]};
    key <RALT> {[  Alt_R,  Alt_R  ], type[group1] = "TWO_LEVEL" };
    key <LWIN> {[  Meta_L  ]};
    key <RWIN> {[  Meta_R  ]};
    modifier_map Mod1 { <LALT>, <RALT> };
    modifier_map Mod4 { <META>, Meta_L, Meta_R };
};

// Meta is mapped to the left Super key.
partial modifier_keys
xkb_symbols "left_meta_win" {
    key <LALT> {[  Alt_L,  Alt_L  ]};
    key <LWIN> {[  Meta_L  ]};
    modifier_map Mod1 { <LALT> };
    modifier_map Mod4 { <META>, Meta_L };
};

// Hyper is mapped to the Super keys.
partial modifier_keys
xkb_symbols "hyper_win" {
    key <LWIN> {[  Hyper_L  ]};
    key <RWIN> {[  Hyper_R  ]};
    modifier_map Mod4 { Hyper_L, Hyper_R };
};

// Menu is mapped to the Menu key.
partial modifier_keys
xkb_symbols "menu" {
    key <MENU> {[  Menu  ]};
};

// Super is mapped to the Menu key.
partial modifier_keys
xkb_symbols "menu_win" {
    key <MENU> {[  Super_R  ]};
    modifier_map Mod4 { <MENU> };
};

// Make the right Super key an additional Alt,
// and the Menu key an additional Super.
partial modifier_keys
xkb_symbols "alt_super_win" {
    key <LALT> {[  Alt_L,  Meta_L  ]};
    key <RWIN> {[  Alt_R,  Meta_R  ]};
    key <LWIN> {[  Super_L ]};
    key <MENU> {[  Super_R  ]};
    modifier_map Mod1 { <LALT>, <RWIN> };
    modifier_map Mod4 { <LWIN>, <MENU> };
};

// Swap the left Alt and Super.
partial modifier_keys
xkb_symbols "swap_lalt_lwin" {
    key <LALT> {[  Super_L  ], type[group1] = "ONE_LEVEL" };
    key <LWIN> {[  Alt_L,  Meta_L  ]};
    modifier_map Mod4 { <LALT> };
    modifier_map Mod1 { <LWIN> };
};

// Swap the right Alt and Super.
hidden partial modifier_keys
xkb_symbols "swap_ralt_rwin" {
    key <RALT> {[  Super_R  ], type[group1] = "ONE_LEVEL" };
    key <RWIN> {[  Alt_R,  Meta_R  ]};
    modifier_map Mod4 { <RALT> };
    modifier_map Mod1 { <RWIN> };
};

// 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 <PRSC> {[  Super_R,  Super_R  ]};
    modifier_map Mod4 { <PRSC>, <RWIN> };
};