-
Notifications
You must be signed in to change notification settings - Fork 6
/
ownkeys
168 lines (129 loc) · 4.77 KB
/
ownkeys
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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
partial alphanumeric_keys
xkb_symbols "base" {
name[Group1]= "my own";
// Alphanumeric section
key <TLDE> { [ Delete ] };
key <AE01> { [ 1, dead_acute ] };
key <AE02> { [ 2, dead_grave ] };
key <AE03> { [ 3, dead_diaeresis, less ] };
key <AE04> { [ 4, EuroSign, greater ] };
key <AE05> { [ 5, dead_tilde ] };
key <AE06> { [ 6, dead_cedilla ] };
key <AE07> { [ 7, question ] };
key <AE08> { [ 8, minus, asciitilde] };
key <AE09> { [ 9, X, dollar ] };
key <AE10> { [ 0] };
key <AE11> { [ adiaeresis, Adiaeresis ] };
key <AE12> { [ odiaeresis, Odiaeresis ] };
key <AD01> { [ apostrophe, NoSymbol, asciicircum] };
key <AD02> { [ comma, dollar, percent] };
key <AD03> { [ period, underscore, asciicircum] };
key <AD04> { [ p, P] };
key <AD05> { [ y, Y] };
key <AD06> { [ f, F] };
key <AD07> { [ g, G, at] };
key <AD08> { [ c, C, ampersand] };
key <AD09> { [ r, R, quotedbl ] };
key <AD10> { [ l, L ] };
key <AD11> { [ NoSymbol] };
key <AD12> { [ NoSymbol ] };
key <AC01> { [ a, A, asterisk]};
key <AC02> { [ o, O, plus] };
key <AC03> { [ e, E, equal] };
key <AC04> { [ u, U, slash, bar ] };
key <AC05> { [ i, I, backslash ] };
key <AC06> { [ d, D, question, exclam ] };
key <AC07> { [ h, H, parenleft] };
key <AC08> { [ t, T, parenright] };
key <AC09> { [ n, N, bracketleft] };
key <AC10> { [ s, S, bracketright, numbersign ] };
key <AC11> { [ colon, ssharp, grave ] };
key <BKSL> { [ aring, Aring, bar ] };
key <AB01> { [ semicolon, minus] };
key <AB02> { [ q, Q, exclam ]};
key <AB03> { [ j, J, underscore ] };
key <AB04> { [ k, K, minus] };
key <AB05> { [ x, X, dollar ] };
key <AB06> { [ b, B, asciitilde ] };
key <AB07> { [ m, M, semicolon ] };
key <AB08> { [ w, W, apostrophe ] };
key <AB09> { [ v, V, numbersign ] };
key <AB10> { [ z, Z, bar ] };
key <SPCE> { [ space, space, space, nobreakspace ] };
};
partial alphanumeric_keys
xkb_symbols "standard" {
name[Group1]= "my own";
include "ownkeys(base)"
include "level3(lwin_switch)"
include "level3(ralt_switch)"
include "level3(switch)"
#intl keyboard
replace key <LSGT> { type[Group1] = "TWO_LEVEL",
symbols[Group1] = [ Control_L, Control_L ] };
modifier_map Control { <LSGT> };
#typematrix
replace key <AB01> { type[Group1] = "TWO_LEVEL",
symbols[Group1] = [ Control_L, Control_L ] };
modifier_map Control { <AB01> };
//key <LCTL> {
// type[Group1]="ONE_LEVEL",
// symbols[Group1] = [ Super_L ]
//};
// include "level3(modifier_mapping)"
key <CAPS> { [ Escape ] };
key <ESC> { [ Caps_Lock ] };
key <AB11> { [ aring, Aring, bar ] };
key <RTSH> {
type[Group1]="ONE_LEVEL",
symbols[Group1] = [ Super_L ]
};
key <AD11> { [ XF86Tools ] };
};
partial alphanumeric_keys modifier_keys
xkb_symbols "aspire" {
include "ownkeys(standard)"
name[Group1] = "aspire keys";
// special cases for the laptop could go here
};
partial alphanumeric_keys modifier_keys
xkb_symbols "tm_old" {
name[Group1]= "tm_old";
include "ownkeys(base)"
replace key <RTSH> { type[Group1] = "TWO_LEVEL",
symbols[Group1] = [ Control_R, Control_R ] };
modifier_map Control { <RTSH> };
key <PGDN> { type[Group1]="ONE_LEVEL",
symbols[Group1] = [ ISO_Level3_Latch ]
};
key <CAPS> { type[Group1]="ONE_LEVEL",
symbols[Group1] = [ ISO_Level4_Latch ]
};
#modifier_map Mod5 { ISO_Level3_Shift };
key <PGUP> { [ Escape ] };
replace key <RCTL> { [ Prior ] } ;
replace key <LALT> { [ Next ] } ;
#key <COMP> { [ Menu ] };
};
xkb_symbols "typematrix" {
name[Group1]= "typematrix";
include "ownkeys(base)"
include "level3(lalt_switch)"
include "level3(ralt_switch)"
include "inet(evdev)"
replace key <RTSH> { type[Group1] = "TWO_LEVEL",
symbols[Group1] = [ Control_R, Control_R ] };
modifier_map Control { <RTSH> };
key <RCTL> { [ Super_R ] };
key <I172> { [ Super_L ] }; #XMOD
key <LWIN> { [ Alt_L, Meta_L ] };
key <RCTL> { [ Alt_L, Meta_L ] };
key <PAUS> { [ Caps_Lock ] };
# expect 106-mode
key <HENK> { [ Escape ] }; #XMOD
key <AB11> { [ backslash, bar ] };
key <BKSL> { [ z, Z ] };
key <CAPS> { [ x ,X ] } ;
#key <MUHE> { [ odiaeresis, Odiaeresis, oe, OE ] }; #XMOD
key <MUHE> { [ b, B, oe, OE ] }; #XMOD
};