dotfiles

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

1629124626.json (10263B)


      1 {
      2   "title": "Mouse keys (full) (rev 4)",
      3   "rules": [
      4     {
      5       "description": "Mouse keys (full) (rev 4)",
      6       "manipulators": [
      7         {
      8           "type": "basic",
      9           "from": {
     10             "key_code": "right_command",
     11             "modifiers": {
     12               "optional": [
     13                 "any"
     14               ]
     15             }
     16           },
     17           "to": [
     18             {
     19               "key_code": "right_command"
     20             }
     21           ],
     22           "to_after_key_up": [
     23             {
     24               "set_variable": {
     25                 "name": "mouse_keys_full",
     26                 "value": 0
     27               }
     28             }
     29           ]
     30         },
     31         {
     32           "type": "basic",
     33           "from": {
     34             "key_code": "m",
     35             "modifiers": {
     36               "mandatory": [
     37                 "right_command"
     38               ],
     39               "optional": [
     40                 "any"
     41               ]
     42             }
     43           },
     44           "to": [
     45             {
     46               "set_variable": {
     47                 "name": "mouse_keys_full",
     48                 "value": 1
     49               }
     50             }
     51           ]
     52         },
     53         {
     54           "type": "basic",
     55           "from": {
     56             "key_code": "h",
     57             "modifiers": {
     58               "mandatory": [
     59                 "right_command"
     60               ],
     61               "optional": [
     62                 "any"
     63               ]
     64             }
     65           },
     66           "to": [
     67             {
     68               "mouse_key": {
     69                 "horizontal_wheel": 32
     70               }
     71             }
     72           ],
     73           "conditions": [
     74             {
     75               "type": "variable_if",
     76               "name": "mouse_keys_full",
     77               "value": 1
     78             },
     79             {
     80               "type": "variable_if",
     81               "name": "mouse_keys_full_scroll",
     82               "value": 1
     83             }
     84           ]
     85         },
     86         {
     87           "type": "basic",
     88           "from": {
     89             "key_code": "j",
     90             "modifiers": {
     91               "mandatory": [
     92                 "right_command"
     93               ],
     94               "optional": [
     95                 "any"
     96               ]
     97             }
     98           },
     99           "to": [
    100             {
    101               "mouse_key": {
    102                 "vertical_wheel": 32
    103               }
    104             }
    105           ],
    106           "conditions": [
    107             {
    108               "type": "variable_if",
    109               "name": "mouse_keys_full",
    110               "value": 1
    111             },
    112             {
    113               "type": "variable_if",
    114               "name": "mouse_keys_full_scroll",
    115               "value": 1
    116             }
    117           ]
    118         },
    119         {
    120           "type": "basic",
    121           "from": {
    122             "key_code": "k",
    123             "modifiers": {
    124               "mandatory": [
    125                 "right_command"
    126               ],
    127               "optional": [
    128                 "any"
    129               ]
    130             }
    131           },
    132           "to": [
    133             {
    134               "mouse_key": {
    135                 "vertical_wheel": -32
    136               }
    137             }
    138           ],
    139           "conditions": [
    140             {
    141               "type": "variable_if",
    142               "name": "mouse_keys_full",
    143               "value": 1
    144             },
    145             {
    146               "type": "variable_if",
    147               "name": "mouse_keys_full_scroll",
    148               "value": 1
    149             }
    150           ]
    151         },
    152         {
    153           "type": "basic",
    154           "from": {
    155             "key_code": "l",
    156             "modifiers": {
    157               "mandatory": [
    158                 "right_command"
    159               ],
    160               "optional": [
    161                 "any"
    162               ]
    163             }
    164           },
    165           "to": [
    166             {
    167               "mouse_key": {
    168                 "horizontal_wheel": -32
    169               }
    170             }
    171           ],
    172           "conditions": [
    173             {
    174               "type": "variable_if",
    175               "name": "mouse_keys_full",
    176               "value": 1
    177             },
    178             {
    179               "type": "variable_if",
    180               "name": "mouse_keys_full_scroll",
    181               "value": 1
    182             }
    183           ]
    184         },
    185         {
    186           "type": "basic",
    187           "from": {
    188             "key_code": "h",
    189             "modifiers": {
    190               "mandatory": [
    191                 "right_command"
    192               ],
    193               "optional": [
    194                 "any"
    195               ]
    196             }
    197           },
    198           "to": [
    199             {
    200               "mouse_key": {
    201                 "x": -1536
    202               }
    203             }
    204           ],
    205           "conditions": [
    206             {
    207               "type": "variable_if",
    208               "name": "mouse_keys_full",
    209               "value": 1
    210             }
    211           ]
    212         },
    213         {
    214           "type": "basic",
    215           "from": {
    216             "key_code": "j",
    217             "modifiers": {
    218               "mandatory": [
    219                 "right_command"
    220               ],
    221               "optional": [
    222                 "any"
    223               ]
    224             }
    225           },
    226           "to": [
    227             {
    228               "mouse_key": {
    229                 "y": 1536
    230               }
    231             }
    232           ],
    233           "conditions": [
    234             {
    235               "type": "variable_if",
    236               "name": "mouse_keys_full",
    237               "value": 1
    238             }
    239           ]
    240         },
    241         {
    242           "type": "basic",
    243           "from": {
    244             "key_code": "k",
    245             "modifiers": {
    246               "mandatory": [
    247                 "right_command"
    248               ],
    249               "optional": [
    250                 "any"
    251               ]
    252             }
    253           },
    254           "to": [
    255             {
    256               "mouse_key": {
    257                 "y": -1536
    258               }
    259             }
    260           ],
    261           "conditions": [
    262             {
    263               "type": "variable_if",
    264               "name": "mouse_keys_full",
    265               "value": 1
    266             }
    267           ]
    268         },
    269         {
    270           "type": "basic",
    271           "from": {
    272             "key_code": "l",
    273             "modifiers": {
    274               "mandatory": [
    275                 "right_command"
    276               ],
    277               "optional": [
    278                 "any"
    279               ]
    280             }
    281           },
    282           "to": [
    283             {
    284               "mouse_key": {
    285                 "x": 1536
    286               }
    287             }
    288           ],
    289           "conditions": [
    290             {
    291               "type": "variable_if",
    292               "name": "mouse_keys_full",
    293               "value": 1
    294             }
    295           ]
    296         },
    297         {
    298           "type": "basic",
    299           "from": {
    300             "key_code": "v",
    301             "modifiers": {
    302               "mandatory": [
    303                 "right_command"
    304               ],
    305               "optional": [
    306                 "any"
    307               ]
    308             }
    309           },
    310           "to": [
    311             {
    312               "pointing_button": "button1"
    313             }
    314           ],
    315           "conditions": [
    316             {
    317               "type": "variable_if",
    318               "name": "mouse_keys_full",
    319               "value": 1
    320             }
    321           ]
    322         },
    323         {
    324           "type": "basic",
    325           "from": {
    326             "key_code": "b",
    327             "modifiers": {
    328               "mandatory": [
    329                 "right_command"
    330               ],
    331               "optional": [
    332                 "any"
    333               ]
    334             }
    335           },
    336           "to": [
    337             {
    338               "pointing_button": "button3"
    339             }
    340           ],
    341           "conditions": [
    342             {
    343               "type": "variable_if",
    344               "name": "mouse_keys_full",
    345               "value": 1
    346             }
    347           ]
    348         },
    349         {
    350           "type": "basic",
    351           "from": {
    352             "key_code": "n",
    353             "modifiers": {
    354               "mandatory": [
    355                 "right_command"
    356               ],
    357               "optional": [
    358                 "any"
    359               ]
    360             }
    361           },
    362           "to": [
    363             {
    364               "pointing_button": "button2"
    365             }
    366           ],
    367           "conditions": [
    368             {
    369               "type": "variable_if",
    370               "name": "mouse_keys_full",
    371               "value": 1
    372             }
    373           ]
    374         },
    375         {
    376           "type": "basic",
    377           "from": {
    378             "key_code": "f",
    379             "modifiers": {
    380               "mandatory": [
    381                 "right_command"
    382               ],
    383               "optional": [
    384                 "any"
    385               ]
    386             }
    387           },
    388           "to": [
    389             {
    390               "mouse_key": {
    391                 "speed_multiplier": 2.0
    392               }
    393             }
    394           ],
    395           "conditions": [
    396             {
    397               "type": "variable_if",
    398               "name": "mouse_keys_full",
    399               "value": 1
    400             }
    401           ]
    402         },
    403         {
    404           "type": "basic",
    405           "from": {
    406             "key_code": "d",
    407             "modifiers": {
    408               "mandatory": [
    409                 "right_command"
    410               ],
    411               "optional": [
    412                 "any"
    413               ]
    414             }
    415           },
    416           "to": [
    417             {
    418               "mouse_key": {
    419                 "speed_multiplier": 0.5
    420               }
    421             }
    422           ],
    423           "conditions": [
    424             {
    425               "type": "variable_if",
    426               "name": "mouse_keys_full",
    427               "value": 1
    428             }
    429           ]
    430         },
    431         {
    432           "type": "basic",
    433           "from": {
    434             "key_code": "s",
    435             "modifiers": {
    436               "mandatory": [
    437                 "right_command"
    438               ],
    439               "optional": [
    440                 "any"
    441               ]
    442             }
    443           },
    444           "to": [
    445             {
    446               "set_variable": {
    447                 "name": "mouse_keys_full_scroll",
    448                 "value": 1
    449               }
    450             }
    451           ],
    452           "to_after_key_up": [
    453             {
    454               "set_variable": {
    455                 "name": "mouse_keys_full_scroll",
    456                 "value": 0
    457               }
    458             }
    459           ],
    460           "conditions": [
    461             {
    462               "type": "variable_if",
    463               "name": "mouse_keys_full",
    464               "value": 1
    465             }
    466           ]
    467         }
    468       ]
    469     }
    470   ]
    471 }