Browse code
Tweak mac config
- Add karabiner configuration for shift->paren
- Add man file viewer
Showing 4 changed files
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,395 @@ |
1 |
+{ |
|
2 |
+ "global": { |
|
3 |
+ "check_for_updates_on_startup": true, |
|
4 |
+ "show_in_menu_bar": true, |
|
5 |
+ "show_profile_name_in_menu_bar": true |
|
6 |
+ }, |
|
7 |
+ "profiles": [ |
|
8 |
+ { |
|
9 |
+ "complex_modifications": { |
|
10 |
+ "parameters": { |
|
11 |
+ "basic.to_delayed_action_delay_milliseconds": 500, |
|
12 |
+ "basic.to_if_alone_timeout_milliseconds": 200 |
|
13 |
+ }, |
|
14 |
+ "rules": [ |
|
15 |
+ { |
|
16 |
+ "manipulators": [ |
|
17 |
+ { |
|
18 |
+ "description": "map left shift to opening parenthesis", |
|
19 |
+ "from": { |
|
20 |
+ "key_code": "left_shift", |
|
21 |
+ "modifiers": { |
|
22 |
+ "optional": [] |
|
23 |
+ } |
|
24 |
+ }, |
|
25 |
+ "to": [ |
|
26 |
+ { |
|
27 |
+ "key_code": "left_shift", |
|
28 |
+ "modifiers": [] |
|
29 |
+ } |
|
30 |
+ ], |
|
31 |
+ "to_if_alone": [ |
|
32 |
+ { |
|
33 |
+ "key_code": "9", |
|
34 |
+ "modifiers": [ |
|
35 |
+ "left_shift" |
|
36 |
+ ] |
|
37 |
+ } |
|
38 |
+ ], |
|
39 |
+ "type": "basic" |
|
40 |
+ }, |
|
41 |
+ { |
|
42 |
+ "description": "map left shift to opening parenthesis", |
|
43 |
+ "from": { |
|
44 |
+ "key_code": "left_control", |
|
45 |
+ "modifiers": { |
|
46 |
+ "optional": [ |
|
47 |
+ "any" |
|
48 |
+ ] |
|
49 |
+ } |
|
50 |
+ }, |
|
51 |
+ "to": [ |
|
52 |
+ { |
|
53 |
+ "key_code": "left_control", |
|
54 |
+ "modifiers": [] |
|
55 |
+ } |
|
56 |
+ ], |
|
57 |
+ "to_if_alone": [ |
|
58 |
+ { |
|
59 |
+ "key_code": "open_bracket", |
|
60 |
+ "modifiers": [ |
|
61 |
+ "left_shift" |
|
62 |
+ ] |
|
63 |
+ } |
|
64 |
+ ], |
|
65 |
+ "type": "basic" |
|
66 |
+ }, |
|
67 |
+ { |
|
68 |
+ "description": "map left shift to opening parenthesis", |
|
69 |
+ "from": { |
|
70 |
+ "key_code": "right_control", |
|
71 |
+ "modifiers": { |
|
72 |
+ "optional": [ |
|
73 |
+ "any" |
|
74 |
+ ] |
|
75 |
+ } |
|
76 |
+ }, |
|
77 |
+ "to": [ |
|
78 |
+ { |
|
79 |
+ "key_code": "right_control", |
|
80 |
+ "modifiers": [] |
|
81 |
+ } |
|
82 |
+ ], |
|
83 |
+ "to_if_alone": [ |
|
84 |
+ { |
|
85 |
+ "key_code": "close_bracket", |
|
86 |
+ "modifiers": [ |
|
87 |
+ "left_shift" |
|
88 |
+ ] |
|
89 |
+ } |
|
90 |
+ ], |
|
91 |
+ "type": "basic" |
|
92 |
+ }, |
|
93 |
+ { |
|
94 |
+ "description": "map right shift to closing parenthesis", |
|
95 |
+ "from": { |
|
96 |
+ "key_code": "right_shift", |
|
97 |
+ "modifiers": { |
|
98 |
+ "optional": [ |
|
99 |
+ "any" |
|
100 |
+ ] |
|
101 |
+ } |
|
102 |
+ }, |
|
103 |
+ "to": [ |
|
104 |
+ { |
|
105 |
+ "key_code": "right_shift", |
|
106 |
+ "modifiers": [] |
|
107 |
+ } |
|
108 |
+ ], |
|
109 |
+ "to_if_alone": [ |
|
110 |
+ { |
|
111 |
+ "key_code": "0", |
|
112 |
+ "modifiers": [ |
|
113 |
+ "right_shift" |
|
114 |
+ ] |
|
115 |
+ } |
|
116 |
+ ], |
|
117 |
+ "type": "basic" |
|
118 |
+ } |
|
119 |
+ ] |
|
120 |
+ } |
|
121 |
+ ] |
|
122 |
+ }, |
|
123 |
+ "devices": [ |
|
124 |
+ { |
|
125 |
+ "disable_built_in_keyboard_if_exists": false, |
|
126 |
+ "fn_function_keys": [], |
|
127 |
+ "identifiers": { |
|
128 |
+ "is_keyboard": true, |
|
129 |
+ "is_pointing_device": false, |
|
130 |
+ "product_id": 50475, |
|
131 |
+ "vendor_id": 1133 |
|
132 |
+ }, |
|
133 |
+ "ignore": false, |
|
134 |
+ "manipulate_caps_lock_led": false, |
|
135 |
+ "simple_modifications": [] |
|
136 |
+ }, |
|
137 |
+ { |
|
138 |
+ "disable_built_in_keyboard_if_exists": false, |
|
139 |
+ "fn_function_keys": [], |
|
140 |
+ "identifiers": { |
|
141 |
+ "is_keyboard": true, |
|
142 |
+ "is_pointing_device": false, |
|
143 |
+ "product_id": 617, |
|
144 |
+ "vendor_id": 1241 |
|
145 |
+ }, |
|
146 |
+ "ignore": false, |
|
147 |
+ "manipulate_caps_lock_led": false, |
|
148 |
+ "simple_modifications": [] |
|
149 |
+ }, |
|
150 |
+ { |
|
151 |
+ "disable_built_in_keyboard_if_exists": false, |
|
152 |
+ "fn_function_keys": [], |
|
153 |
+ "identifiers": { |
|
154 |
+ "is_keyboard": true, |
|
155 |
+ "is_pointing_device": false, |
|
156 |
+ "product_id": 591, |
|
157 |
+ "vendor_id": 1452 |
|
158 |
+ }, |
|
159 |
+ "ignore": false, |
|
160 |
+ "manipulate_caps_lock_led": true, |
|
161 |
+ "simple_modifications": [] |
|
162 |
+ } |
|
163 |
+ ], |
|
164 |
+ "fn_function_keys": [ |
|
165 |
+ { |
|
166 |
+ "from": { |
|
167 |
+ "key_code": "f1" |
|
168 |
+ }, |
|
169 |
+ "to": { |
|
170 |
+ "key_code": "display_brightness_decrement" |
|
171 |
+ } |
|
172 |
+ }, |
|
173 |
+ { |
|
174 |
+ "from": { |
|
175 |
+ "key_code": "f2" |
|
176 |
+ }, |
|
177 |
+ "to": { |
|
178 |
+ "key_code": "display_brightness_increment" |
|
179 |
+ } |
|
180 |
+ }, |
|
181 |
+ { |
|
182 |
+ "from": { |
|
183 |
+ "key_code": "f3" |
|
184 |
+ }, |
|
185 |
+ "to": { |
|
186 |
+ "key_code": "mission_control" |
|
187 |
+ } |
|
188 |
+ }, |
|
189 |
+ { |
|
190 |
+ "from": { |
|
191 |
+ "key_code": "f4" |
|
192 |
+ }, |
|
193 |
+ "to": { |
|
194 |
+ "key_code": "launchpad" |
|
195 |
+ } |
|
196 |
+ }, |
|
197 |
+ { |
|
198 |
+ "from": { |
|
199 |
+ "key_code": "f5" |
|
200 |
+ }, |
|
201 |
+ "to": { |
|
202 |
+ "key_code": "illumination_decrement" |
|
203 |
+ } |
|
204 |
+ }, |
|
205 |
+ { |
|
206 |
+ "from": { |
|
207 |
+ "key_code": "f6" |
|
208 |
+ }, |
|
209 |
+ "to": { |
|
210 |
+ "key_code": "illumination_increment" |
|
211 |
+ } |
|
212 |
+ }, |
|
213 |
+ { |
|
214 |
+ "from": { |
|
215 |
+ "key_code": "f7" |
|
216 |
+ }, |
|
217 |
+ "to": { |
|
218 |
+ "key_code": "rewind" |
|
219 |
+ } |
|
220 |
+ }, |
|
221 |
+ { |
|
222 |
+ "from": { |
|
223 |
+ "key_code": "f8" |
|
224 |
+ }, |
|
225 |
+ "to": { |
|
226 |
+ "key_code": "play_or_pause" |
|
227 |
+ } |
|
228 |
+ }, |
|
229 |
+ { |
|
230 |
+ "from": { |
|
231 |
+ "key_code": "f9" |
|
232 |
+ }, |
|
233 |
+ "to": { |
|
234 |
+ "key_code": "fastforward" |
|
235 |
+ } |
|
236 |
+ }, |
|
237 |
+ { |
|
238 |
+ "from": { |
|
239 |
+ "key_code": "f10" |
|
240 |
+ }, |
|
241 |
+ "to": { |
|
242 |
+ "key_code": "mute" |
|
243 |
+ } |
|
244 |
+ }, |
|
245 |
+ { |
|
246 |
+ "from": { |
|
247 |
+ "key_code": "f11" |
|
248 |
+ }, |
|
249 |
+ "to": { |
|
250 |
+ "key_code": "volume_decrement" |
|
251 |
+ } |
|
252 |
+ }, |
|
253 |
+ { |
|
254 |
+ "from": { |
|
255 |
+ "key_code": "f12" |
|
256 |
+ }, |
|
257 |
+ "to": { |
|
258 |
+ "key_code": "volume_increment" |
|
259 |
+ } |
|
260 |
+ } |
|
261 |
+ ], |
|
262 |
+ "name": "shift->paren", |
|
263 |
+ "selected": true, |
|
264 |
+ "simple_modifications": [ |
|
265 |
+ { |
|
266 |
+ "from": { |
|
267 |
+ "key_code": "caps_lock" |
|
268 |
+ }, |
|
269 |
+ "to": { |
|
270 |
+ "key_code": "left_command" |
|
271 |
+ } |
|
272 |
+ } |
|
273 |
+ ], |
|
274 |
+ "virtual_hid_keyboard": { |
|
275 |
+ "caps_lock_delay_milliseconds": 0, |
|
276 |
+ "keyboard_type": "ansi" |
|
277 |
+ } |
|
278 |
+ }, |
|
279 |
+ { |
|
280 |
+ "complex_modifications": { |
|
281 |
+ "parameters": { |
|
282 |
+ "basic.to_delayed_action_delay_milliseconds": 500, |
|
283 |
+ "basic.to_if_alone_timeout_milliseconds": 1000 |
|
284 |
+ }, |
|
285 |
+ "rules": [] |
|
286 |
+ }, |
|
287 |
+ "devices": [], |
|
288 |
+ "fn_function_keys": [ |
|
289 |
+ { |
|
290 |
+ "from": { |
|
291 |
+ "key_code": "f1" |
|
292 |
+ }, |
|
293 |
+ "to": { |
|
294 |
+ "key_code": "display_brightness_decrement" |
|
295 |
+ } |
|
296 |
+ }, |
|
297 |
+ { |
|
298 |
+ "from": { |
|
299 |
+ "key_code": "f2" |
|
300 |
+ }, |
|
301 |
+ "to": { |
|
302 |
+ "key_code": "display_brightness_increment" |
|
303 |
+ } |
|
304 |
+ }, |
|
305 |
+ { |
|
306 |
+ "from": { |
|
307 |
+ "key_code": "f3" |
|
308 |
+ }, |
|
309 |
+ "to": { |
|
310 |
+ "key_code": "mission_control" |
|
311 |
+ } |
|
312 |
+ }, |
|
313 |
+ { |
|
314 |
+ "from": { |
|
315 |
+ "key_code": "f4" |
|
316 |
+ }, |
|
317 |
+ "to": { |
|
318 |
+ "key_code": "launchpad" |
|
319 |
+ } |
|
320 |
+ }, |
|
321 |
+ { |
|
322 |
+ "from": { |
|
323 |
+ "key_code": "f5" |
|
324 |
+ }, |
|
325 |
+ "to": { |
|
326 |
+ "key_code": "illumination_decrement" |
|
327 |
+ } |
|
328 |
+ }, |
|
329 |
+ { |
|
330 |
+ "from": { |
|
331 |
+ "key_code": "f6" |
|
332 |
+ }, |
|
333 |
+ "to": { |
|
334 |
+ "key_code": "illumination_increment" |
|
335 |
+ } |
|
336 |
+ }, |
|
337 |
+ { |
|
338 |
+ "from": { |
|
339 |
+ "key_code": "f7" |
|
340 |
+ }, |
|
341 |
+ "to": { |
|
342 |
+ "key_code": "rewind" |
|
343 |
+ } |
|
344 |
+ }, |
|
345 |
+ { |
|
346 |
+ "from": { |
|
347 |
+ "key_code": "f8" |
|
348 |
+ }, |
|
349 |
+ "to": { |
|
350 |
+ "key_code": "play_or_pause" |
|
351 |
+ } |
|
352 |
+ }, |
|
353 |
+ { |
|
354 |
+ "from": { |
|
355 |
+ "key_code": "f9" |
|
356 |
+ }, |
|
357 |
+ "to": { |
|
358 |
+ "key_code": "fastforward" |
|
359 |
+ } |
|
360 |
+ }, |
|
361 |
+ { |
|
362 |
+ "from": { |
|
363 |
+ "key_code": "f10" |
|
364 |
+ }, |
|
365 |
+ "to": { |
|
366 |
+ "key_code": "mute" |
|
367 |
+ } |
|
368 |
+ }, |
|
369 |
+ { |
|
370 |
+ "from": { |
|
371 |
+ "key_code": "f11" |
|
372 |
+ }, |
|
373 |
+ "to": { |
|
374 |
+ "key_code": "volume_decrement" |
|
375 |
+ } |
|
376 |
+ }, |
|
377 |
+ { |
|
378 |
+ "from": { |
|
379 |
+ "key_code": "f12" |
|
380 |
+ }, |
|
381 |
+ "to": { |
|
382 |
+ "key_code": "volume_increment" |
|
383 |
+ } |
|
384 |
+ } |
|
385 |
+ ], |
|
386 |
+ "name": "no shift->paren", |
|
387 |
+ "selected": false, |
|
388 |
+ "simple_modifications": [], |
|
389 |
+ "virtual_hid_keyboard": { |
|
390 |
+ "caps_lock_delay_milliseconds": 0, |
|
391 |
+ "keyboard_type": "ansi" |
|
392 |
+ } |
|
393 |
+ } |
|
394 |
+ ] |
|
395 |
+} |