From 9b765e3d6c7956eb93cc79ba294b7e536cf46007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Mon, 15 Aug 2022 23:43:49 +0200 Subject: [PATCH] Added the mouse in the Karabiner using a ctrl+hjkl --- .../complex_modifications/1660598768.json | 1 + .config/karabiner/karabiner.json | 394 +++++++++++++++++- 2 files changed, 384 insertions(+), 11 deletions(-) create mode 100644 .config/karabiner/assets/complex_modifications/1660598768.json diff --git a/.config/karabiner/assets/complex_modifications/1660598768.json b/.config/karabiner/assets/complex_modifications/1660598768.json new file mode 100644 index 0000000..6ad8a73 --- /dev/null +++ b/.config/karabiner/assets/complex_modifications/1660598768.json @@ -0,0 +1 @@ +{"title":"Mouse keys ambidextrous - yorune","rules":[{"description":"Mouse keys Ambidextrous","manipulators":[{"from":{"key_code":"k","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"vertical_wheel":-64}}],"type":"basic"},{"from":{"key_code":"j","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"vertical_wheel":64}}],"type":"basic"},{"from":{"key_code":"h","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"horizontal_wheel":64}}],"type":"basic"},{"from":{"key_code":"l","modifiers":{"mandatory":["fn"],"optional":["any"]}},"to":[{"mouse_key":{"horizontal_wheel":-64}}],"type":"basic"},{"from":{"key_code":"h","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"x":-16072}}],"type":"basic"},{"from":{"key_code":"j","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"y":16072}}],"type":"basic"},{"from":{"key_code":"k","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"y":-16072}}],"type":"basic"},{"from":{"key_code":"l","modifiers":{"mandatory":["left_control","left_shift"],"optional":["any"]}},"to":[{"mouse_key":{"x":16072}}],"type":"basic"},{"from":{"key_code":"u","modifiers":{"mandatory":["left_control"],"optional":["any"]}},"to":[{"pointing_button":"button1"}],"type":"basic"},{"from":{"key_code":"o","modifiers":{"mandatory":["left_control"],"optional":["any"]}},"to":[{"pointing_button":"button2"}],"type":"basic"},{"from":{"key_code":"h","modifiers":{"mandatory":["left_control"],"optional":["any"]}},"to":[{"mouse_key":{"x":-1018}}],"type":"basic"},{"from":{"key_code":"j","modifiers":{"mandatory":["left_control"],"optional":["any"]}},"to":[{"mouse_key":{"y":1018}}],"type":"basic"},{"from":{"key_code":"k","modifiers":{"mandatory":["left_control"],"optional":["any"]}},"to":[{"mouse_key":{"y":-1018}}],"type":"basic"},{"from":{"key_code":"l","modifiers":{"mandatory":["left_control"],"optional":["any"]}},"to":[{"mouse_key":{"x":1018}}],"type":"basic"},{"from":{"key_code":"q","modifiers":{"mandatory":["left_control"],"optional":["any"]}},"to":[{"pointing_button":"button1"}],"type":"basic"},{"from":{"key_code":"e","modifiers":{"mandatory":["left_control"],"optional":["any"]}},"to":[{"pointing_button":"button2"}],"type":"basic"}]}]} \ No newline at end of file diff --git a/.config/karabiner/karabiner.json b/.config/karabiner/karabiner.json index 1de017a..e127036 100644 --- a/.config/karabiner/karabiner.json +++ b/.config/karabiner/karabiner.json @@ -2,7 +2,8 @@ "global": { "check_for_updates_on_startup": true, "show_in_menu_bar": false, - "show_profile_name_in_menu_bar": false + "show_profile_name_in_menu_bar": false, + "unsafe_ui": false }, "profiles": [ { @@ -95,6 +96,343 @@ "type": "basic" } ] + }, + { + "description": "Mouse keys Ambidextrous", + "manipulators": [ + { + "from": { + "key_code": "k", + "modifiers": { + "mandatory": [ + "fn" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "vertical_wheel": -64 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "j", + "modifiers": { + "mandatory": [ + "fn" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "vertical_wheel": 64 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "h", + "modifiers": { + "mandatory": [ + "fn" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "horizontal_wheel": 64 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "l", + "modifiers": { + "mandatory": [ + "fn" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "horizontal_wheel": -64 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "h", + "modifiers": { + "mandatory": [ + "left_control", + "left_shift" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "x": -16072 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "j", + "modifiers": { + "mandatory": [ + "left_control", + "left_shift" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "y": 16072 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "k", + "modifiers": { + "mandatory": [ + "left_control", + "left_shift" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "y": -16072 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "l", + "modifiers": { + "mandatory": [ + "left_control", + "left_shift" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "x": 16072 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "u", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "pointing_button": "button1" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "o", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "pointing_button": "button2" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "h", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "x": -1018 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "j", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "y": 1018 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "k", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "y": -1018 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "l", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "mouse_key": { + "x": 1018 + } + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "q", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "pointing_button": "button1" + } + ], + "type": "basic" + }, + { + "from": { + "key_code": "e", + "modifiers": { + "mandatory": [ + "left_control" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "pointing_button": "button2" + } + ], + "type": "basic" + } + ] } ] }, @@ -192,6 +530,16 @@ } ] }, + { + "from": { + "key_code": "escape" + }, + "to": [ + { + "key_code": "grave_accent_and_tilde" + } + ] + }, { "from": { "key_code": "left_arrow" @@ -252,7 +600,8 @@ } ] } - ] + ], + "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, @@ -286,7 +635,8 @@ } ] } - ] + ], + "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, @@ -299,7 +649,8 @@ }, "ignore": true, "manipulate_caps_lock_led": true, - "simple_modifications": [] + "simple_modifications": [], + "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, @@ -312,7 +663,8 @@ }, "ignore": true, "manipulate_caps_lock_led": false, - "simple_modifications": [] + "simple_modifications": [], + "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, @@ -336,7 +688,8 @@ } ] } - ] + ], + "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, @@ -360,7 +713,8 @@ } ] } - ] + ], + "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, @@ -373,7 +727,8 @@ }, "ignore": false, "manipulate_caps_lock_led": true, - "simple_modifications": [] + "simple_modifications": [], + "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, @@ -407,7 +762,8 @@ } ] } - ] + ], + "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, @@ -420,7 +776,8 @@ }, "ignore": true, "manipulate_caps_lock_led": false, - "simple_modifications": [] + "simple_modifications": [], + "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, @@ -433,7 +790,22 @@ }, "ignore": false, "manipulate_caps_lock_led": true, - "simple_modifications": [] + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "identifiers": { + "is_keyboard": true, + "is_pointing_device": true, + "product_id": 45081, + "vendor_id": 1133 + }, + "ignore": true, + "manipulate_caps_lock_led": true, + "simple_modifications": [], + "treat_as_built_in_keyboard": false } ], "fn_function_keys": [