dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

karabiner.json (68264B)


      1 {
      2     "global": {
      3         "ask_for_confirmation_before_quitting": true,
      4         "check_for_updates_on_startup": false,
      5         "show_in_menu_bar": true,
      6         "show_profile_name_in_menu_bar": false,
      7         "unsafe_ui": false
      8     },
      9     "profiles": [
     10         {
     11             "complex_modifications": {
     12                 "parameters": {
     13                     "basic.simultaneous_threshold_milliseconds": 50,
     14                     "basic.to_delayed_action_delay_milliseconds": 500,
     15                     "basic.to_if_alone_timeout_milliseconds": 250,
     16                     "basic.to_if_held_down_threshold_milliseconds": 500,
     17                     "mouse_motion_to_scroll.speed": 100
     18                 },
     19                 "rules": [
     20                     {
     21                         "description": "Change caps_lock to control when used as modifier, escape when used alone",
     22                         "manipulators": [
     23                             {
     24                                 "from": {
     25                                     "key_code": "caps_lock",
     26                                     "modifiers": {
     27                                         "optional": [
     28                                             "any"
     29                                         ]
     30                                     }
     31                                 },
     32                                 "to": [
     33                                     {
     34                                         "key_code": "left_control"
     35                                     }
     36                                 ],
     37                                 "to_if_alone": [
     38                                     {
     39                                         "key_code": "escape"
     40                                     }
     41                                 ],
     42                                 "type": "basic"
     43                             }
     44                         ]
     45                     },
     46                     {
     47                         "description": "Mouse keys",
     48                         "manipulators": [
     49                             {
     50                                 "from": {
     51                                     "key_code": "tab",
     52                                     "modifiers": {
     53                                         "mandatory": [
     54                                             "left_option"
     55                                         ],
     56                                         "optional": [
     57                                             "any"
     58                                         ]
     59                                     }
     60                                 },
     61                                 "to": [
     62                                     {
     63                                         "set_variable": {
     64                                             "name": "mouse_keys_full",
     65                                             "value": 1
     66                                         }
     67                                     }
     68                                 ],
     69                                 "type": "basic"
     70                             },
     71                             {
     72                                 "from": {
     73                                     "key_code": "left_option",
     74                                     "modifiers": {
     75                                         "optional": [
     76                                             "any"
     77                                         ]
     78                                     }
     79                                 },
     80                                 "to": [
     81                                     {
     82                                         "key_code": "left_option"
     83                                     }
     84                                 ],
     85                                 "to_after_key_up": [
     86                                     {
     87                                         "set_variable": {
     88                                             "name": "mouse_keys_full",
     89                                             "value": 0
     90                                         }
     91                                     }
     92                                 ],
     93                                 "type": "basic"
     94                             },
     95                             {
     96                                 "conditions": [
     97                                     {
     98                                         "name": "mouse_keys_full",
     99                                         "type": "variable_if",
    100                                         "value": 1
    101                                     }
    102                                 ],
    103                                 "from": {
    104                                     "key_code": "h",
    105                                     "modifiers": {
    106                                         "mandatory": [
    107                                             "left_option"
    108                                         ],
    109                                         "optional": [
    110                                             "any"
    111                                         ]
    112                                     }
    113                                 },
    114                                 "to": [
    115                                     {
    116                                         "set_variable": {
    117                                             "name": "mouse_keys_full_scroll",
    118                                             "value": 1
    119                                         }
    120                                     }
    121                                 ],
    122                                 "to_after_key_up": [
    123                                     {
    124                                         "set_variable": {
    125                                             "name": "mouse_keys_full_scroll",
    126                                             "value": 0
    127                                         }
    128                                     }
    129                                 ],
    130                                 "type": "basic"
    131                             },
    132                             {
    133                                 "conditions": [
    134                                     {
    135                                         "name": "mouse_keys_full",
    136                                         "type": "variable_if",
    137                                         "value": 1
    138                                     }
    139                                 ],
    140                                 "from": {
    141                                     "key_code": "left_shift",
    142                                     "modifiers": {
    143                                         "mandatory": [
    144                                             "left_option"
    145                                         ],
    146                                         "optional": [
    147                                             "any"
    148                                         ]
    149                                     }
    150                                 },
    151                                 "to": [
    152                                     {
    153                                         "mouse_key": {
    154                                             "speed_multiplier": 2.0
    155                                         }
    156                                     }
    157                                 ],
    158                                 "type": "basic"
    159                             },
    160                             {
    161                                 "conditions": [
    162                                     {
    163                                         "name": "mouse_keys_full",
    164                                         "type": "variable_if",
    165                                         "value": 1
    166                                     }
    167                                 ],
    168                                 "from": {
    169                                     "key_code": "semicolon",
    170                                     "modifiers": {
    171                                         "mandatory": [
    172                                             "left_option"
    173                                         ],
    174                                         "optional": [
    175                                             "any"
    176                                         ]
    177                                     }
    178                                 },
    179                                 "to": [
    180                                     {
    181                                         "mouse_key": {
    182                                             "speed_multiplier": 0.5
    183                                         }
    184                                     }
    185                                 ],
    186                                 "type": "basic"
    187                             },
    188                             {
    189                                 "conditions": [
    190                                     {
    191                                         "name": "mouse_keys_full",
    192                                         "type": "variable_if",
    193                                         "value": 1
    194                                     }
    195                                 ],
    196                                 "from": {
    197                                     "key_code": "j",
    198                                     "modifiers": {
    199                                         "mandatory": [
    200                                             "left_option"
    201                                         ],
    202                                         "optional": [
    203                                             "any"
    204                                         ]
    205                                     }
    206                                 },
    207                                 "to": [
    208                                     {
    209                                         "pointing_button": "button1"
    210                                     }
    211                                 ],
    212                                 "type": "basic"
    213                             },
    214                             {
    215                                 "conditions": [
    216                                     {
    217                                         "name": "mouse_keys_full",
    218                                         "type": "variable_if",
    219                                         "value": 1
    220                                     }
    221                                 ],
    222                                 "from": {
    223                                     "key_code": "k",
    224                                     "modifiers": {
    225                                         "mandatory": [
    226                                             "left_option"
    227                                         ],
    228                                         "optional": [
    229                                             "any"
    230                                         ]
    231                                     }
    232                                 },
    233                                 "to": [
    234                                     {
    235                                         "pointing_button": "button3"
    236                                     }
    237                                 ],
    238                                 "type": "basic"
    239                             },
    240                             {
    241                                 "conditions": [
    242                                     {
    243                                         "name": "mouse_keys_full",
    244                                         "type": "variable_if",
    245                                         "value": 1
    246                                     }
    247                                 ],
    248                                 "from": {
    249                                     "key_code": "l",
    250                                     "modifiers": {
    251                                         "mandatory": [
    252                                             "left_option"
    253                                         ],
    254                                         "optional": [
    255                                             "any"
    256                                         ]
    257                                     }
    258                                 },
    259                                 "to": [
    260                                     {
    261                                         "pointing_button": "button2"
    262                                     }
    263                                 ],
    264                                 "type": "basic"
    265                             },
    266                             {
    267                                 "conditions": [
    268                                     {
    269                                         "name": "mouse_keys_full",
    270                                         "type": "variable_if",
    271                                         "value": 1
    272                                     },
    273                                     {
    274                                         "name": "mouse_keys_full_scroll",
    275                                         "type": "variable_if",
    276                                         "value": 1
    277                                     }
    278                                 ],
    279                                 "from": {
    280                                     "key_code": "a",
    281                                     "modifiers": {
    282                                         "mandatory": [
    283                                             "left_option"
    284                                         ],
    285                                         "optional": [
    286                                             "any"
    287                                         ]
    288                                     }
    289                                 },
    290                                 "to": [
    291                                     {
    292                                         "mouse_key": {
    293                                             "horizontal_wheel": 32
    294                                         }
    295                                     }
    296                                 ],
    297                                 "type": "basic"
    298                             },
    299                             {
    300                                 "conditions": [
    301                                     {
    302                                         "name": "mouse_keys_full",
    303                                         "type": "variable_if",
    304                                         "value": 1
    305                                     }
    306                                 ],
    307                                 "from": {
    308                                     "key_code": "a",
    309                                     "modifiers": {
    310                                         "mandatory": [
    311                                             "left_option"
    312                                         ],
    313                                         "optional": [
    314                                             "any"
    315                                         ]
    316                                     }
    317                                 },
    318                                 "to": [
    319                                     {
    320                                         "mouse_key": {
    321                                             "x": -3072
    322                                         }
    323                                     }
    324                                 ],
    325                                 "type": "basic"
    326                             },
    327                             {
    328                                 "conditions": [
    329                                     {
    330                                         "name": "mouse_keys_full",
    331                                         "type": "variable_if",
    332                                         "value": 1
    333                                     },
    334                                     {
    335                                         "name": "mouse_keys_full_scroll",
    336                                         "type": "variable_if",
    337                                         "value": 1
    338                                     }
    339                                 ],
    340                                 "from": {
    341                                     "key_code": "s",
    342                                     "modifiers": {
    343                                         "mandatory": [
    344                                             "left_option"
    345                                         ],
    346                                         "optional": [
    347                                             "any"
    348                                         ]
    349                                     }
    350                                 },
    351                                 "to": [
    352                                     {
    353                                         "mouse_key": {
    354                                             "vertical_wheel": 32
    355                                         }
    356                                     }
    357                                 ],
    358                                 "type": "basic"
    359                             },
    360                             {
    361                                 "conditions": [
    362                                     {
    363                                         "name": "mouse_keys_full",
    364                                         "type": "variable_if",
    365                                         "value": 1
    366                                     }
    367                                 ],
    368                                 "from": {
    369                                     "key_code": "s",
    370                                     "modifiers": {
    371                                         "mandatory": [
    372                                             "left_option"
    373                                         ],
    374                                         "optional": [
    375                                             "any"
    376                                         ]
    377                                     }
    378                                 },
    379                                 "to": [
    380                                     {
    381                                         "mouse_key": {
    382                                             "y": 3072
    383                                         }
    384                                     }
    385                                 ],
    386                                 "type": "basic"
    387                             },
    388                             {
    389                                 "conditions": [
    390                                     {
    391                                         "name": "mouse_keys_full",
    392                                         "type": "variable_if",
    393                                         "value": 1
    394                                     },
    395                                     {
    396                                         "name": "mouse_keys_full_scroll",
    397                                         "type": "variable_if",
    398                                         "value": 1
    399                                     }
    400                                 ],
    401                                 "from": {
    402                                     "key_code": "d",
    403                                     "modifiers": {
    404                                         "mandatory": [
    405                                             "left_option"
    406                                         ],
    407                                         "optional": [
    408                                             "any"
    409                                         ]
    410                                     }
    411                                 },
    412                                 "to": [
    413                                     {
    414                                         "mouse_key": {
    415                                             "horizontal_wheel": -32
    416                                         }
    417                                     }
    418                                 ],
    419                                 "type": "basic"
    420                             },
    421                             {
    422                                 "conditions": [
    423                                     {
    424                                         "name": "mouse_keys_full",
    425                                         "type": "variable_if",
    426                                         "value": 1
    427                                     }
    428                                 ],
    429                                 "from": {
    430                                     "key_code": "d",
    431                                     "modifiers": {
    432                                         "mandatory": [
    433                                             "left_option"
    434                                         ],
    435                                         "optional": [
    436                                             "any"
    437                                         ]
    438                                     }
    439                                 },
    440                                 "to": [
    441                                     {
    442                                         "mouse_key": {
    443                                             "x": 3072
    444                                         }
    445                                     }
    446                                 ],
    447                                 "type": "basic"
    448                             },
    449                             {
    450                                 "conditions": [
    451                                     {
    452                                         "name": "mouse_keys_full",
    453                                         "type": "variable_if",
    454                                         "value": 1
    455                                     },
    456                                     {
    457                                         "name": "mouse_keys_full_scroll",
    458                                         "type": "variable_if",
    459                                         "value": 1
    460                                     }
    461                                 ],
    462                                 "from": {
    463                                     "key_code": "w",
    464                                     "modifiers": {
    465                                         "mandatory": [
    466                                             "left_option"
    467                                         ],
    468                                         "optional": [
    469                                             "any"
    470                                         ]
    471                                     }
    472                                 },
    473                                 "to": [
    474                                     {
    475                                         "mouse_key": {
    476                                             "vertical_wheel": -32
    477                                         }
    478                                     }
    479                                 ],
    480                                 "type": "basic"
    481                             },
    482                             {
    483                                 "conditions": [
    484                                     {
    485                                         "name": "mouse_keys_full",
    486                                         "type": "variable_if",
    487                                         "value": 1
    488                                     }
    489                                 ],
    490                                 "from": {
    491                                     "key_code": "w",
    492                                     "modifiers": {
    493                                         "mandatory": [
    494                                             "left_option"
    495                                         ],
    496                                         "optional": [
    497                                             "any"
    498                                         ]
    499                                     }
    500                                 },
    501                                 "to": [
    502                                     {
    503                                         "mouse_key": {
    504                                             "y": -3072
    505                                         }
    506                                     }
    507                                 ],
    508                                 "type": "basic"
    509                             }
    510                         ]
    511                     },
    512                     {
    513                         "description": "Hyper Key (⌃⌥⇧⌘)",
    514                         "manipulators": [
    515                             {
    516                                 "from": {
    517                                     "key_code": "application",
    518                                     "modifiers": {
    519                                         "optional": [
    520                                             "caps_lock"
    521                                         ]
    522                                     }
    523                                 },
    524                                 "to": [
    525                                     {
    526                                         "key_code": "left_shift",
    527                                         "modifiers": [
    528                                             "left_command",
    529                                             "left_control",
    530                                             "left_option"
    531                                         ]
    532                                     }
    533                                 ],
    534                                 "type": "basic"
    535                             }
    536                         ]
    537                     },
    538                     {
    539                         "description": "Mouse button to window controls",
    540                         "manipulators": [
    541                             {
    542                                 "from": {
    543                                     "pointing_button": "button4"
    544                                 },
    545                                 "to": [
    546                                     {
    547                                         "key_code": "left_shift",
    548                                         "modifiers": [
    549                                             "left_option"
    550                                         ]
    551                                     }
    552                                 ],
    553                                 "type": "basic"
    554                             }
    555                         ]
    556                     }
    557                 ]
    558             },
    559             "devices": [
    560                 {
    561                     "disable_built_in_keyboard_if_exists": false,
    562                     "fn_function_keys": [],
    563                     "game_pad_swap_sticks": false,
    564                     "identifiers": {
    565                         "is_game_pad": false,
    566                         "is_keyboard": true,
    567                         "is_pointing_device": false,
    568                         "product_id": 50481,
    569                         "vendor_id": 1133
    570                     },
    571                     "ignore": true,
    572                     "manipulate_caps_lock_led": false,
    573                     "mouse_flip_horizontal_wheel": false,
    574                     "mouse_flip_vertical_wheel": false,
    575                     "mouse_flip_x": false,
    576                     "mouse_flip_y": false,
    577                     "mouse_swap_wheels": false,
    578                     "mouse_swap_xy": false,
    579                     "simple_modifications": [],
    580                     "treat_as_built_in_keyboard": false
    581                 },
    582                 {
    583                     "disable_built_in_keyboard_if_exists": false,
    584                     "fn_function_keys": [
    585                         {
    586                             "from": {
    587                                 "key_code": "f5"
    588                             },
    589                             "to": [
    590                                 {
    591                                     "key_code": "f5"
    592                                 }
    593                             ]
    594                         },
    595                         {
    596                             "from": {
    597                                 "key_code": "f6"
    598                             },
    599                             "to": [
    600                                 {
    601                                     "key_code": "f6"
    602                                 }
    603                             ]
    604                         }
    605                     ],
    606                     "game_pad_swap_sticks": false,
    607                     "identifiers": {
    608                         "is_game_pad": false,
    609                         "is_keyboard": true,
    610                         "is_pointing_device": false,
    611                         "product_id": 570,
    612                         "vendor_id": 1452
    613                     },
    614                     "ignore": false,
    615                     "manipulate_caps_lock_led": true,
    616                     "mouse_flip_horizontal_wheel": false,
    617                     "mouse_flip_vertical_wheel": false,
    618                     "mouse_flip_x": false,
    619                     "mouse_flip_y": false,
    620                     "mouse_swap_wheels": false,
    621                     "mouse_swap_xy": false,
    622                     "simple_modifications": [],
    623                     "treat_as_built_in_keyboard": false
    624                 },
    625                 {
    626                     "disable_built_in_keyboard_if_exists": false,
    627                     "fn_function_keys": [],
    628                     "game_pad_swap_sticks": false,
    629                     "identifiers": {
    630                         "is_game_pad": false,
    631                         "is_keyboard": true,
    632                         "is_pointing_device": false,
    633                         "product_id": 594,
    634                         "vendor_id": 1452
    635                     },
    636                     "ignore": false,
    637                     "manipulate_caps_lock_led": true,
    638                     "mouse_flip_horizontal_wheel": false,
    639                     "mouse_flip_vertical_wheel": false,
    640                     "mouse_flip_x": false,
    641                     "mouse_flip_y": false,
    642                     "mouse_swap_wheels": false,
    643                     "mouse_swap_xy": false,
    644                     "simple_modifications": [],
    645                     "treat_as_built_in_keyboard": false
    646                 },
    647                 {
    648                     "disable_built_in_keyboard_if_exists": false,
    649                     "fn_function_keys": [
    650                         {
    651                             "from": {
    652                                 "key_code": "f5"
    653                             },
    654                             "to": [
    655                                 {
    656                                     "key_code": "f5"
    657                                 }
    658                             ]
    659                         },
    660                         {
    661                             "from": {
    662                                 "key_code": "f6"
    663                             },
    664                             "to": [
    665                                 {
    666                                     "key_code": "f6"
    667                                 }
    668                             ]
    669                         }
    670                     ],
    671                     "game_pad_swap_sticks": false,
    672                     "identifiers": {
    673                         "is_game_pad": false,
    674                         "is_keyboard": true,
    675                         "is_pointing_device": false,
    676                         "product_id": 49276,
    677                         "vendor_id": 1133
    678                     },
    679                     "ignore": false,
    680                     "manipulate_caps_lock_led": false,
    681                     "mouse_flip_horizontal_wheel": false,
    682                     "mouse_flip_vertical_wheel": false,
    683                     "mouse_flip_x": false,
    684                     "mouse_flip_y": false,
    685                     "mouse_swap_wheels": false,
    686                     "mouse_swap_xy": false,
    687                     "simple_modifications": [
    688                         {
    689                             "from": {
    690                                 "key_code": "f3"
    691                             },
    692                             "to": [
    693                                 {
    694                                     "apple_vendor_keyboard_key_code": "mission_control"
    695                                 }
    696                             ]
    697                         },
    698                         {
    699                             "from": {
    700                                 "key_code": "f4"
    701                             },
    702                             "to": [
    703                                 {
    704                                     "apple_vendor_keyboard_key_code": "launchpad"
    705                                 }
    706                             ]
    707                         }
    708                     ],
    709                     "treat_as_built_in_keyboard": false
    710                 },
    711                 {
    712                     "disable_built_in_keyboard_if_exists": false,
    713                     "fn_function_keys": [],
    714                     "game_pad_swap_sticks": false,
    715                     "identifiers": {
    716                         "is_game_pad": false,
    717                         "is_keyboard": true,
    718                         "is_pointing_device": false,
    719                         "product_id": 2113,
    720                         "vendor_id": 1266
    721                     },
    722                     "ignore": false,
    723                     "manipulate_caps_lock_led": false,
    724                     "mouse_flip_horizontal_wheel": false,
    725                     "mouse_flip_vertical_wheel": false,
    726                     "mouse_flip_x": false,
    727                     "mouse_flip_y": false,
    728                     "mouse_swap_wheels": false,
    729                     "mouse_swap_xy": false,
    730                     "simple_modifications": [
    731                         {
    732                             "from": {
    733                                 "key_code": "application"
    734                             },
    735                             "to": [
    736                                 {
    737                                     "key_code": "right_command"
    738                                 }
    739                             ]
    740                         },
    741                         {
    742                             "from": {
    743                                 "key_code": "f3"
    744                             },
    745                             "to": [
    746                                 {
    747                                     "apple_vendor_keyboard_key_code": "mission_control"
    748                                 }
    749                             ]
    750                         },
    751                         {
    752                             "from": {
    753                                 "key_code": "f4"
    754                             },
    755                             "to": [
    756                                 {
    757                                     "apple_vendor_keyboard_key_code": "launchpad"
    758                                 }
    759                             ]
    760                         },
    761                         {
    762                             "from": {
    763                                 "key_code": "f10"
    764                             },
    765                             "to": [
    766                                 {
    767                                     "consumer_key_code": "mute"
    768                                 }
    769                             ]
    770                         },
    771                         {
    772                             "from": {
    773                                 "key_code": "f11"
    774                             },
    775                             "to": [
    776                                 {
    777                                     "consumer_key_code": "volume_decrement"
    778                                 }
    779                             ]
    780                         },
    781                         {
    782                             "from": {
    783                                 "key_code": "f12"
    784                             },
    785                             "to": [
    786                                 {
    787                                     "consumer_key_code": "volume_increment"
    788                                 }
    789                             ]
    790                         },
    791                         {
    792                             "from": {
    793                                 "key_code": "non_us_backslash"
    794                             },
    795                             "to": [
    796                                 {
    797                                     "key_code": "application"
    798                                 }
    799                             ]
    800                         }
    801                     ],
    802                     "treat_as_built_in_keyboard": false
    803                 },
    804                 {
    805                     "disable_built_in_keyboard_if_exists": false,
    806                     "fn_function_keys": [],
    807                     "game_pad_swap_sticks": false,
    808                     "identifiers": {
    809                         "is_game_pad": false,
    810                         "is_keyboard": true,
    811                         "is_pointing_device": false,
    812                         "product_id": 595,
    813                         "vendor_id": 1452
    814                     },
    815                     "ignore": false,
    816                     "manipulate_caps_lock_led": true,
    817                     "mouse_flip_horizontal_wheel": false,
    818                     "mouse_flip_vertical_wheel": false,
    819                     "mouse_flip_x": false,
    820                     "mouse_flip_y": false,
    821                     "mouse_swap_wheels": false,
    822                     "mouse_swap_xy": false,
    823                     "simple_modifications": [
    824                         {
    825                             "from": {
    826                                 "consumer_key_code": "eject"
    827                             },
    828                             "to": [
    829                                 {
    830                                     "key_code": "f13"
    831                                 }
    832                             ]
    833                         },
    834                         {
    835                             "from": {
    836                                 "key_code": "f3"
    837                             },
    838                             "to": [
    839                                 {
    840                                     "apple_vendor_keyboard_key_code": "mission_control"
    841                                 }
    842                             ]
    843                         },
    844                         {
    845                             "from": {
    846                                 "key_code": "f4"
    847                             },
    848                             "to": [
    849                                 {
    850                                     "apple_vendor_keyboard_key_code": "launchpad"
    851                                 }
    852                             ]
    853                         },
    854                         {
    855                             "from": {
    856                                 "key_code": "f10"
    857                             },
    858                             "to": [
    859                                 {
    860                                     "consumer_key_code": "mute"
    861                                 }
    862                             ]
    863                         },
    864                         {
    865                             "from": {
    866                                 "key_code": "f11"
    867                             },
    868                             "to": [
    869                                 {
    870                                     "consumer_key_code": "volume_decrement"
    871                                 }
    872                             ]
    873                         },
    874                         {
    875                             "from": {
    876                                 "key_code": "f12"
    877                             },
    878                             "to": [
    879                                 {
    880                                     "consumer_key_code": "volume_increment"
    881                                 }
    882                             ]
    883                         },
    884                         {
    885                             "from": {
    886                                 "key_code": "grave_accent_and_tilde"
    887                             },
    888                             "to": [
    889                                 {
    890                                     "key_code": "application"
    891                                 }
    892                             ]
    893                         },
    894                         {
    895                             "from": {
    896                                 "key_code": "non_us_backslash"
    897                             },
    898                             "to": [
    899                                 {
    900                                     "key_code": "grave_accent_and_tilde"
    901                                 }
    902                             ]
    903                         },
    904                         {
    905                             "from": {
    906                                 "key_code": "right_option"
    907                             },
    908                             "to": [
    909                                 {
    910                                     "key_code": "left_control"
    911                                 }
    912                             ]
    913                         }
    914                     ],
    915                     "treat_as_built_in_keyboard": false
    916                 },
    917                 {
    918                     "disable_built_in_keyboard_if_exists": false,
    919                     "fn_function_keys": [],
    920                     "game_pad_swap_sticks": false,
    921                     "identifiers": {
    922                         "is_game_pad": false,
    923                         "is_keyboard": false,
    924                         "is_pointing_device": true,
    925                         "product_id": 595,
    926                         "vendor_id": 1452
    927                     },
    928                     "ignore": true,
    929                     "manipulate_caps_lock_led": false,
    930                     "mouse_flip_horizontal_wheel": false,
    931                     "mouse_flip_vertical_wheel": false,
    932                     "mouse_flip_x": false,
    933                     "mouse_flip_y": false,
    934                     "mouse_swap_wheels": false,
    935                     "mouse_swap_xy": false,
    936                     "simple_modifications": [],
    937                     "treat_as_built_in_keyboard": false
    938                 },
    939                 {
    940                     "disable_built_in_keyboard_if_exists": false,
    941                     "fn_function_keys": [],
    942                     "game_pad_swap_sticks": false,
    943                     "identifiers": {
    944                         "is_game_pad": false,
    945                         "is_keyboard": true,
    946                         "is_pointing_device": false,
    947                         "product_id": 50475,
    948                         "vendor_id": 1133
    949                     },
    950                     "ignore": false,
    951                     "manipulate_caps_lock_led": true,
    952                     "mouse_flip_horizontal_wheel": false,
    953                     "mouse_flip_vertical_wheel": false,
    954                     "mouse_flip_x": false,
    955                     "mouse_flip_y": false,
    956                     "mouse_swap_wheels": false,
    957                     "mouse_swap_xy": false,
    958                     "simple_modifications": [
    959                         {
    960                             "from": {
    961                                 "key_code": "grave_accent_and_tilde"
    962                             },
    963                             "to": [
    964                                 {
    965                                     "key_code": "non_us_backslash"
    966                                 }
    967                             ]
    968                         },
    969                         {
    970                             "from": {
    971                                 "key_code": "left_command"
    972                             },
    973                             "to": [
    974                                 {
    975                                     "key_code": "left_option"
    976                                 }
    977                             ]
    978                         },
    979                         {
    980                             "from": {
    981                                 "key_code": "left_option"
    982                             },
    983                             "to": [
    984                                 {
    985                                     "key_code": "left_command"
    986                                 }
    987                             ]
    988                         },
    989                         {
    990                             "from": {
    991                                 "key_code": "non_us_backslash"
    992                             },
    993                             "to": [
    994                                 {
    995                                     "key_code": "grave_accent_and_tilde"
    996                                 }
    997                             ]
    998                         },
    999                         {
   1000                             "from": {
   1001                                 "key_code": "right_command"
   1002                             },
   1003                             "to": [
   1004                                 {
   1005                                     "key_code": "right_option"
   1006                                 }
   1007                             ]
   1008                         },
   1009                         {
   1010                             "from": {
   1011                                 "key_code": "right_option"
   1012                             },
   1013                             "to": [
   1014                                 {
   1015                                     "key_code": "right_command"
   1016                                 }
   1017                             ]
   1018                         }
   1019                     ],
   1020                     "treat_as_built_in_keyboard": false
   1021                 },
   1022                 {
   1023                     "disable_built_in_keyboard_if_exists": false,
   1024                     "fn_function_keys": [],
   1025                     "game_pad_swap_sticks": false,
   1026                     "identifiers": {
   1027                         "is_game_pad": false,
   1028                         "is_keyboard": false,
   1029                         "is_pointing_device": true,
   1030                         "product_id": 50475,
   1031                         "vendor_id": 1133
   1032                     },
   1033                     "ignore": true,
   1034                     "manipulate_caps_lock_led": false,
   1035                     "mouse_flip_horizontal_wheel": false,
   1036                     "mouse_flip_vertical_wheel": false,
   1037                     "mouse_flip_x": false,
   1038                     "mouse_flip_y": false,
   1039                     "mouse_swap_wheels": false,
   1040                     "mouse_swap_xy": false,
   1041                     "simple_modifications": [],
   1042                     "treat_as_built_in_keyboard": false
   1043                 },
   1044                 {
   1045                     "disable_built_in_keyboard_if_exists": false,
   1046                     "fn_function_keys": [],
   1047                     "game_pad_swap_sticks": false,
   1048                     "identifiers": {
   1049                         "is_game_pad": false,
   1050                         "is_keyboard": true,
   1051                         "is_pointing_device": false,
   1052                         "product_id": 49948,
   1053                         "vendor_id": 1133
   1054                     },
   1055                     "ignore": false,
   1056                     "manipulate_caps_lock_led": true,
   1057                     "mouse_flip_horizontal_wheel": false,
   1058                     "mouse_flip_vertical_wheel": false,
   1059                     "mouse_flip_x": false,
   1060                     "mouse_flip_y": false,
   1061                     "mouse_swap_wheels": false,
   1062                     "mouse_swap_xy": false,
   1063                     "simple_modifications": [
   1064                         {
   1065                             "from": {
   1066                                 "key_code": "f3"
   1067                             },
   1068                             "to": [
   1069                                 {
   1070                                     "apple_vendor_keyboard_key_code": "mission_control"
   1071                                 }
   1072                             ]
   1073                         },
   1074                         {
   1075                             "from": {
   1076                                 "key_code": "f4"
   1077                             },
   1078                             "to": [
   1079                                 {
   1080                                     "apple_vendor_keyboard_key_code": "launchpad"
   1081                                 }
   1082                             ]
   1083                         },
   1084                         {
   1085                             "from": {
   1086                                 "key_code": "f10"
   1087                             },
   1088                             "to": [
   1089                                 {
   1090                                     "consumer_key_code": "mute"
   1091                                 }
   1092                             ]
   1093                         },
   1094                         {
   1095                             "from": {
   1096                                 "key_code": "f11"
   1097                             },
   1098                             "to": [
   1099                                 {
   1100                                     "consumer_key_code": "volume_decrement"
   1101                                 }
   1102                             ]
   1103                         },
   1104                         {
   1105                             "from": {
   1106                                 "key_code": "f12"
   1107                             },
   1108                             "to": [
   1109                                 {
   1110                                     "consumer_key_code": "volume_increment"
   1111                                 }
   1112                             ]
   1113                         },
   1114                         {
   1115                             "from": {
   1116                                 "key_code": "left_command"
   1117                             },
   1118                             "to": [
   1119                                 {
   1120                                     "key_code": "left_option"
   1121                                 }
   1122                             ]
   1123                         },
   1124                         {
   1125                             "from": {
   1126                                 "key_code": "left_option"
   1127                             },
   1128                             "to": [
   1129                                 {
   1130                                     "key_code": "left_command"
   1131                                 }
   1132                             ]
   1133                         },
   1134                         {
   1135                             "from": {
   1136                                 "key_code": "right_command"
   1137                             },
   1138                             "to": [
   1139                                 {
   1140                                     "key_code": "right_option"
   1141                                 }
   1142                             ]
   1143                         },
   1144                         {
   1145                             "from": {
   1146                                 "key_code": "right_option"
   1147                             },
   1148                             "to": [
   1149                                 {
   1150                                     "key_code": "right_command"
   1151                                 }
   1152                             ]
   1153                         }
   1154                     ],
   1155                     "treat_as_built_in_keyboard": false
   1156                 },
   1157                 {
   1158                     "disable_built_in_keyboard_if_exists": false,
   1159                     "fn_function_keys": [],
   1160                     "game_pad_swap_sticks": false,
   1161                     "identifiers": {
   1162                         "is_game_pad": false,
   1163                         "is_keyboard": false,
   1164                         "is_pointing_device": true,
   1165                         "product_id": 473,
   1166                         "vendor_id": 5215
   1167                     },
   1168                     "ignore": false,
   1169                     "manipulate_caps_lock_led": false,
   1170                     "mouse_flip_horizontal_wheel": false,
   1171                     "mouse_flip_vertical_wheel": false,
   1172                     "mouse_flip_x": false,
   1173                     "mouse_flip_y": false,
   1174                     "mouse_swap_wheels": false,
   1175                     "mouse_swap_xy": false,
   1176                     "simple_modifications": [
   1177                         {
   1178                             "from": {
   1179                                 "pointing_button": "button5"
   1180                             },
   1181                             "to": [
   1182                                 {
   1183                                     "apple_vendor_keyboard_key_code": "mission_control"
   1184                                 }
   1185                             ]
   1186                         }
   1187                     ],
   1188                     "treat_as_built_in_keyboard": false
   1189                 },
   1190                 {
   1191                     "disable_built_in_keyboard_if_exists": false,
   1192                     "fn_function_keys": [],
   1193                     "game_pad_swap_sticks": false,
   1194                     "identifiers": {
   1195                         "is_game_pad": false,
   1196                         "is_keyboard": true,
   1197                         "is_pointing_device": false,
   1198                         "product_id": 9483,
   1199                         "vendor_id": 16700
   1200                     },
   1201                     "ignore": false,
   1202                     "manipulate_caps_lock_led": true,
   1203                     "mouse_flip_horizontal_wheel": false,
   1204                     "mouse_flip_vertical_wheel": false,
   1205                     "mouse_flip_x": false,
   1206                     "mouse_flip_y": false,
   1207                     "mouse_swap_wheels": false,
   1208                     "mouse_swap_xy": false,
   1209                     "simple_modifications": [
   1210                         {
   1211                             "from": {
   1212                                 "key_code": "f3"
   1213                             },
   1214                             "to": [
   1215                                 {
   1216                                     "apple_vendor_keyboard_key_code": "mission_control"
   1217                                 }
   1218                             ]
   1219                         },
   1220                         {
   1221                             "from": {
   1222                                 "key_code": "f4"
   1223                             },
   1224                             "to": [
   1225                                 {
   1226                                     "apple_vendor_keyboard_key_code": "launchpad"
   1227                                 }
   1228                             ]
   1229                         },
   1230                         {
   1231                             "from": {
   1232                                 "key_code": "f10"
   1233                             },
   1234                             "to": [
   1235                                 {
   1236                                     "consumer_key_code": "mute"
   1237                                 }
   1238                             ]
   1239                         },
   1240                         {
   1241                             "from": {
   1242                                 "key_code": "f11"
   1243                             },
   1244                             "to": [
   1245                                 {
   1246                                     "consumer_key_code": "volume_decrement"
   1247                                 }
   1248                             ]
   1249                         },
   1250                         {
   1251                             "from": {
   1252                                 "key_code": "f12"
   1253                             },
   1254                             "to": [
   1255                                 {
   1256                                     "consumer_key_code": "volume_increment"
   1257                                 }
   1258                             ]
   1259                         },
   1260                         {
   1261                             "from": {
   1262                                 "key_code": "left_command"
   1263                             },
   1264                             "to": [
   1265                                 {
   1266                                     "key_code": "left_option"
   1267                                 }
   1268                             ]
   1269                         },
   1270                         {
   1271                             "from": {
   1272                                 "key_code": "left_option"
   1273                             },
   1274                             "to": [
   1275                                 {
   1276                                     "key_code": "left_command"
   1277                                 }
   1278                             ]
   1279                         }
   1280                     ],
   1281                     "treat_as_built_in_keyboard": false
   1282                 },
   1283                 {
   1284                     "disable_built_in_keyboard_if_exists": false,
   1285                     "fn_function_keys": [],
   1286                     "game_pad_swap_sticks": false,
   1287                     "identifiers": {
   1288                         "is_game_pad": false,
   1289                         "is_keyboard": false,
   1290                         "is_pointing_device": true,
   1291                         "product_id": 9482,
   1292                         "vendor_id": 16700
   1293                     },
   1294                     "ignore": false,
   1295                     "manipulate_caps_lock_led": false,
   1296                     "mouse_flip_horizontal_wheel": false,
   1297                     "mouse_flip_vertical_wheel": false,
   1298                     "mouse_flip_x": false,
   1299                     "mouse_flip_y": false,
   1300                     "mouse_swap_wheels": false,
   1301                     "mouse_swap_xy": false,
   1302                     "simple_modifications": [
   1303                         {
   1304                             "from": {
   1305                                 "pointing_button": "button4"
   1306                             },
   1307                             "to": [
   1308                                 {
   1309                                     "apple_vendor_keyboard_key_code": "launchpad"
   1310                                 }
   1311                             ]
   1312                         },
   1313                         {
   1314                             "from": {
   1315                                 "pointing_button": "button5"
   1316                             },
   1317                             "to": [
   1318                                 {
   1319                                     "apple_vendor_keyboard_key_code": "mission_control"
   1320                                 }
   1321                             ]
   1322                         }
   1323                     ],
   1324                     "treat_as_built_in_keyboard": false
   1325                 },
   1326                 {
   1327                     "disable_built_in_keyboard_if_exists": false,
   1328                     "fn_function_keys": [],
   1329                     "game_pad_swap_sticks": false,
   1330                     "identifiers": {
   1331                         "is_game_pad": false,
   1332                         "is_keyboard": false,
   1333                         "is_pointing_device": true,
   1334                         "product_id": 49276,
   1335                         "vendor_id": 1133
   1336                     },
   1337                     "ignore": true,
   1338                     "manipulate_caps_lock_led": false,
   1339                     "mouse_flip_horizontal_wheel": false,
   1340                     "mouse_flip_vertical_wheel": false,
   1341                     "mouse_flip_x": false,
   1342                     "mouse_flip_y": false,
   1343                     "mouse_swap_wheels": false,
   1344                     "mouse_swap_xy": false,
   1345                     "simple_modifications": [],
   1346                     "treat_as_built_in_keyboard": false
   1347                 },
   1348                 {
   1349                     "disable_built_in_keyboard_if_exists": false,
   1350                     "fn_function_keys": [],
   1351                     "game_pad_swap_sticks": false,
   1352                     "identifiers": {
   1353                         "is_game_pad": false,
   1354                         "is_keyboard": true,
   1355                         "is_pointing_device": false,
   1356                         "product_id": 12316,
   1357                         "vendor_id": 16700
   1358                     },
   1359                     "ignore": false,
   1360                     "manipulate_caps_lock_led": true,
   1361                     "mouse_flip_horizontal_wheel": false,
   1362                     "mouse_flip_vertical_wheel": false,
   1363                     "mouse_flip_x": false,
   1364                     "mouse_flip_y": false,
   1365                     "mouse_swap_wheels": false,
   1366                     "mouse_swap_xy": false,
   1367                     "simple_modifications": [
   1368                         {
   1369                             "from": {
   1370                                 "key_code": "f3"
   1371                             },
   1372                             "to": [
   1373                                 {
   1374                                     "apple_vendor_keyboard_key_code": "mission_control"
   1375                                 }
   1376                             ]
   1377                         },
   1378                         {
   1379                             "from": {
   1380                                 "key_code": "f4"
   1381                             },
   1382                             "to": [
   1383                                 {
   1384                                     "apple_vendor_keyboard_key_code": "launchpad"
   1385                                 }
   1386                             ]
   1387                         },
   1388                         {
   1389                             "from": {
   1390                                 "key_code": "f10"
   1391                             },
   1392                             "to": [
   1393                                 {
   1394                                     "consumer_key_code": "mute"
   1395                                 }
   1396                             ]
   1397                         },
   1398                         {
   1399                             "from": {
   1400                                 "key_code": "f11"
   1401                             },
   1402                             "to": [
   1403                                 {
   1404                                     "consumer_key_code": "volume_decrement"
   1405                                 }
   1406                             ]
   1407                         },
   1408                         {
   1409                             "from": {
   1410                                 "key_code": "f12"
   1411                             },
   1412                             "to": [
   1413                                 {
   1414                                     "consumer_key_code": "volume_increment"
   1415                                 }
   1416                             ]
   1417                         },
   1418                         {
   1419                             "from": {
   1420                                 "key_code": "non_us_backslash"
   1421                             },
   1422                             "to": [
   1423                                 {
   1424                                     "key_code": "application"
   1425                                 }
   1426                             ]
   1427                         }
   1428                     ],
   1429                     "treat_as_built_in_keyboard": false
   1430                 },
   1431                 {
   1432                     "disable_built_in_keyboard_if_exists": false,
   1433                     "fn_function_keys": [],
   1434                     "game_pad_swap_sticks": false,
   1435                     "identifiers": {
   1436                         "is_game_pad": false,
   1437                         "is_keyboard": false,
   1438                         "is_pointing_device": true,
   1439                         "product_id": 12316,
   1440                         "vendor_id": 16700
   1441                     },
   1442                     "ignore": false,
   1443                     "manipulate_caps_lock_led": false,
   1444                     "mouse_flip_horizontal_wheel": false,
   1445                     "mouse_flip_vertical_wheel": false,
   1446                     "mouse_flip_x": false,
   1447                     "mouse_flip_y": false,
   1448                     "mouse_swap_wheels": false,
   1449                     "mouse_swap_xy": false,
   1450                     "simple_modifications": [
   1451                         {
   1452                             "from": {
   1453                                 "pointing_button": "button4"
   1454                             },
   1455                             "to": [
   1456                                 {
   1457                                     "apple_vendor_keyboard_key_code": "launchpad"
   1458                                 }
   1459                             ]
   1460                         },
   1461                         {
   1462                             "from": {
   1463                                 "pointing_button": "button5"
   1464                             },
   1465                             "to": [
   1466                                 {
   1467                                     "apple_vendor_keyboard_key_code": "mission_control"
   1468                                 }
   1469                             ]
   1470                         }
   1471                     ],
   1472                     "treat_as_built_in_keyboard": false
   1473                 },
   1474                 {
   1475                     "disable_built_in_keyboard_if_exists": false,
   1476                     "fn_function_keys": [],
   1477                     "game_pad_swap_sticks": false,
   1478                     "identifiers": {
   1479                         "is_game_pad": false,
   1480                         "is_keyboard": true,
   1481                         "is_pointing_device": false,
   1482                         "product_id": 33290,
   1483                         "vendor_id": 1452
   1484                     },
   1485                     "ignore": false,
   1486                     "manipulate_caps_lock_led": true,
   1487                     "mouse_flip_horizontal_wheel": false,
   1488                     "mouse_flip_vertical_wheel": false,
   1489                     "mouse_flip_x": false,
   1490                     "mouse_flip_y": false,
   1491                     "mouse_swap_wheels": false,
   1492                     "mouse_swap_xy": false,
   1493                     "simple_modifications": [],
   1494                     "treat_as_built_in_keyboard": false
   1495                 },
   1496                 {
   1497                     "disable_built_in_keyboard_if_exists": false,
   1498                     "fn_function_keys": [],
   1499                     "game_pad_swap_sticks": false,
   1500                     "identifiers": {
   1501                         "is_game_pad": false,
   1502                         "is_keyboard": false,
   1503                         "is_pointing_device": true,
   1504                         "product_id": 33291,
   1505                         "vendor_id": 1452
   1506                     },
   1507                     "ignore": true,
   1508                     "manipulate_caps_lock_led": false,
   1509                     "mouse_flip_horizontal_wheel": false,
   1510                     "mouse_flip_vertical_wheel": false,
   1511                     "mouse_flip_x": false,
   1512                     "mouse_flip_y": false,
   1513                     "mouse_swap_wheels": false,
   1514                     "mouse_swap_xy": false,
   1515                     "simple_modifications": [],
   1516                     "treat_as_built_in_keyboard": false
   1517                 }
   1518             ],
   1519             "fn_function_keys": [
   1520                 {
   1521                     "from": {
   1522                         "key_code": "f1"
   1523                     },
   1524                     "to": [
   1525                         {
   1526                             "key_code": "display_brightness_decrement"
   1527                         }
   1528                     ]
   1529                 },
   1530                 {
   1531                     "from": {
   1532                         "key_code": "f2"
   1533                     },
   1534                     "to": [
   1535                         {
   1536                             "key_code": "display_brightness_increment"
   1537                         }
   1538                     ]
   1539                 },
   1540                 {
   1541                     "from": {
   1542                         "key_code": "f3"
   1543                     },
   1544                     "to": [
   1545                         {
   1546                             "key_code": "mission_control"
   1547                         }
   1548                     ]
   1549                 },
   1550                 {
   1551                     "from": {
   1552                         "key_code": "f4"
   1553                     },
   1554                     "to": [
   1555                         {
   1556                             "key_code": "launchpad"
   1557                         }
   1558                     ]
   1559                 },
   1560                 {
   1561                     "from": {
   1562                         "key_code": "f5"
   1563                     },
   1564                     "to": [
   1565                         {
   1566                             "key_code": "illumination_decrement"
   1567                         }
   1568                     ]
   1569                 },
   1570                 {
   1571                     "from": {
   1572                         "key_code": "f6"
   1573                     },
   1574                     "to": [
   1575                         {
   1576                             "key_code": "illumination_increment"
   1577                         }
   1578                     ]
   1579                 },
   1580                 {
   1581                     "from": {
   1582                         "key_code": "f7"
   1583                     },
   1584                     "to": [
   1585                         {
   1586                             "key_code": "rewind"
   1587                         }
   1588                     ]
   1589                 },
   1590                 {
   1591                     "from": {
   1592                         "key_code": "f8"
   1593                     },
   1594                     "to": [
   1595                         {
   1596                             "key_code": "play_or_pause"
   1597                         }
   1598                     ]
   1599                 },
   1600                 {
   1601                     "from": {
   1602                         "key_code": "f9"
   1603                     },
   1604                     "to": [
   1605                         {
   1606                             "key_code": "fastforward"
   1607                         }
   1608                     ]
   1609                 },
   1610                 {
   1611                     "from": {
   1612                         "key_code": "f10"
   1613                     },
   1614                     "to": [
   1615                         {
   1616                             "key_code": "mute"
   1617                         }
   1618                     ]
   1619                 },
   1620                 {
   1621                     "from": {
   1622                         "key_code": "f11"
   1623                     },
   1624                     "to": [
   1625                         {
   1626                             "key_code": "volume_decrement"
   1627                         }
   1628                     ]
   1629                 },
   1630                 {
   1631                     "from": {
   1632                         "key_code": "f12"
   1633                     },
   1634                     "to": [
   1635                         {
   1636                             "key_code": "volume_increment"
   1637                         }
   1638                     ]
   1639                 }
   1640             ],
   1641             "name": "Default profile",
   1642             "parameters": {
   1643                 "delay_milliseconds_before_open_device": 1000
   1644             },
   1645             "selected": true,
   1646             "simple_modifications": [],
   1647             "virtual_hid_keyboard": {
   1648                 "caps_lock_delay_milliseconds": 0,
   1649                 "country_code": 0,
   1650                 "indicate_sticky_modifier_keys_state": true,
   1651                 "keyboard_type": "ansi",
   1652                 "mouse_key_xy_scale": 100
   1653             }
   1654         }
   1655     ]
   1656 }