Created
November 19, 2021 09:55
-
-
Save spacelatte/3bdf280f4b6eccccb4a6c4590f3e2356 to your computer and use it in GitHub Desktop.
#karabiner #keyboard #kbd #mapping #map
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "global": { | |
| "check_for_updates_on_startup": true, | |
| "show_in_menu_bar": false, | |
| "show_profile_name_in_menu_bar": false | |
| }, | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "parameters": { | |
| "basic.simultaneous_threshold_milliseconds": 50, | |
| "basic.to_delayed_action_delay_milliseconds": 500, | |
| "basic.to_if_alone_timeout_milliseconds": 1000, | |
| "basic.to_if_held_down_threshold_milliseconds": 500, | |
| "mouse_motion_to_scroll.speed": 100 | |
| }, | |
| "rules": [ | |
| { | |
| "description": "Change caps_lock key to command+control+option+shift if pressed with other keys", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "caps_lock", | |
| "modifiers": { | |
| "optional": [ | |
| "any" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_option", | |
| "modifiers": [ | |
| "left_command", | |
| "left_control" | |
| ] | |
| } | |
| ], | |
| "to_if_alone": [ | |
| { | |
| "hold_down_milliseconds": 100, | |
| "key_code": "caps_lock" | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Quit application by pressing command-q twice", | |
| "manipulators": [ | |
| { | |
| "conditions": [ | |
| { | |
| "name": "command-q", | |
| "type": "variable_if", | |
| "value": 1 | |
| } | |
| ], | |
| "from": { | |
| "key_code": "q", | |
| "modifiers": { | |
| "mandatory": [ | |
| "command" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "q", | |
| "modifiers": "left_command" | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "q", | |
| "modifiers": { | |
| "mandatory": [ | |
| "command" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "set_variable": { | |
| "name": "command-q", | |
| "value": 1 | |
| } | |
| } | |
| ], | |
| "to_delayed_action": { | |
| "to_if_canceled": [ | |
| { | |
| "set_variable": { | |
| "name": "command-q", | |
| "value": 0 | |
| } | |
| } | |
| ], | |
| "to_if_invoked": [ | |
| { | |
| "set_variable": { | |
| "name": "command-q", | |
| "value": 0 | |
| } | |
| } | |
| ] | |
| }, | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Better Shifting: Parentheses on shift keys", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "left_shift" | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_shift" | |
| } | |
| ], | |
| "to_if_alone": [ | |
| { | |
| "key_code": "9", | |
| "modifiers": [ | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "right_shift" | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "right_shift" | |
| } | |
| ], | |
| "to_if_alone": [ | |
| { | |
| "key_code": "0", | |
| "modifiers": [ | |
| "right_shift" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Better Shifting: Shift rolls", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "left_shift", | |
| "modifiers": { | |
| "mandatory": [ | |
| "right_shift" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "left_shift" | |
| }, | |
| { | |
| "key_code": "right_shift" | |
| } | |
| ], | |
| "to_if_alone": [ | |
| { | |
| "key_code": "0", | |
| "modifiers": [ | |
| "right_shift", | |
| "left_shift" | |
| ] | |
| }, | |
| { | |
| "key_code": "9", | |
| "modifiers": [ | |
| "right_shift", | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "right_shift", | |
| "modifiers": { | |
| "mandatory": [ | |
| "left_shift" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "right_shift" | |
| }, | |
| { | |
| "key_code": "left_shift" | |
| } | |
| ], | |
| "to_if_alone": [ | |
| { | |
| "key_code": "9", | |
| "modifiers": [ | |
| "right_shift" | |
| ] | |
| }, | |
| { | |
| "key_code": "0", | |
| "modifiers": [ | |
| "right_shift" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Eject to Screenshot", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "consumer_key_code": "eject" | |
| }, | |
| "to": [ | |
| { | |
| "key_code": "5", | |
| "modifiers": [ | |
| "left_command", | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Launch apps by left control & option+letters.", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "a", | |
| "modifiers": { | |
| "mandatory": [ | |
| "left_control", | |
| "left_option" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "shell_command": "open '/System/Applications/Utilities/Activity Monitor.app'" | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "d", | |
| "modifiers": { | |
| "mandatory": [ | |
| "left_control", | |
| "left_option" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "shell_command": "open '/System/Applications/Dictionary.app'" | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "e", | |
| "modifiers": { | |
| "mandatory": [ | |
| "left_control", | |
| "left_option" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "shell_command": "open '/Applications/Visual Studio Code.app'" | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f", | |
| "modifiers": { | |
| "mandatory": [ | |
| "left_control", | |
| "left_option" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "shell_command": "open ~" | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "s", | |
| "modifiers": { | |
| "mandatory": [ | |
| "left_control", | |
| "left_option" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "shell_command": "open '/Applications/Safari.app'" | |
| } | |
| ], | |
| "type": "basic" | |
| }, | |
| { | |
| "from": { | |
| "key_code": "t", | |
| "modifiers": { | |
| "mandatory": [ | |
| "left_control", | |
| "left_option" | |
| ], | |
| "optional": [ | |
| "caps_lock" | |
| ] | |
| } | |
| }, | |
| "to": [ | |
| { | |
| "shell_command": "open '/Applications/iTerm.app'" | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Clipboard Screenshot FN", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "escape", | |
| "modifiers": { | |
| "mandatory": [ | |
| "fn" | |
| ] | |
| } | |
| }, | |
| "to_after_key_up": [ | |
| { | |
| "key_code": "4", | |
| "modifiers": [ | |
| "left_command", | |
| "left_control", | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| }, | |
| { | |
| "description": "Clipboard Screenshot R_Option", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "escape", | |
| "modifiers": { | |
| "mandatory": [ | |
| "right_option" | |
| ] | |
| } | |
| }, | |
| "to_after_key_up": [ | |
| { | |
| "key_code": "4", | |
| "modifiers": [ | |
| "left_command", | |
| "left_control", | |
| "left_shift" | |
| ] | |
| } | |
| ], | |
| "type": "basic" | |
| } | |
| ] | |
| } | |
| ] | |
| }, | |
| "devices": [ | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 630, | |
| "vendor_id": 1452 | |
| }, | |
| "ignore": false, | |
| "manipulate_caps_lock_led": true, | |
| "simple_modifications": [ | |
| { | |
| "from": { | |
| "key_code": "fn" | |
| }, | |
| "to": { | |
| "key_code": "left_control" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "left_control" | |
| }, | |
| "to": { | |
| "key_code": "fn" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 45890, | |
| "vendor_id": 1133 | |
| }, | |
| "ignore": true, | |
| "manipulate_caps_lock_led": false, | |
| "simple_modifications": [] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 50484, | |
| "vendor_id": 1133 | |
| }, | |
| "ignore": true, | |
| "manipulate_caps_lock_led": false, | |
| "simple_modifications": [] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 638, | |
| "vendor_id": 1452 | |
| }, | |
| "ignore": false, | |
| "manipulate_caps_lock_led": true, | |
| "simple_modifications": [ | |
| { | |
| "from": { | |
| "key_code": "fn" | |
| }, | |
| "to": { | |
| "key_code": "left_control" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "left_control" | |
| }, | |
| "to": { | |
| "key_code": "fn" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 34304, | |
| "vendor_id": 1452 | |
| }, | |
| "ignore": true, | |
| "manipulate_caps_lock_led": false, | |
| "simple_modifications": [] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": true, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 2048, | |
| "vendor_id": 1118 | |
| }, | |
| "ignore": false, | |
| "manipulate_caps_lock_led": false, | |
| "simple_modifications": [ | |
| { | |
| "from": { | |
| "key_code": "grave_accent_and_tilde" | |
| }, | |
| "to": { | |
| "key_code": "non_us_backslash" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "left_command" | |
| }, | |
| "to": { | |
| "key_code": "left_option" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "left_option" | |
| }, | |
| "to": { | |
| "key_code": "left_command" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "non_us_backslash" | |
| }, | |
| "to": { | |
| "key_code": "grave_accent_and_tilde" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "right_option" | |
| }, | |
| "to": { | |
| "key_code": "right_option" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": false, | |
| "is_pointing_device": true, | |
| "product_id": 2048, | |
| "vendor_id": 1118 | |
| }, | |
| "ignore": true, | |
| "manipulate_caps_lock_led": false, | |
| "simple_modifications": [] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": true, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 591, | |
| "vendor_id": 1452 | |
| }, | |
| "ignore": false, | |
| "manipulate_caps_lock_led": true, | |
| "simple_modifications": [ | |
| { | |
| "from": { | |
| "key_code": "home" | |
| }, | |
| "to": { | |
| "key_code": "page_down" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "page_down" | |
| }, | |
| "to": { | |
| "key_code": "page_up" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "page_up" | |
| }, | |
| "to": { | |
| "key_code": "home" | |
| } | |
| } | |
| ] | |
| } | |
| ], | |
| "fn_function_keys": [ | |
| { | |
| "from": { | |
| "key_code": "f1" | |
| }, | |
| "to": { | |
| "consumer_key_code": "display_brightness_decrement" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f2" | |
| }, | |
| "to": { | |
| "consumer_key_code": "display_brightness_increment" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f3" | |
| }, | |
| "to": { | |
| "key_code": "mission_control" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f4" | |
| }, | |
| "to": { | |
| "key_code": "launchpad" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f5" | |
| }, | |
| "to": { | |
| "key_code": "illumination_decrement" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f6" | |
| }, | |
| "to": { | |
| "key_code": "illumination_increment" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f7" | |
| }, | |
| "to": { | |
| "consumer_key_code": "rewind" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f8" | |
| }, | |
| "to": { | |
| "consumer_key_code": "play_or_pause" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f9" | |
| }, | |
| "to": { | |
| "consumer_key_code": "fastforward" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f10" | |
| }, | |
| "to": { | |
| "consumer_key_code": "mute" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f11" | |
| }, | |
| "to": { | |
| "consumer_key_code": "volume_decrement" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f12" | |
| }, | |
| "to": { | |
| "consumer_key_code": "volume_increment" | |
| } | |
| } | |
| ], | |
| "name": "code", | |
| "parameters": { | |
| "delay_milliseconds_before_open_device": 1000 | |
| }, | |
| "selected": true, | |
| "simple_modifications": [], | |
| "virtual_hid_keyboard": { | |
| "country_code": 0, | |
| "mouse_key_xy_scale": 100 | |
| } | |
| }, | |
| { | |
| "complex_modifications": { | |
| "parameters": { | |
| "basic.simultaneous_threshold_milliseconds": 50, | |
| "basic.to_delayed_action_delay_milliseconds": 500, | |
| "basic.to_if_alone_timeout_milliseconds": 1000, | |
| "basic.to_if_held_down_threshold_milliseconds": 500, | |
| "mouse_motion_to_scroll.speed": 100 | |
| }, | |
| "rules": [] | |
| }, | |
| "devices": [ | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 638, | |
| "vendor_id": 1452 | |
| }, | |
| "ignore": false, | |
| "manipulate_caps_lock_led": true, | |
| "simple_modifications": [ | |
| { | |
| "from": { | |
| "key_code": "fn" | |
| }, | |
| "to": { | |
| "key_code": "left_control" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "left_control" | |
| }, | |
| "to": { | |
| "key_code": "fn" | |
| } | |
| } | |
| ] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 34304, | |
| "vendor_id": 1452 | |
| }, | |
| "ignore": false, | |
| "manipulate_caps_lock_led": true, | |
| "simple_modifications": [] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 2048, | |
| "vendor_id": 1118 | |
| }, | |
| "ignore": false, | |
| "manipulate_caps_lock_led": false, | |
| "simple_modifications": [] | |
| }, | |
| { | |
| "disable_built_in_keyboard_if_exists": false, | |
| "fn_function_keys": [], | |
| "identifiers": { | |
| "is_keyboard": true, | |
| "is_pointing_device": false, | |
| "product_id": 50484, | |
| "vendor_id": 1133 | |
| }, | |
| "ignore": false, | |
| "manipulate_caps_lock_led": false, | |
| "simple_modifications": [] | |
| } | |
| ], | |
| "fn_function_keys": [ | |
| { | |
| "from": { | |
| "key_code": "f1" | |
| }, | |
| "to": { | |
| "consumer_key_code": "display_brightness_decrement" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f2" | |
| }, | |
| "to": { | |
| "consumer_key_code": "display_brightness_increment" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f3" | |
| }, | |
| "to": { | |
| "key_code": "mission_control" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f4" | |
| }, | |
| "to": { | |
| "key_code": "launchpad" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f5" | |
| }, | |
| "to": { | |
| "key_code": "illumination_decrement" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f6" | |
| }, | |
| "to": { | |
| "key_code": "illumination_increment" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f7" | |
| }, | |
| "to": { | |
| "consumer_key_code": "rewind" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f8" | |
| }, | |
| "to": { | |
| "consumer_key_code": "play_or_pause" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f9" | |
| }, | |
| "to": { | |
| "consumer_key_code": "fast_forward" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f10" | |
| }, | |
| "to": { | |
| "consumer_key_code": "mute" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f11" | |
| }, | |
| "to": { | |
| "consumer_key_code": "volume_decrement" | |
| } | |
| }, | |
| { | |
| "from": { | |
| "key_code": "f12" | |
| }, | |
| "to": { | |
| "consumer_key_code": "volume_increment" | |
| } | |
| } | |
| ], | |
| "name": "game", | |
| "parameters": { | |
| "delay_milliseconds_before_open_device": 1000 | |
| }, | |
| "selected": false, | |
| "simple_modifications": [], | |
| "virtual_hid_keyboard": { | |
| "country_code": 0, | |
| "mouse_key_xy_scale": 100 | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment