mouse_keys.json (5772B)
1 { 2 "title": "Mouse keys", 3 "rules": [ 4 { 5 "description": "Mouse keys", 6 "manipulators": [ 7 { 8 "type": "basic", 9 "from": { "key_code": "tab", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 10 "to": [ { "set_variable": { "name": "mouse_keys_full", "value": 1 } } ] 11 }, 12 { 13 "type": "basic", 14 "from": { "key_code": "left_option", "modifiers": { "optional": [ "any" ] } }, 15 "to": [ { "key_code": "left_option" } ], 16 "to_after_key_up": [ { "set_variable": { "name": "mouse_keys_full", "value": 0 } } ] 17 }, 18 19 { 20 "type": "basic", 21 "from": { "key_code": "h", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 22 "to": [ { "set_variable": { "name": "mouse_keys_full_scroll", "value": 1 } } ], 23 "to_after_key_up": [ { "set_variable": { "name": "mouse_keys_full_scroll", "value": 0 } } ], 24 "conditions": [ 25 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 } 26 ] 27 }, 28 { 29 "type": "basic", 30 "from": { "key_code": "left_shift", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 31 "to": [ { "mouse_key": { "speed_multiplier": 2.0 } } ], 32 "conditions": [ 33 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 } 34 ] 35 }, 36 { 37 "type": "basic", 38 "from": { "key_code": "semicolon", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 39 "to": [ { "mouse_key": { "speed_multiplier": 0.5 } } ], 40 "conditions": [ 41 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 } 42 ] 43 }, 44 45 { 46 "type": "basic", 47 "from": { "key_code": "j", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 48 "to": [ { "pointing_button": "button1" } ], 49 "conditions": [ 50 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 } 51 ] 52 }, 53 { 54 "type": "basic", 55 "from": { "key_code": "k", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 56 "to": [ { "pointing_button": "button3" } ], 57 "conditions": [ 58 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 } 59 ] 60 }, 61 { "type": "basic", 62 "from": { "key_code": "l", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 63 "to": [ { "pointing_button": "button2" } ], 64 "conditions": [ 65 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 } 66 ] 67 }, 68 69 { 70 "type": "basic", 71 "from": { "key_code": "a", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 72 "to": [ { "mouse_key": { "horizontal_wheel": 32 } } ], 73 "conditions": [ 74 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 }, 75 { "type": "variable_if", "name": "mouse_keys_full_scroll", "value": 1 } 76 ] 77 }, 78 { 79 "type": "basic", 80 "from": { "key_code": "a", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 81 "to": [ { "mouse_key": { "x": -3072 } } ], 82 "conditions": [ { "type": "variable_if", "name": "mouse_keys_full", "value": 1 } ] 83 }, 84 85 { 86 "type": "basic", 87 "from": { "key_code": "s", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 88 "to": [ { "mouse_key": { "vertical_wheel": 32 } } ], 89 "conditions": [ 90 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 }, 91 { "type": "variable_if", "name": "mouse_keys_full_scroll", "value": 1 } 92 ] 93 }, 94 { 95 "type": "basic", 96 "from": { "key_code": "s", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 97 "to": [ { "mouse_key": { "y": 3072 } } ], 98 "conditions": [ 99 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 } 100 ] 101 }, 102 103 { 104 "type": "basic", 105 "from": { "key_code": "d", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 106 "to": [ { "mouse_key": { "horizontal_wheel": -32 } } ], 107 "conditions": [ 108 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 }, 109 { "type": "variable_if", "name": "mouse_keys_full_scroll", "value": 1 } 110 ] 111 }, 112 { 113 "type": "basic", 114 "from": { "key_code": "d", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 115 "to": [ { "mouse_key": { "x": 3072 } } ], 116 "conditions": [ 117 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 } 118 ] 119 }, 120 121 { 122 "type": "basic", 123 "from": { "key_code": "w", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 124 "to": [ { "mouse_key": { "vertical_wheel": -32 } } ], 125 "conditions": [ 126 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 }, 127 { "type": "variable_if", "name": "mouse_keys_full_scroll", "value": 1 } 128 ] 129 }, 130 { 131 "type": "basic", 132 "from": { "key_code": "w", "modifiers": { "mandatory": [ "left_option" ], "optional": [ "any" ] } }, 133 "to": [ { "mouse_key": { "y": -3072 } } ], 134 "conditions": [ 135 { "type": "variable_if", "name": "mouse_keys_full", "value": 1 } 136 ] 137 } 138 ] 139 } 140 ] 141 }