karabiner.json (34935B)
1 { 2 "global": { "check_for_updates_on_startup": false }, 3 "profiles": [ 4 { 5 "complex_modifications": { 6 "parameters": { "basic.to_if_alone_timeout_milliseconds": 250 }, 7 "rules": [ 8 { 9 "description": "Change caps_lock to control when used as modifier, escape when used alone", 10 "manipulators": [ 11 { 12 "from": { 13 "key_code": "caps_lock", 14 "modifiers": { "optional": ["any"] } 15 }, 16 "to": [{ "key_code": "left_control" }], 17 "to_if_alone": [{ "key_code": "escape" }], 18 "type": "basic" 19 } 20 ] 21 }, 22 { 23 "description": "Mouse keys", 24 "manipulators": [ 25 { 26 "from": { 27 "key_code": "tab", 28 "modifiers": { 29 "mandatory": ["left_option"], 30 "optional": ["any"] 31 } 32 }, 33 "to": [ 34 { 35 "set_variable": { 36 "name": "mouse_keys_full", 37 "value": 1 38 } 39 } 40 ], 41 "type": "basic" 42 }, 43 { 44 "from": { 45 "key_code": "left_option", 46 "modifiers": { "optional": ["any"] } 47 }, 48 "to": [{ "key_code": "left_option" }], 49 "to_after_key_up": [ 50 { 51 "set_variable": { 52 "name": "mouse_keys_full", 53 "value": 0 54 } 55 } 56 ], 57 "type": "basic" 58 }, 59 { 60 "conditions": [ 61 { 62 "name": "mouse_keys_full", 63 "type": "variable_if", 64 "value": 1 65 } 66 ], 67 "from": { 68 "key_code": "h", 69 "modifiers": { 70 "mandatory": ["left_option"], 71 "optional": ["any"] 72 } 73 }, 74 "to": [ 75 { 76 "set_variable": { 77 "name": "mouse_keys_full_scroll", 78 "value": 1 79 } 80 } 81 ], 82 "to_after_key_up": [ 83 { 84 "set_variable": { 85 "name": "mouse_keys_full_scroll", 86 "value": 0 87 } 88 } 89 ], 90 "type": "basic" 91 }, 92 { 93 "conditions": [ 94 { 95 "name": "mouse_keys_full", 96 "type": "variable_if", 97 "value": 1 98 } 99 ], 100 "from": { 101 "key_code": "left_shift", 102 "modifiers": { 103 "mandatory": ["left_option"], 104 "optional": ["any"] 105 } 106 }, 107 "to": [{ "mouse_key": { "speed_multiplier": 2.0 } }], 108 "type": "basic" 109 }, 110 { 111 "conditions": [ 112 { 113 "name": "mouse_keys_full", 114 "type": "variable_if", 115 "value": 1 116 } 117 ], 118 "from": { 119 "key_code": "semicolon", 120 "modifiers": { 121 "mandatory": ["left_option"], 122 "optional": ["any"] 123 } 124 }, 125 "to": [{ "mouse_key": { "speed_multiplier": 0.5 } }], 126 "type": "basic" 127 }, 128 { 129 "conditions": [ 130 { 131 "name": "mouse_keys_full", 132 "type": "variable_if", 133 "value": 1 134 } 135 ], 136 "from": { 137 "key_code": "j", 138 "modifiers": { 139 "mandatory": ["left_option"], 140 "optional": ["any"] 141 } 142 }, 143 "to": [{ "pointing_button": "button1" }], 144 "type": "basic" 145 }, 146 { 147 "conditions": [ 148 { 149 "name": "mouse_keys_full", 150 "type": "variable_if", 151 "value": 1 152 } 153 ], 154 "from": { 155 "key_code": "k", 156 "modifiers": { 157 "mandatory": ["left_option"], 158 "optional": ["any"] 159 } 160 }, 161 "to": [{ "pointing_button": "button3" }], 162 "type": "basic" 163 }, 164 { 165 "conditions": [ 166 { 167 "name": "mouse_keys_full", 168 "type": "variable_if", 169 "value": 1 170 } 171 ], 172 "from": { 173 "key_code": "l", 174 "modifiers": { 175 "mandatory": ["left_option"], 176 "optional": ["any"] 177 } 178 }, 179 "to": [{ "pointing_button": "button2" }], 180 "type": "basic" 181 }, 182 { 183 "conditions": [ 184 { 185 "name": "mouse_keys_full", 186 "type": "variable_if", 187 "value": 1 188 }, 189 { 190 "name": "mouse_keys_full_scroll", 191 "type": "variable_if", 192 "value": 1 193 } 194 ], 195 "from": { 196 "key_code": "a", 197 "modifiers": { 198 "mandatory": ["left_option"], 199 "optional": ["any"] 200 } 201 }, 202 "to": [{ "mouse_key": { "horizontal_wheel": 32 } }], 203 "type": "basic" 204 }, 205 { 206 "conditions": [ 207 { 208 "name": "mouse_keys_full", 209 "type": "variable_if", 210 "value": 1 211 } 212 ], 213 "from": { 214 "key_code": "a", 215 "modifiers": { 216 "mandatory": ["left_option"], 217 "optional": ["any"] 218 } 219 }, 220 "to": [{ "mouse_key": { "x": -3072 } }], 221 "type": "basic" 222 }, 223 { 224 "conditions": [ 225 { 226 "name": "mouse_keys_full", 227 "type": "variable_if", 228 "value": 1 229 }, 230 { 231 "name": "mouse_keys_full_scroll", 232 "type": "variable_if", 233 "value": 1 234 } 235 ], 236 "from": { 237 "key_code": "s", 238 "modifiers": { 239 "mandatory": ["left_option"], 240 "optional": ["any"] 241 } 242 }, 243 "to": [{ "mouse_key": { "vertical_wheel": 32 } }], 244 "type": "basic" 245 }, 246 { 247 "conditions": [ 248 { 249 "name": "mouse_keys_full", 250 "type": "variable_if", 251 "value": 1 252 } 253 ], 254 "from": { 255 "key_code": "s", 256 "modifiers": { 257 "mandatory": ["left_option"], 258 "optional": ["any"] 259 } 260 }, 261 "to": [{ "mouse_key": { "y": 3072 } }], 262 "type": "basic" 263 }, 264 { 265 "conditions": [ 266 { 267 "name": "mouse_keys_full", 268 "type": "variable_if", 269 "value": 1 270 }, 271 { 272 "name": "mouse_keys_full_scroll", 273 "type": "variable_if", 274 "value": 1 275 } 276 ], 277 "from": { 278 "key_code": "d", 279 "modifiers": { 280 "mandatory": ["left_option"], 281 "optional": ["any"] 282 } 283 }, 284 "to": [{ "mouse_key": { "horizontal_wheel": -32 } }], 285 "type": "basic" 286 }, 287 { 288 "conditions": [ 289 { 290 "name": "mouse_keys_full", 291 "type": "variable_if", 292 "value": 1 293 } 294 ], 295 "from": { 296 "key_code": "d", 297 "modifiers": { 298 "mandatory": ["left_option"], 299 "optional": ["any"] 300 } 301 }, 302 "to": [{ "mouse_key": { "x": 3072 } }], 303 "type": "basic" 304 }, 305 { 306 "conditions": [ 307 { 308 "name": "mouse_keys_full", 309 "type": "variable_if", 310 "value": 1 311 }, 312 { 313 "name": "mouse_keys_full_scroll", 314 "type": "variable_if", 315 "value": 1 316 } 317 ], 318 "from": { 319 "key_code": "w", 320 "modifiers": { 321 "mandatory": ["left_option"], 322 "optional": ["any"] 323 } 324 }, 325 "to": [{ "mouse_key": { "vertical_wheel": -32 } }], 326 "type": "basic" 327 }, 328 { 329 "conditions": [ 330 { 331 "name": "mouse_keys_full", 332 "type": "variable_if", 333 "value": 1 334 } 335 ], 336 "from": { 337 "key_code": "w", 338 "modifiers": { 339 "mandatory": ["left_option"], 340 "optional": ["any"] 341 } 342 }, 343 "to": [{ "mouse_key": { "y": -3072 } }], 344 "type": "basic" 345 } 346 ] 347 }, 348 { 349 "description": "Hyper Key (⌃⌥⇧⌘)", 350 "manipulators": [ 351 { 352 "from": { 353 "key_code": "application", 354 "modifiers": { "optional": ["caps_lock"] } 355 }, 356 "to": [ 357 { 358 "key_code": "left_shift", 359 "modifiers": ["left_command", "left_control", "left_option"] 360 } 361 ], 362 "type": "basic" 363 } 364 ] 365 }, 366 { 367 "description": "Mouse button to window controls", 368 "manipulators": [ 369 { 370 "from": { "pointing_button": "button4" }, 371 "to": [ 372 { 373 "key_code": "left_shift", 374 "modifiers": ["left_option"] 375 } 376 ], 377 "type": "basic" 378 } 379 ] 380 } 381 ] 382 }, 383 "devices": [ 384 { 385 "identifiers": { 386 "is_keyboard": true, 387 "product_id": 50481, 388 "vendor_id": 1133 389 }, 390 "ignore": true, 391 "manipulate_caps_lock_led": false 392 }, 393 { 394 "fn_function_keys": [ 395 { 396 "from": { "key_code": "f5" }, 397 "to": [{ "key_code": "f5" }] 398 }, 399 { 400 "from": { "key_code": "f6" }, 401 "to": [{ "key_code": "f6" }] 402 } 403 ], 404 "identifiers": { 405 "is_keyboard": true, 406 "product_id": 570, 407 "vendor_id": 1452 408 } 409 }, 410 { 411 "fn_function_keys": [ 412 { 413 "from": { "key_code": "f5" }, 414 "to": [{ "key_code": "f5" }] 415 }, 416 { 417 "from": { "key_code": "f6" }, 418 "to": [{ "key_code": "f6" }] 419 } 420 ], 421 "identifiers": { 422 "is_keyboard": true, 423 "product_id": 49276, 424 "vendor_id": 1133 425 }, 426 "manipulate_caps_lock_led": false, 427 "simple_modifications": [ 428 { 429 "from": { "key_code": "f3" }, 430 "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] 431 }, 432 { 433 "from": { "key_code": "f4" }, 434 "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] 435 } 436 ] 437 }, 438 { 439 "identifiers": { 440 "is_keyboard": true, 441 "product_id": 2113, 442 "vendor_id": 1266 443 }, 444 "manipulate_caps_lock_led": false, 445 "simple_modifications": [ 446 { 447 "from": { "key_code": "application" }, 448 "to": [{ "key_code": "right_command" }] 449 }, 450 { 451 "from": { "key_code": "f3" }, 452 "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] 453 }, 454 { 455 "from": { "key_code": "f4" }, 456 "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] 457 }, 458 { 459 "from": { "key_code": "f10" }, 460 "to": [{ "consumer_key_code": "mute" }] 461 }, 462 { 463 "from": { "key_code": "f11" }, 464 "to": [{ "consumer_key_code": "volume_decrement" }] 465 }, 466 { 467 "from": { "key_code": "f12" }, 468 "to": [{ "consumer_key_code": "volume_increment" }] 469 }, 470 { 471 "from": { "key_code": "non_us_backslash" }, 472 "to": [{ "key_code": "application" }] 473 } 474 ] 475 }, 476 { 477 "identifiers": { 478 "is_keyboard": true, 479 "product_id": 595, 480 "vendor_id": 1452 481 }, 482 "simple_modifications": [ 483 { 484 "from": { "consumer_key_code": "eject" }, 485 "to": [{ "key_code": "f13" }] 486 }, 487 { 488 "from": { "key_code": "f1" }, 489 "to": [{ "key_code": "display_brightness_decrement" }] 490 }, 491 { 492 "from": { "key_code": "f2" }, 493 "to": [{ "key_code": "display_brightness_increment" }] 494 }, 495 { 496 "from": { "key_code": "f3" }, 497 "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] 498 }, 499 { 500 "from": { "key_code": "f4" }, 501 "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] 502 }, 503 { 504 "from": { "key_code": "f10" }, 505 "to": [{ "consumer_key_code": "mute" }] 506 }, 507 { 508 "from": { "key_code": "f11" }, 509 "to": [{ "consumer_key_code": "volume_decrement" }] 510 }, 511 { 512 "from": { "key_code": "f12" }, 513 "to": [{ "consumer_key_code": "volume_increment" }] 514 }, 515 { 516 "from": { "key_code": "grave_accent_and_tilde" }, 517 "to": [{ "key_code": "application" }] 518 }, 519 { 520 "from": { "key_code": "non_us_backslash" }, 521 "to": [{ "key_code": "grave_accent_and_tilde" }] 522 }, 523 { 524 "from": { "key_code": "right_option" }, 525 "to": [{ "key_code": "left_control" }] 526 } 527 ] 528 }, 529 { 530 "identifiers": { 531 "is_keyboard": true, 532 "product_id": 50475, 533 "vendor_id": 1133 534 }, 535 "simple_modifications": [ 536 { 537 "from": { "key_code": "grave_accent_and_tilde" }, 538 "to": [{ "key_code": "non_us_backslash" }] 539 }, 540 { 541 "from": { "key_code": "left_command" }, 542 "to": [{ "key_code": "left_option" }] 543 }, 544 { 545 "from": { "key_code": "left_option" }, 546 "to": [{ "key_code": "left_command" }] 547 }, 548 { 549 "from": { "key_code": "non_us_backslash" }, 550 "to": [{ "key_code": "grave_accent_and_tilde" }] 551 }, 552 { 553 "from": { "key_code": "right_command" }, 554 "to": [{ "key_code": "right_option" }] 555 }, 556 { 557 "from": { "key_code": "right_option" }, 558 "to": [{ "key_code": "right_command" }] 559 } 560 ] 561 }, 562 { 563 "identifiers": { 564 "is_keyboard": true, 565 "product_id": 49948, 566 "vendor_id": 1133 567 }, 568 "simple_modifications": [ 569 { 570 "from": { "key_code": "f3" }, 571 "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] 572 }, 573 { 574 "from": { "key_code": "f4" }, 575 "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] 576 }, 577 { 578 "from": { "key_code": "f10" }, 579 "to": [{ "consumer_key_code": "mute" }] 580 }, 581 { 582 "from": { "key_code": "f11" }, 583 "to": [{ "consumer_key_code": "volume_decrement" }] 584 }, 585 { 586 "from": { "key_code": "f12" }, 587 "to": [{ "consumer_key_code": "volume_increment" }] 588 }, 589 { 590 "from": { "key_code": "left_command" }, 591 "to": [{ "key_code": "left_option" }] 592 }, 593 { 594 "from": { "key_code": "left_option" }, 595 "to": [{ "key_code": "left_command" }] 596 }, 597 { 598 "from": { "key_code": "right_command" }, 599 "to": [{ "key_code": "right_option" }] 600 }, 601 { 602 "from": { "key_code": "right_option" }, 603 "to": [{ "key_code": "right_command" }] 604 } 605 ] 606 }, 607 { 608 "identifiers": { 609 "is_pointing_device": true, 610 "product_id": 473, 611 "vendor_id": 5215 612 }, 613 "ignore": false, 614 "simple_modifications": [ 615 { 616 "from": { "pointing_button": "button5" }, 617 "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] 618 } 619 ] 620 }, 621 { 622 "identifiers": { 623 "is_keyboard": true, 624 "product_id": 9483, 625 "vendor_id": 16700 626 }, 627 "simple_modifications": [ 628 { 629 "from": { "key_code": "f3" }, 630 "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] 631 }, 632 { 633 "from": { "key_code": "f4" }, 634 "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] 635 }, 636 { 637 "from": { "key_code": "f10" }, 638 "to": [{ "consumer_key_code": "mute" }] 639 }, 640 { 641 "from": { "key_code": "f11" }, 642 "to": [{ "consumer_key_code": "volume_decrement" }] 643 }, 644 { 645 "from": { "key_code": "f12" }, 646 "to": [{ "consumer_key_code": "volume_increment" }] 647 } 648 ] 649 }, 650 { 651 "identifiers": { 652 "is_pointing_device": true, 653 "product_id": 9482, 654 "vendor_id": 16700 655 }, 656 "ignore": false, 657 "simple_modifications": [ 658 { 659 "from": { "pointing_button": "button4" }, 660 "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] 661 }, 662 { 663 "from": { "pointing_button": "button5" }, 664 "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] 665 } 666 ] 667 }, 668 { 669 "identifiers": { 670 "is_keyboard": true, 671 "product_id": 12316, 672 "vendor_id": 16700 673 }, 674 "simple_modifications": [ 675 { 676 "from": { "key_code": "f3" }, 677 "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] 678 }, 679 { 680 "from": { "key_code": "f4" }, 681 "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] 682 }, 683 { 684 "from": { "key_code": "f10" }, 685 "to": [{ "consumer_key_code": "mute" }] 686 }, 687 { 688 "from": { "key_code": "f11" }, 689 "to": [{ "consumer_key_code": "volume_decrement" }] 690 }, 691 { 692 "from": { "key_code": "f12" }, 693 "to": [{ "consumer_key_code": "volume_increment" }] 694 }, 695 { 696 "from": { "key_code": "non_us_backslash" }, 697 "to": [{ "key_code": "application" }] 698 } 699 ] 700 }, 701 { 702 "identifiers": { 703 "is_pointing_device": true, 704 "product_id": 12316, 705 "vendor_id": 16700 706 }, 707 "ignore": false, 708 "simple_modifications": [ 709 { 710 "from": { "pointing_button": "button4" }, 711 "to": [{ "apple_vendor_keyboard_key_code": "launchpad" }] 712 }, 713 { 714 "from": { "pointing_button": "button5" }, 715 "to": [{ "apple_vendor_keyboard_key_code": "mission_control" }] 716 } 717 ] 718 } 719 ], 720 "fn_function_keys": [ 721 { 722 "from": { "key_code": "f1" }, 723 "to": [{ "key_code": "display_brightness_decrement" }] 724 }, 725 { 726 "from": { "key_code": "f2" }, 727 "to": [{ "key_code": "display_brightness_increment" }] 728 }, 729 { 730 "from": { "key_code": "f3" }, 731 "to": [{ "key_code": "mission_control" }] 732 }, 733 { 734 "from": { "key_code": "f4" }, 735 "to": [{ "key_code": "launchpad" }] 736 }, 737 { 738 "from": { "key_code": "f5" }, 739 "to": [{ "key_code": "illumination_decrement" }] 740 }, 741 { 742 "from": { "key_code": "f6" }, 743 "to": [{ "key_code": "illumination_increment" }] 744 }, 745 { 746 "from": { "key_code": "f7" }, 747 "to": [{ "key_code": "rewind" }] 748 }, 749 { 750 "from": { "key_code": "f8" }, 751 "to": [{ "key_code": "play_or_pause" }] 752 }, 753 { 754 "from": { "key_code": "f9" }, 755 "to": [{ "key_code": "fastforward" }] 756 }, 757 { 758 "from": { "key_code": "f10" }, 759 "to": [{ "key_code": "mute" }] 760 }, 761 { 762 "from": { "key_code": "f11" }, 763 "to": [{ "key_code": "volume_decrement" }] 764 }, 765 { 766 "from": { "key_code": "f12" }, 767 "to": [{ "key_code": "volume_increment" }] 768 } 769 ], 770 "name": "Default profile", 771 "selected": true, 772 "virtual_hid_keyboard": { 773 "caps_lock_delay_milliseconds": 0, 774 "country_code": 0, 775 "keyboard_type": "ansi", 776 "keyboard_type_v2": "ansi" 777 } 778 } 779 ] 780 }