dotfiles

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

commit c0dc44ea020bbe4d24e81a15dc46426bb8e04963
parent 660bd9a6a5e74d84c5455eb056b958ee8c450dda
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Tue,  6 Aug 2024 22:51:41 +0200

karabiner: keybindings

Diffstat:
Akarabiner/assets/complex_modifications/1705192176.json | 407+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mkarabiner/karabiner.json | 194++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------
2 files changed, 580 insertions(+), 21 deletions(-)

diff --git a/karabiner/assets/complex_modifications/1705192176.json b/karabiner/assets/complex_modifications/1705192176.json @@ -0,0 +1,407 @@ +{ + "title": "Numeric Keypad", + "rules": [ + { + "description": "Numeric Keypad Mode [Tab as trigger key]", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "tab" + }, + "to": [ + { + "set_variable": { + "name": "numeric_keypad_mode", + "value": 1 + } + } + ], + "to_if_alone": [ + { + "key_code": "tab" + } + ], + "to_after_key_up": [ + { + "set_variable": { + "name": "numeric_keypad_mode", + "value": 0 + } + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "7" + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "8" + }, + "to": [ + { + "key_code": "keypad_equal_sign" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "9" + }, + "to": [ + { + "key_code": "keypad_slash" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "0" + }, + "to": [ + { + "key_code": "keypad_asterisk" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "u" + }, + "to": [ + { + "key_code": "keypad_7" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "i" + }, + "to": [ + { + "key_code": "keypad_8" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "o" + }, + "to": [ + { + "key_code": "keypad_9" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "p" + }, + "to": [ + { + "key_code": "keypad_hyphen" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "j" + }, + "to": [ + { + "key_code": "keypad_4" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "k" + }, + "to": [ + { + "key_code": "keypad_5" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "l" + }, + "to": [ + { + "key_code": "keypad_6" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "semicolon" + }, + "to": [ + { + "key_code": "keypad_plus" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "m" + }, + "to": [ + { + "key_code": "keypad_1" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "comma" + }, + "to": [ + { + "key_code": "keypad_2" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "period" + }, + "to": [ + { + "key_code": "keypad_3" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "slash" + }, + "to": [ + { + "key_code": "keypad_enter" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "spacebar" + }, + "to": [ + { + "key_code": "keypad_0" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "right_option" + }, + "to": [ + { + "key_code": "keypad_period" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + } + ] + }, + { + "description": "Numeric Keypad Mode Trigger + right_option to keypad_period", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "right_option" + }, + "to": [ + { + "key_code": "keypad_period" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + } + ] + }, + { + "description": "Numeric Keypad Mode Trigger + right_control to keypad_period", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "right_control" + }, + "to": [ + { + "key_code": "keypad_period" + } + ], + "conditions": [ + { + "type": "variable_if", + "name": "numeric_keypad_mode", + "value": 1 + } + ] + } + ] + } + ] +} diff --git a/karabiner/karabiner.json b/karabiner/karabiner.json @@ -1,7 +1,7 @@ { "global": { "ask_for_confirmation_before_quitting": true, - "check_for_updates_on_startup": true, + "check_for_updates_on_startup": false, "show_in_menu_bar": true, "show_profile_name_in_menu_bar": false, "unsafe_ui": false @@ -560,7 +560,9 @@ { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": true, "is_pointing_device": false, "product_id": 50481, @@ -568,6 +570,12 @@ }, "ignore": true, "manipulate_caps_lock_led": false, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [], "treat_as_built_in_keyboard": false }, @@ -595,7 +603,9 @@ ] } ], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": true, "is_pointing_device": false, "product_id": 570, @@ -603,13 +613,21 @@ }, "ignore": false, "manipulate_caps_lock_led": true, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [], "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": true, "is_pointing_device": false, "product_id": 594, @@ -617,6 +635,12 @@ }, "ignore": false, "manipulate_caps_lock_led": true, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [], "treat_as_built_in_keyboard": false }, @@ -644,7 +668,9 @@ ] } ], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": true, "is_pointing_device": false, "product_id": 49276, @@ -652,6 +678,12 @@ }, "ignore": false, "manipulate_caps_lock_led": false, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [ { "from": { @@ -679,7 +711,9 @@ { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": true, "is_pointing_device": false, "product_id": 2113, @@ -687,6 +721,12 @@ }, "ignore": false, "manipulate_caps_lock_led": false, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [ { "from": { @@ -764,7 +804,9 @@ { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": true, "is_pointing_device": false, "product_id": 595, @@ -772,6 +814,12 @@ }, "ignore": false, "manipulate_caps_lock_led": true, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [ { "from": { @@ -869,7 +917,9 @@ { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": false, "is_pointing_device": true, "product_id": 595, @@ -877,13 +927,21 @@ }, "ignore": true, "manipulate_caps_lock_led": false, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [], "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": true, "is_pointing_device": false, "product_id": 50475, @@ -891,6 +949,12 @@ }, "ignore": false, "manipulate_caps_lock_led": true, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [ { "from": { @@ -958,7 +1022,9 @@ { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": false, "is_pointing_device": true, "product_id": 50475, @@ -966,13 +1032,21 @@ }, "ignore": true, "manipulate_caps_lock_led": false, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [], "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": true, "is_pointing_device": false, "product_id": 49948, @@ -980,6 +1054,12 @@ }, "ignore": false, "manipulate_caps_lock_led": true, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [ { "from": { @@ -1077,7 +1157,9 @@ { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": false, "is_pointing_device": true, "product_id": 473, @@ -1085,6 +1167,12 @@ }, "ignore": false, "manipulate_caps_lock_led": false, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [ { "from": { @@ -1102,7 +1190,9 @@ { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": true, "is_pointing_device": false, "product_id": 9483, @@ -1110,6 +1200,12 @@ }, "ignore": false, "manipulate_caps_lock_led": true, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [ { "from": { @@ -1187,7 +1283,9 @@ { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": false, "is_pointing_device": true, "product_id": 9482, @@ -1195,6 +1293,12 @@ }, "ignore": false, "manipulate_caps_lock_led": false, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [ { "from": { @@ -1222,7 +1326,9 @@ { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": false, "is_pointing_device": true, "product_id": 49276, @@ -1230,13 +1336,21 @@ }, "ignore": true, "manipulate_caps_lock_led": false, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [], "treat_as_built_in_keyboard": false }, { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": true, "is_pointing_device": false, "product_id": 12316, @@ -1244,6 +1358,12 @@ }, "ignore": false, "manipulate_caps_lock_led": true, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [ { "from": { @@ -1304,26 +1424,6 @@ "key_code": "application" } ] - }, - { - "from": { - "key_code": "left_option" - }, - "to": [ - { - "key_code": "left_command" - } - ] - }, - { - "from": { - "key_code": "left_command" - }, - "to": [ - { - "key_code": "left_option" - } - ] } ], "treat_as_built_in_keyboard": false @@ -1331,7 +1431,9 @@ { "disable_built_in_keyboard_if_exists": false, "fn_function_keys": [], + "game_pad_swap_sticks": false, "identifiers": { + "is_game_pad": false, "is_keyboard": false, "is_pointing_device": true, "product_id": 12316, @@ -1339,6 +1441,12 @@ }, "ignore": false, "manipulate_caps_lock_led": false, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, "simple_modifications": [ { "from": { @@ -1362,6 +1470,50 @@ } ], "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "game_pad_swap_sticks": false, + "identifiers": { + "is_game_pad": false, + "is_keyboard": true, + "is_pointing_device": false, + "product_id": 33290, + "vendor_id": 1452 + }, + "ignore": false, + "manipulate_caps_lock_led": true, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false + }, + { + "disable_built_in_keyboard_if_exists": false, + "fn_function_keys": [], + "game_pad_swap_sticks": false, + "identifiers": { + "is_game_pad": false, + "is_keyboard": false, + "is_pointing_device": true, + "product_id": 33291, + "vendor_id": 1452 + }, + "ignore": true, + "manipulate_caps_lock_led": false, + "mouse_flip_horizontal_wheel": false, + "mouse_flip_vertical_wheel": false, + "mouse_flip_x": false, + "mouse_flip_y": false, + "mouse_swap_wheels": false, + "mouse_swap_xy": false, + "simple_modifications": [], + "treat_as_built_in_keyboard": false } ], "fn_function_keys": [