-
-
Notifications
You must be signed in to change notification settings - Fork 28
/
pixelbookgo.toml
135 lines (103 loc) · 2.48 KB
/
pixelbookgo.toml
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
# This config file is the one that @wez uses on a PixelBook Go
device_name = "AT Translated Set 2 keyboard"
# Hold capslock for ctrl, tap for esc
[[dual_role]]
input = "KEY_CAPSLOCK"
hold = ["KEY_LEFTCTRL"]
tap = ["KEY_ESC"]
# Function keys are remapped to alternate functions by
# default, so arrange for ALT-FX to produce FX instead.
# First, let's preserve the ability to switch virtual
# terminal consoles for the first three slots
[[remap]]
input = ["KEY_LEFTALT", "KEY_LEFTCTRL", "KEY_F1"]
output = ["KEY_LEFTALT", "KEY_LEFTCTRL", "KEY_F1"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_LEFTCTRL", "KEY_F2"]
output = ["KEY_LEFTALT", "KEY_LEFTCTRL", "KEY_F2"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_LEFTCTRL", "KEY_F3"]
output = ["KEY_LEFTALT", "KEY_LEFTCTRL", "KEY_F3"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F1"]
output = ["KEY_F1"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F2"]
output = ["KEY_F2"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F3"]
output = ["KEY_F3"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F4"]
output = ["KEY_F4"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F5"]
output = ["KEY_F5"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F6"]
output = ["KEY_F6"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F7"]
output = ["KEY_F7"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F8"]
output = ["KEY_F8"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F9"]
output = ["KEY_F9"]
[[remap]]
input = ["KEY_F1"]
output = ["KEY_BACK"]
[[remap]]
input = ["KEY_F2"]
output = ["KEY_REFRESH"]
[[remap]]
input = ["KEY_F3"]
# Copy!
output = ["KEY_LEFTCTRL", "KEY_C"]
[[remap]]
input = ["KEY_F4"]
# Paste!
output = ["KEY_LEFTSHIFT", "KEY_INSERT"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F5"]
output = ["KEY_KBDILLUMDOWN"]
[[remap]]
input = ["KEY_RIGHTALT", "KEY_F5"]
output = ["KEY_KBDILLUMDOWN"]
[[remap]]
input = ["KEY_F5"]
output = ["KEY_BRIGHTNESSDOWN"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_F6"]
output = ["KEY_KBDILLUMUP"]
[[remap]]
input = ["KEY_RIGHTALT", "KEY_F6"]
output = ["KEY_KBDILLUMUP"]
[[remap]]
input = ["KEY_F6"]
output = ["KEY_BRIGHTNESSUP"]
[[remap]]
input = ["KEY_F7"]
output = ["KEY_PLAYPAUSE"]
[[remap]]
input = ["KEY_F8"]
output = ["KEY_MUTE"]
[[remap]]
input = ["KEY_F9"]
output = ["KEY_VOLUMEDOWN"]
[[remap]]
input = ["KEY_F10"]
output = ["KEY_VOLUMEUP"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_UP"]
output = ["KEY_PAGEUP"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_DOWN"]
output = ["KEY_PAGEDOWN"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_LEFT"]
output = ["KEY_HOME"]
[[remap]]
input = ["KEY_LEFTALT", "KEY_RIGHT"]
output = ["KEY_END"]