configs

configs
git clone https://git.prime8.dev/configs.git
Log | Files | Refs | README

1767731957.json (4429B)


      1 {
      2   "title": "Modern Space Cadet (rev 3)",
      3   "rules": [
      4     {
      5       "description": "Caps Lock to Escape on single press, Control on press and hold.",
      6       "manipulators": [
      7         {
      8           "type": "basic",
      9           "from": {
     10             "key_code": "caps_lock",
     11             "modifiers": {
     12               "optional": [
     13                 "any"
     14               ]
     15             }
     16           },
     17           "to": [
     18             {
     19               "key_code": "left_control"
     20             }
     21           ],
     22           "to_if_alone": [
     23             {
     24               "key_code": "escape"
     25             }
     26           ]
     27         }
     28       ]
     29     },
     30     {
     31       "description": "Control to Caps Lock on single press, 'Hyper Key' on press and hold. (rev 2)",
     32       "manipulators": [
     33         {
     34           "type": "basic",
     35           "from": {
     36             "key_code": "left_control",
     37             "modifiers": {
     38               "optional": [
     39                 "any"
     40               ]
     41             }
     42           },
     43           "to": [
     44             {
     45               "key_code": "left_shift",
     46               "modifiers": [
     47                 "left_command",
     48                 "left_control",
     49                 "left_option"
     50               ]
     51             }
     52           ],
     53           "to_if_alone": [
     54             {
     55               "key_code": "caps_lock",
     56               "hold_down_milliseconds": 500
     57             }
     58           ]
     59         }
     60       ]
     61     },
     62     {
     63       "description": "Better Shifting: Parentheses on shift keys",
     64       "manipulators": [
     65         {
     66           "type": "basic",
     67           "from": {
     68             "key_code": "left_shift"
     69           },
     70           "to": [
     71             {
     72               "key_code": "left_shift"
     73             }
     74           ],
     75           "to_if_alone": [
     76             {
     77               "key_code": "9",
     78               "modifiers": [
     79                 "left_shift"
     80               ]
     81             }
     82           ]
     83         },
     84         {
     85           "type": "basic",
     86           "from": {
     87             "key_code": "right_shift"
     88           },
     89           "to": [
     90             {
     91               "key_code": "right_shift"
     92             }
     93           ],
     94           "to_if_alone": [
     95             {
     96               "key_code": "0",
     97               "modifiers": [
     98                 "right_shift"
     99               ]
    100             }
    101           ]
    102         }
    103       ]
    104     },
    105     {
    106       "description": "Better Shifting: Shift rolls",
    107       "manipulators": [
    108         {
    109           "type": "basic",
    110           "from": {
    111             "key_code": "left_shift",
    112             "modifiers": {
    113               "mandatory": [
    114                 "right_shift"
    115               ]
    116             }
    117           },
    118           "to": [
    119             {
    120               "key_code": "left_shift"
    121             },
    122             {
    123               "key_code": "right_shift"
    124             }
    125           ],
    126           "to_if_alone": [
    127             {
    128               "key_code": "0",
    129               "modifiers": [
    130                 "right_shift",
    131                 "left_shift"
    132               ]
    133             },
    134             {
    135               "key_code": "9",
    136               "modifiers": [
    137                 "right_shift",
    138                 "left_shift"
    139               ]
    140             }
    141           ]
    142         },
    143         {
    144           "type": "basic",
    145           "from": {
    146             "key_code": "right_shift",
    147             "modifiers": {
    148               "mandatory": [
    149                 "left_shift"
    150               ]
    151             }
    152           },
    153           "to": [
    154             {
    155               "key_code": "right_shift"
    156             },
    157             {
    158               "key_code": "left_shift"
    159             }
    160           ],
    161           "to_if_alone": [
    162             {
    163               "key_code": "9",
    164               "modifiers": [
    165                 "right_shift"
    166               ]
    167             },
    168             {
    169               "key_code": "0",
    170               "modifiers": [
    171                 "right_shift"
    172               ]
    173             }
    174           ]
    175         }
    176       ]
    177     },
    178     {
    179       "description": "Better Shifting: End parenthesis on shift + space",
    180       "manipulators": [
    181         {
    182           "type": "basic",
    183           "from": {
    184             "key_code": "spacebar",
    185             "modifiers": {
    186               "mandatory": [
    187                 "right_shift"
    188               ]
    189             }
    190           },
    191           "to": [
    192             {
    193               "key_code": "0",
    194               "modifiers": [
    195                 "right_shift"
    196               ]
    197             },
    198             {
    199               "key_code": "spacebar"
    200             }
    201           ]
    202         }
    203       ]
    204     }
    205   ]
    206 }