dotfiles

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

1705192176.json (8680B)


      1 {
      2   "title": "Numeric Keypad",
      3   "rules": [
      4     {
      5       "description": "Numeric Keypad Mode [Tab as trigger key]",
      6       "manipulators": [
      7         {
      8           "type": "basic",
      9           "from": {
     10             "key_code": "tab"
     11           },
     12           "to": [
     13             {
     14               "set_variable": {
     15                 "name": "numeric_keypad_mode",
     16                 "value": 1
     17               }
     18             }
     19           ],
     20           "to_if_alone": [
     21             {
     22               "key_code": "tab"
     23             }
     24           ],
     25           "to_after_key_up": [
     26             {
     27               "set_variable": {
     28                 "name": "numeric_keypad_mode",
     29                 "value": 0
     30               }
     31             }
     32           ]
     33         },
     34         {
     35           "type": "basic",
     36           "from": {
     37             "key_code": "7"
     38           },
     39           "to": [
     40             {
     41               "key_code": "delete_or_backspace"
     42             }
     43           ],
     44           "conditions": [
     45             {
     46               "type": "variable_if",
     47               "name": "numeric_keypad_mode",
     48               "value": 1
     49             }
     50           ]
     51         },
     52         {
     53           "type": "basic",
     54           "from": {
     55             "key_code": "8"
     56           },
     57           "to": [
     58             {
     59               "key_code": "keypad_equal_sign"
     60             }
     61           ],
     62           "conditions": [
     63             {
     64               "type": "variable_if",
     65               "name": "numeric_keypad_mode",
     66               "value": 1
     67             }
     68           ]
     69         },
     70         {
     71           "type": "basic",
     72           "from": {
     73             "key_code": "9"
     74           },
     75           "to": [
     76             {
     77               "key_code": "keypad_slash"
     78             }
     79           ],
     80           "conditions": [
     81             {
     82               "type": "variable_if",
     83               "name": "numeric_keypad_mode",
     84               "value": 1
     85             }
     86           ]
     87         },
     88         {
     89           "type": "basic",
     90           "from": {
     91             "key_code": "0"
     92           },
     93           "to": [
     94             {
     95               "key_code": "keypad_asterisk"
     96             }
     97           ],
     98           "conditions": [
     99             {
    100               "type": "variable_if",
    101               "name": "numeric_keypad_mode",
    102               "value": 1
    103             }
    104           ]
    105         },
    106         {
    107           "type": "basic",
    108           "from": {
    109             "key_code": "u"
    110           },
    111           "to": [
    112             {
    113               "key_code": "keypad_7"
    114             }
    115           ],
    116           "conditions": [
    117             {
    118               "type": "variable_if",
    119               "name": "numeric_keypad_mode",
    120               "value": 1
    121             }
    122           ]
    123         },
    124         {
    125           "type": "basic",
    126           "from": {
    127             "key_code": "i"
    128           },
    129           "to": [
    130             {
    131               "key_code": "keypad_8"
    132             }
    133           ],
    134           "conditions": [
    135             {
    136               "type": "variable_if",
    137               "name": "numeric_keypad_mode",
    138               "value": 1
    139             }
    140           ]
    141         },
    142         {
    143           "type": "basic",
    144           "from": {
    145             "key_code": "o"
    146           },
    147           "to": [
    148             {
    149               "key_code": "keypad_9"
    150             }
    151           ],
    152           "conditions": [
    153             {
    154               "type": "variable_if",
    155               "name": "numeric_keypad_mode",
    156               "value": 1
    157             }
    158           ]
    159         },
    160         {
    161           "type": "basic",
    162           "from": {
    163             "key_code": "p"
    164           },
    165           "to": [
    166             {
    167               "key_code": "keypad_hyphen"
    168             }
    169           ],
    170           "conditions": [
    171             {
    172               "type": "variable_if",
    173               "name": "numeric_keypad_mode",
    174               "value": 1
    175             }
    176           ]
    177         },
    178         {
    179           "type": "basic",
    180           "from": {
    181             "key_code": "j"
    182           },
    183           "to": [
    184             {
    185               "key_code": "keypad_4"
    186             }
    187           ],
    188           "conditions": [
    189             {
    190               "type": "variable_if",
    191               "name": "numeric_keypad_mode",
    192               "value": 1
    193             }
    194           ]
    195         },
    196         {
    197           "type": "basic",
    198           "from": {
    199             "key_code": "k"
    200           },
    201           "to": [
    202             {
    203               "key_code": "keypad_5"
    204             }
    205           ],
    206           "conditions": [
    207             {
    208               "type": "variable_if",
    209               "name": "numeric_keypad_mode",
    210               "value": 1
    211             }
    212           ]
    213         },
    214         {
    215           "type": "basic",
    216           "from": {
    217             "key_code": "l"
    218           },
    219           "to": [
    220             {
    221               "key_code": "keypad_6"
    222             }
    223           ],
    224           "conditions": [
    225             {
    226               "type": "variable_if",
    227               "name": "numeric_keypad_mode",
    228               "value": 1
    229             }
    230           ]
    231         },
    232         {
    233           "type": "basic",
    234           "from": {
    235             "key_code": "semicolon"
    236           },
    237           "to": [
    238             {
    239               "key_code": "keypad_plus"
    240             }
    241           ],
    242           "conditions": [
    243             {
    244               "type": "variable_if",
    245               "name": "numeric_keypad_mode",
    246               "value": 1
    247             }
    248           ]
    249         },
    250         {
    251           "type": "basic",
    252           "from": {
    253             "key_code": "m"
    254           },
    255           "to": [
    256             {
    257               "key_code": "keypad_1"
    258             }
    259           ],
    260           "conditions": [
    261             {
    262               "type": "variable_if",
    263               "name": "numeric_keypad_mode",
    264               "value": 1
    265             }
    266           ]
    267         },
    268         {
    269           "type": "basic",
    270           "from": {
    271             "key_code": "comma"
    272           },
    273           "to": [
    274             {
    275               "key_code": "keypad_2"
    276             }
    277           ],
    278           "conditions": [
    279             {
    280               "type": "variable_if",
    281               "name": "numeric_keypad_mode",
    282               "value": 1
    283             }
    284           ]
    285         },
    286         {
    287           "type": "basic",
    288           "from": {
    289             "key_code": "period"
    290           },
    291           "to": [
    292             {
    293               "key_code": "keypad_3"
    294             }
    295           ],
    296           "conditions": [
    297             {
    298               "type": "variable_if",
    299               "name": "numeric_keypad_mode",
    300               "value": 1
    301             }
    302           ]
    303         },
    304         {
    305           "type": "basic",
    306           "from": {
    307             "key_code": "slash"
    308           },
    309           "to": [
    310             {
    311               "key_code": "keypad_enter"
    312             }
    313           ],
    314           "conditions": [
    315             {
    316               "type": "variable_if",
    317               "name": "numeric_keypad_mode",
    318               "value": 1
    319             }
    320           ]
    321         },
    322         {
    323           "type": "basic",
    324           "from": {
    325             "key_code": "spacebar"
    326           },
    327           "to": [
    328             {
    329               "key_code": "keypad_0"
    330             }
    331           ],
    332           "conditions": [
    333             {
    334               "type": "variable_if",
    335               "name": "numeric_keypad_mode",
    336               "value": 1
    337             }
    338           ]
    339         },
    340         {
    341           "type": "basic",
    342           "from": {
    343             "key_code": "right_option"
    344           },
    345           "to": [
    346             {
    347               "key_code": "keypad_period"
    348             }
    349           ],
    350           "conditions": [
    351             {
    352               "type": "variable_if",
    353               "name": "numeric_keypad_mode",
    354               "value": 1
    355             }
    356           ]
    357         }
    358       ]
    359     },
    360     {
    361       "description": "Numeric Keypad Mode Trigger + right_option to keypad_period",
    362       "manipulators": [
    363         {
    364           "type": "basic",
    365           "from": {
    366             "key_code": "right_option"
    367           },
    368           "to": [
    369             {
    370               "key_code": "keypad_period"
    371             }
    372           ],
    373           "conditions": [
    374             {
    375               "type": "variable_if",
    376               "name": "numeric_keypad_mode",
    377               "value": 1
    378             }
    379           ]
    380         }
    381       ]
    382     },
    383     {
    384       "description": "Numeric Keypad Mode Trigger + right_control to keypad_period",
    385       "manipulators": [
    386         {
    387           "type": "basic",
    388           "from": {
    389             "key_code": "right_control"
    390           },
    391           "to": [
    392             {
    393               "key_code": "keypad_period"
    394             }
    395           ],
    396           "conditions": [
    397             {
    398               "type": "variable_if",
    399               "name": "numeric_keypad_mode",
    400               "value": 1
    401             }
    402           ]
    403         }
    404       ]
    405     }
    406   ]
    407 }