|
11 | 11 | "parameters" : {
|
12 | 12 | "basic.simultaneous_threshold_milliseconds" : 100,
|
13 | 13 | "basic.to_delayed_action_delay_milliseconds" : 200,
|
14 |
| - "basic.to_if_alone_timeout_milliseconds" : 20, |
| 14 | + "basic.to_if_alone_timeout_milliseconds" : 200, |
15 | 15 | "basic.to_if_held_down_threshold_milliseconds" : 100
|
16 | 16 | },
|
17 | 17 | "rules" : [ {
|
|
209 | 209 | "type" : "basic"
|
210 | 210 | } ]
|
211 | 211 | }, {
|
212 |
| - "description" : "Escape mode: quick navigation", |
| 212 | + "description" : "escape to esc when pressed alone, to hyper as modifier", |
213 | 213 | "manipulators" : [ {
|
| 214 | + "to_if_alone" : [ { |
| 215 | + "key_code" : "escape" |
| 216 | + } ], |
214 | 217 | "from" : {
|
215 |
| - "key_code" : "j" |
| 218 | + "key_code" : "escape" |
216 | 219 | },
|
217 | 220 | "to" : [ {
|
218 |
| - "mouse_key" : { |
219 |
| - "vertical_wheel" : 64, |
220 |
| - "speed_multiplier" : 1.5 |
221 |
| - } |
222 |
| - } ], |
223 |
| - "conditions" : [ { |
224 |
| - "name" : "escape-mode", |
225 |
| - "value" : 1, |
226 |
| - "type" : "variable_if" |
| 221 | + "key_code" : "left_shift", |
| 222 | + "modifiers" : [ "left_command", "left_control", "left_option" ] |
227 | 223 | } ],
|
228 | 224 | "type" : "basic"
|
229 |
| - }, { |
230 |
| - "type" : "basic", |
231 |
| - "parameters" : { |
232 |
| - "basic.simultaneous_threshold_milliseconds" : 250 |
233 |
| - }, |
234 |
| - "to" : [ { |
235 |
| - "set_variable" : { |
236 |
| - "name" : "escape-mode", |
237 |
| - "value" : 1 |
238 |
| - } |
239 |
| - }, { |
240 |
| - "mouse_key" : { |
241 |
| - "vertical_wheel" : 64, |
242 |
| - "speed_multiplier" : 1.5 |
243 |
| - } |
| 225 | + } ] |
| 226 | + }, { |
| 227 | + "description" : "caps_lock to esc when pressed alone, to hyper as modifier", |
| 228 | + "manipulators" : [ { |
| 229 | + "to_if_alone" : [ { |
| 230 | + "key_code" : "escape" |
244 | 231 | } ],
|
245 | 232 | "from" : {
|
246 |
| - "simultaneous" : [ { |
247 |
| - "key_code" : "escape" |
248 |
| - }, { |
249 |
| - "key_code" : "j" |
250 |
| - } ], |
251 |
| - "simultaneous_options" : { |
252 |
| - "detect_key_down_uninterruptedly" : true, |
253 |
| - "key_down_order" : "strict", |
254 |
| - "key_up_order" : "strict_inverse", |
255 |
| - "key_up_when" : "any", |
256 |
| - "to_after_key_up" : [ { |
257 |
| - "set_variable" : { |
258 |
| - "name" : "escape-mode", |
259 |
| - "value" : 0 |
260 |
| - } |
261 |
| - } ] |
262 |
| - } |
263 |
| - } |
264 |
| - }, { |
265 |
| - "from" : { |
266 |
| - "key_code" : "k" |
| 233 | + "key_code" : "caps_lock" |
267 | 234 | },
|
268 | 235 | "to" : [ {
|
269 |
| - "mouse_key" : { |
270 |
| - "vertical_wheel" : -64, |
271 |
| - "speed_multiplier" : 1.5 |
272 |
| - } |
273 |
| - } ], |
274 |
| - "conditions" : [ { |
275 |
| - "name" : "escape-mode", |
276 |
| - "value" : 1, |
277 |
| - "type" : "variable_if" |
| 236 | + "key_code" : "left_shift", |
| 237 | + "modifiers" : [ "left_command", "left_control", "left_option" ] |
278 | 238 | } ],
|
279 | 239 | "type" : "basic"
|
280 |
| - }, { |
281 |
| - "type" : "basic", |
282 |
| - "parameters" : { |
283 |
| - "basic.simultaneous_threshold_milliseconds" : 250 |
284 |
| - }, |
285 |
| - "to" : [ { |
286 |
| - "set_variable" : { |
287 |
| - "name" : "escape-mode", |
288 |
| - "value" : 1 |
289 |
| - } |
290 |
| - }, { |
291 |
| - "mouse_key" : { |
292 |
| - "vertical_wheel" : -64, |
293 |
| - "speed_multiplier" : 1.5 |
294 |
| - } |
295 |
| - } ], |
296 |
| - "from" : { |
297 |
| - "simultaneous" : [ { |
298 |
| - "key_code" : "escape" |
299 |
| - }, { |
300 |
| - "key_code" : "k" |
301 |
| - } ], |
302 |
| - "simultaneous_options" : { |
303 |
| - "detect_key_down_uninterruptedly" : true, |
304 |
| - "key_down_order" : "strict", |
305 |
| - "key_up_order" : "strict_inverse", |
306 |
| - "key_up_when" : "any", |
307 |
| - "to_after_key_up" : [ { |
308 |
| - "set_variable" : { |
309 |
| - "name" : "escape-mode", |
310 |
| - "value" : 0 |
311 |
| - } |
312 |
| - } ] |
313 |
| - } |
314 |
| - } |
315 | 240 | } ]
|
316 | 241 | }, {
|
317 | 242 | "description" : "[util] Change brightness with the wheel",
|
|
477 | 402 | } ],
|
478 | 403 | "type" : "basic"
|
479 | 404 | } ]
|
480 |
| - }, { |
481 |
| - "description" : "[launch] iTerm", |
482 |
| - "manipulators" : [ { |
483 |
| - "from" : { |
484 |
| - "key_code" : "spacebar", |
485 |
| - "modifiers" : { |
486 |
| - "mandatory" : [ "left_command", "left_control", "left_option" ] |
487 |
| - } |
488 |
| - }, |
489 |
| - "to" : [ { |
490 |
| - "shell_command" : "open -a \"iTerm\"" |
491 |
| - } ], |
492 |
| - "type" : "basic" |
493 |
| - } ] |
494 |
| - }, { |
495 |
| - "description" : "[launch] IntelliJ", |
496 |
| - "manipulators" : [ { |
497 |
| - "from" : { |
498 |
| - "key_code" : "i", |
499 |
| - "modifiers" : { |
500 |
| - "mandatory" : [ "left_command", "left_control", "left_option" ] |
501 |
| - } |
502 |
| - }, |
503 |
| - "to" : [ { |
504 |
| - "shell_command" : "open -a \"IntelliJ IDEA Ultimate\"" |
505 |
| - } ], |
506 |
| - "type" : "basic" |
507 |
| - } ] |
508 |
| - }, { |
509 |
| - "description" : "[launch] Finder", |
510 |
| - "manipulators" : [ { |
511 |
| - "from" : { |
512 |
| - "key_code" : "f", |
513 |
| - "modifiers" : { |
514 |
| - "mandatory" : [ "left_command", "left_control", "left_option" ] |
515 |
| - } |
516 |
| - }, |
517 |
| - "to" : [ { |
518 |
| - "shell_command" : "open -a \"Finder\"" |
519 |
| - } ], |
520 |
| - "type" : "basic" |
521 |
| - } ] |
522 |
| - }, { |
523 |
| - "description" : "[launch] Chrome", |
524 |
| - "manipulators" : [ { |
525 |
| - "from" : { |
526 |
| - "key_code" : "c", |
527 |
| - "modifiers" : { |
528 |
| - "mandatory" : [ "left_command", "left_control", "left_option" ] |
529 |
| - } |
530 |
| - }, |
531 |
| - "to" : [ { |
532 |
| - "shell_command" : "open -a \"Google Chrome\"" |
533 |
| - } ], |
534 |
| - "type" : "basic" |
535 |
| - } ] |
536 |
| - }, { |
537 |
| - "description" : "[launch] Slack", |
538 |
| - "manipulators" : [ { |
539 |
| - "from" : { |
540 |
| - "key_code" : "s", |
541 |
| - "modifiers" : { |
542 |
| - "mandatory" : [ "left_command", "left_control", "left_option" ] |
543 |
| - } |
544 |
| - }, |
545 |
| - "to" : [ { |
546 |
| - "shell_command" : "open -a \"Slack\"" |
547 |
| - } ], |
548 |
| - "type" : "basic" |
549 |
| - } ] |
550 |
| - }, { |
551 |
| - "description" : "[launch] ChatGPT", |
552 |
| - "manipulators" : [ { |
553 |
| - "from" : { |
554 |
| - "key_code" : "a", |
555 |
| - "modifiers" : { |
556 |
| - "mandatory" : [ "left_command", "left_control", "left_option" ] |
557 |
| - } |
558 |
| - }, |
559 |
| - "to" : [ { |
560 |
| - "shell_command" : "open -a \"ChatGPT\"" |
561 |
| - } ], |
562 |
| - "type" : "basic" |
563 |
| - } ] |
564 |
| - }, { |
565 |
| - "description" : "[launch] Google Meet", |
566 |
| - "manipulators" : [ { |
567 |
| - "from" : { |
568 |
| - "key_code" : "g", |
569 |
| - "modifiers" : { |
570 |
| - "mandatory" : [ "left_command", "left_control", "left_option" ] |
571 |
| - } |
572 |
| - }, |
573 |
| - "to" : [ { |
574 |
| - "shell_command" : "open -a \"Google Meet\"" |
575 |
| - } ], |
576 |
| - "type" : "basic" |
577 |
| - } ] |
578 |
| - }, { |
579 |
| - "description" : "[launch] Notion", |
580 |
| - "manipulators" : [ { |
581 |
| - "from" : { |
582 |
| - "key_code" : "n", |
583 |
| - "modifiers" : { |
584 |
| - "mandatory" : [ "left_command", "left_control", "left_option" ] |
585 |
| - } |
586 |
| - }, |
587 |
| - "to" : [ { |
588 |
| - "shell_command" : "open -a \"Notion\"" |
589 |
| - } ], |
590 |
| - "type" : "basic" |
591 |
| - } ] |
592 | 405 | }, {
|
593 | 406 | "description" : "[launch] dotly ui scripts",
|
594 | 407 | "manipulators" : [ {
|
|
617 | 430 | } ],
|
618 | 431 | "type" : "basic"
|
619 | 432 | } ]
|
620 |
| - }, { |
621 |
| - "description" : "[script] Show desktop folder", |
622 |
| - "manipulators" : [ { |
623 |
| - "from" : { |
624 |
| - "key_code" : "d", |
625 |
| - "modifiers" : { |
626 |
| - "mandatory" : [ "left_command", "left_control", "left_option" ] |
627 |
| - } |
628 |
| - }, |
629 |
| - "to" : [ { |
630 |
| - "shell_command" : "open \"$HOME/Desktop\"" |
631 |
| - } ], |
632 |
| - "type" : "basic" |
633 |
| - } ] |
634 | 433 | }, {
|
635 | 434 | "description" : "[script] Open common folders",
|
636 | 435 | "manipulators" : [ {
|
|
0 commit comments