Skip to content

Instantly share code, notes, and snippets.

@szupie
Last active May 13, 2021 16:18
Show Gist options
  • Save szupie/17f5687910db460bfe6773eb87780462 to your computer and use it in GitHub Desktop.
Save szupie/17f5687910db460bfe6773eb87780462 to your computer and use it in GitHub Desktop.
my karabiner config file
{
"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": 500,
"basic.to_if_held_down_threshold_milliseconds": 500,
"mouse_motion_to_scroll.speed": 100
},
"rules": [
{
"manipulators": [
{
"description": "Change caps_lock to command.",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_gui"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
},
{
"description": "Change Ctrl + Fn + IJKL to Arrow Keys",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"right_control",
"left_shift"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"right_control",
"left_shift"
]
}
},
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"right_control",
"left_shift"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"right_control",
"left_shift"
]
}
},
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Change Fn + uiojkl to 456123",
"manipulators": [
{
"from": {
"key_code": "0",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_slash"
}
],
"type": "basic"
},
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_asterisk"
}
],
"type": "basic"
},
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_hyphen"
}
],
"type": "basic"
},
{
"from": {
"key_code": "slash",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_plus"
}
],
"type": "basic"
},
{
"from": {
"key_code": "period",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_period"
}
],
"type": "basic"
},
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_0"
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_1"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_2"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_3"
}
],
"type": "basic"
},
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_4"
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_5"
}
],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_6"
}
],
"type": "basic"
},
{
"from": {
"key_code": "7",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_7"
}
],
"type": "basic"
},
{
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_8"
}
],
"type": "basic"
},
{
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"right_control"
],
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "keypad_9"
}
],
"type": "basic"
}
]
},
{
"description": "Change ctrl/alt/super tokenisation to Windows-style",
"manipulators": [
{
"from": {
"key_code": "left_arrow",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"shift"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "right_arrow",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"shift"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "left_arrow",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "right_arrow",
"modifiers": {
"mandatory": [
"fn"
],
"optional": [
"shift"
]
}
},
"to": [
{
"key_code": "right_arrow",
"modifiers": [
"left_command"
]
}
],
"type": "basic"
},
{
"conditions": [
{
"bundle_identifiers": [
"^com\\.apple\\.finder"
],
"type": "frontmost_application_unless"
}
],
"from": {
"key_code": "delete_or_backspace",
"modifiers": {
"mandatory": [
"command"
]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"disable_built_in_keyboard_if_exists": false,
"fn_function_keys": [],
"identifiers": {
"is_keyboard": true,
"is_pointing_device": false,
"product_id": 610,
"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": 597,
"vendor_id": 1452
},
"ignore": false,
"manipulate_caps_lock_led": true,
"simple_modifications": []
}
],
"fn_function_keys": [
{
"from": {
"key_code": "f1"
},
"to": [
{
"key_code": "vk_consumer_brightness_down"
}
]
},
{
"from": {
"key_code": "f2"
},
"to": [
{
"key_code": "vk_consumer_brightness_up"
}
]
},
{
"from": {
"key_code": "f3"
},
"to": [
{
"key_code": "vk_mission_control"
}
]
},
{
"from": {
"key_code": "f4"
},
"to": [
{
"key_code": "vk_launchpad"
}
]
},
{
"from": {
"key_code": "f5"
},
"to": [
{
"key_code": "vk_consumer_illumination_down"
}
]
},
{
"from": {
"key_code": "f6"
},
"to": [
{
"key_code": "vk_consumer_illumination_up"
}
]
},
{
"from": {
"key_code": "f7"
},
"to": [
{
"key_code": "vk_consumer_previous"
}
]
},
{
"from": {
"key_code": "f8"
},
"to": [
{
"key_code": "vk_consumer_play"
}
]
},
{
"from": {
"key_code": "f9"
},
"to": [
{
"key_code": "vk_consumer_next"
}
]
},
{
"from": {
"key_code": "f10"
},
"to": [
{
"key_code": "mute"
}
]
},
{
"from": {
"key_code": "f11"
},
"to": [
{
"key_code": "volume_down"
}
]
},
{
"from": {
"key_code": "f12"
},
"to": [
{
"key_code": "volume_up"
}
]
}
],
"name": "Dv",
"one_to_many_mappings": {},
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": true,
"simple_modifications": [
{
"from": {
"key_code": "fn"
},
"to": [
{
"key_code": "right_control"
}
]
},
{
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_option"
}
]
},
{
"from": {
"key_code": "left_control"
},
"to": [
{
"key_code": "fn"
}
]
},
{
"from": {
"key_code": "left_option"
},
"to": [
{
"key_code": "left_command"
}
]
},
{
"from": {
"key_code": "right_command"
},
"to": [
{
"key_code": "right_option"
}
]
}
],
"standalone_keys": {},
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"country_code": 0,
"indicate_sticky_modifier_keys_state": true,
"keyboard_type": "ansi",
"mouse_key_xy_scale": 100,
"standalone_keys_delay_milliseconds": 200
}
},
{
"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": [],
"fn_function_keys": [
{
"from": {
"key_code": "f1"
},
"to": [
{
"key_code": "display_brightness_decrement"
}
]
},
{
"from": {
"key_code": "f2"
},
"to": [
{
"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": [
{
"key_code": "rewind"
}
]
},
{
"from": {
"key_code": "f8"
},
"to": [
{
"key_code": "play_or_pause"
}
]
},
{
"from": {
"key_code": "f9"
},
"to": [
{
"key_code": "fastforward"
}
]
},
{
"from": {
"key_code": "f10"
},
"to": [
{
"key_code": "mute"
}
]
},
{
"from": {
"key_code": "f11"
},
"to": [
{
"key_code": "volume_decrement"
}
]
},
{
"from": {
"key_code": "f12"
},
"to": [
{
"key_code": "volume_increment"
}
]
}
],
"name": "Disabled",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": false,
"simple_modifications": [],
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"country_code": 0,
"indicate_sticky_modifier_keys_state": true,
"keyboard_type": "ansi",
"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": [
{
"description": "Remap keys to use Programmer Dvorak-CmdQwerty keyboard layout",
"manipulators": [
{
"from": {
"key_code": "grave_accent_and_tilde"
},
"to": [
{
"key_code": "4",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
],
"type": "basic"
},
{
"from": {
"key_code": "grave_accent_and_tilde",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
],
"type": "basic"
},
{
"from": {
"key_code": "1"
},
"to": [
{
"key_code": "7",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "5",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "5",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "2"
},
"to": [
{
"key_code": "open_bracket"
}
],
"type": "basic"
},
{
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "7"
}
],
"type": "basic"
},
{
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "7"
}
],
"type": "basic"
},
{
"from": {
"key_code": "3"
},
"to": [
{
"key_code": "open_bracket",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "5"
}
],
"type": "basic"
},
{
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "5"
}
],
"type": "basic"
},
{
"from": {
"key_code": "4"
},
"to": [
{
"key_code": "close_bracket",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "3"
}
],
"type": "basic"
},
{
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "3"
}
],
"type": "basic"
},
{
"from": {
"key_code": "5"
},
"to": [
{
"key_code": "9",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "5",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "1"
}
],
"type": "basic"
},
{
"from": {
"key_code": "5",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "1"
}
],
"type": "basic"
},
{
"from": {
"key_code": "6"
},
"to": [
{
"key_code": "equal_sign"
}
],
"type": "basic"
},
{
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "9"
}
],
"type": "basic"
},
{
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "9"
}
],
"type": "basic"
},
{
"from": {
"key_code": "7"
},
"to": [
{
"key_code": "8",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "7",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "0"
}
],
"type": "basic"
},
{
"from": {
"key_code": "7",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "0"
}
],
"type": "basic"
},
{
"from": {
"key_code": "8"
},
"to": [
{
"key_code": "0",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "2"
}
],
"type": "basic"
},
{
"from": {
"key_code": "8",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "2"
}
],
"type": "basic"
},
{
"from": {
"key_code": "9"
},
"to": [
{
"key_code": "equal_sign",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "4"
}
],
"type": "basic"
},
{
"from": {
"key_code": "9",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "4"
}
],
"type": "basic"
},
{
"from": {
"key_code": "0"
},
"to": [
{
"key_code": "close_bracket"
}
],
"type": "basic"
},
{
"from": {
"key_code": "0",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "6"
}
],
"type": "basic"
},
{
"from": {
"key_code": "0",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "6"
}
],
"type": "basic"
},
{
"from": {
"key_code": "hyphen"
},
"to": [
{
"key_code": "1",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "hyphen",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "8"
}
],
"type": "basic"
},
{
"from": {
"key_code": "hyphen",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "8"
}
],
"type": "basic"
},
{
"from": {
"key_code": "equal_sign"
},
"to": [
{
"key_code": "3",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "equal_sign",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
],
"type": "basic"
},
{
"from": {
"key_code": "equal_sign",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "grave_accent_and_tilde"
}
],
"type": "basic"
},
{
"from": {
"key_code": "q"
},
"to": [
{
"key_code": "semicolon"
}
],
"type": "basic"
},
{
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "semicolon",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "semicolon",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "w"
},
"to": [
{
"key_code": "comma"
}
],
"type": "basic"
},
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "comma",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "comma",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "e"
},
"to": [
{
"key_code": "period"
}
],
"type": "basic"
},
{
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "period",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "period",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "r"
},
"to": [
{
"key_code": "p"
}
],
"type": "basic"
},
{
"from": {
"key_code": "r",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "p",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "r",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "p",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "t"
},
"to": [
{
"key_code": "y"
}
],
"type": "basic"
},
{
"from": {
"key_code": "t",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "y",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "t",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "y",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "y"
},
"to": [
{
"key_code": "f"
}
],
"type": "basic"
},
{
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "f",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "f",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "u"
},
"to": [
{
"key_code": "g"
}
],
"type": "basic"
},
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "g",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "g",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "i"
},
"to": [
{
"key_code": "c"
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "c",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "c",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "o"
},
"to": [
{
"key_code": "r"
}
],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "r",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "r",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "p"
},
"to": [
{
"key_code": "l"
}
],
"type": "basic"
},
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "l",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "l",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "open_bracket"
},
"to": [
{
"key_code": "slash"
}
],
"type": "basic"
},
{
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "slash",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "open_bracket",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "slash",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "close_bracket"
},
"to": [
{
"key_code": "2",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "close_bracket",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "6",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "close_bracket",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "6",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "backslash"
},
"to": [
{
"key_code": "backslash"
}
],
"type": "basic"
},
{
"from": {
"key_code": "backslash",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "backslash",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "backslash",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "backslash",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "a"
},
"to": [
{
"key_code": "a"
}
],
"type": "basic"
},
{
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "a",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "s"
},
"to": [
{
"key_code": "o"
}
],
"type": "basic"
},
{
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "o",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "o",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "d"
},
"to": [
{
"key_code": "e"
}
],
"type": "basic"
},
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "e",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "e",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "f"
},
"to": [
{
"key_code": "u"
}
],
"type": "basic"
},
{
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "u",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "u",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "g"
},
"to": [
{
"key_code": "i"
}
],
"type": "basic"
},
{
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "i",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "i",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "h"
},
"to": [
{
"key_code": "d"
}
],
"type": "basic"
},
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "d",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "d",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "j"
},
"to": [
{
"key_code": "h"
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "h",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "h",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "k"
},
"to": [
{
"key_code": "t"
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "t",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "t",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "l"
},
"to": [
{
"key_code": "n"
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "n",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "n",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "semicolon"
},
"to": [
{
"key_code": "s"
}
],
"type": "basic"
},
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "s",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "s",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "quote"
},
"to": [
{
"key_code": "hyphen"
}
],
"type": "basic"
},
{
"from": {
"key_code": "quote",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "hyphen",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "quote",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "hyphen",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "z"
},
"to": [
{
"key_code": "quote"
}
],
"type": "basic"
},
{
"from": {
"key_code": "z",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "quote",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "z",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "quote",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "x"
},
"to": [
{
"key_code": "q"
}
],
"type": "basic"
},
{
"from": {
"key_code": "x",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "q",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "x",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "q",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "c"
},
"to": [
{
"key_code": "j"
}
],
"type": "basic"
},
{
"from": {
"key_code": "c",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "j",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "c",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "j",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "v"
},
"to": [
{
"key_code": "k"
}
],
"type": "basic"
},
{
"from": {
"key_code": "v",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "k",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "v",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "k",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "b"
},
"to": [
{
"key_code": "x"
}
],
"type": "basic"
},
{
"from": {
"key_code": "b",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "x",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "b",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "x",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "n"
},
"to": [
{
"key_code": "b"
}
],
"type": "basic"
},
{
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "b",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "n",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "b",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "m"
},
"to": [
{
"key_code": "m"
}
],
"type": "basic"
},
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "m",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "m",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "m",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "comma"
},
"to": [
{
"key_code": "w"
}
],
"type": "basic"
},
{
"from": {
"key_code": "comma",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "w",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "comma",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "w",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "period"
},
"to": [
{
"key_code": "v"
}
],
"type": "basic"
},
{
"from": {
"key_code": "period",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "v",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "period",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "v",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "slash"
},
"to": [
{
"key_code": "z"
}
],
"type": "basic"
},
{
"from": {
"key_code": "slash",
"modifiers": {
"mandatory": [
"left_shift"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"left_shift"
]
}
],
"type": "basic"
},
{
"from": {
"key_code": "slash",
"modifiers": {
"mandatory": [
"right_shift"
]
}
},
"to": [
{
"key_code": "z",
"modifiers": [
"right_shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "Change ctrl/alt/super tokenisation to Windows-style",
"manipulators": [
{
"from": {
"key_code": "left_arrow",
"modifiers": {
"mandatory": [
"command"
],
"optional": [
"shift"
]
}
},
"to": [
{
"key_code": "left_arrow",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
},
{
"description": "Numeric Keypad Mode [Tab as trigger key]",
"manipulators": [
{
"from": {
"key_code": "tab"
},
"to": [
{
"set_variable": {
"name": "numeric_keypad_mode",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "numeric_keypad_mode",
"value": 0
}
}
],
"to_if_alone": [
{
"key_code": "tab"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "7"
},
"to": [
{
"key_code": "delete_or_backspace"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "8"
},
"to": [
{
"key_code": "keypad_equal_sign"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "9"
},
"to": [
{
"key_code": "keypad_slash"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "0"
},
"to": [
{
"key_code": "keypad_asterisk"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "u"
},
"to": [
{
"key_code": "keypad_7"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "i"
},
"to": [
{
"key_code": "keypad_8"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "o"
},
"to": [
{
"key_code": "keypad_9"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "p"
},
"to": [
{
"key_code": "keypad_hyphen"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "j"
},
"to": [
{
"key_code": "keypad_4"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "k"
},
"to": [
{
"key_code": "keypad_5"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "l"
},
"to": [
{
"key_code": "keypad_6"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "semicolon"
},
"to": [
{
"key_code": "keypad_plus"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "m"
},
"to": [
{
"key_code": "keypad_1"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "comma"
},
"to": [
{
"key_code": "keypad_2"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "period"
},
"to": [
{
"key_code": "keypad_3"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "slash"
},
"to": [
{
"key_code": "keypad_enter"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "spacebar"
},
"to": [
{
"key_code": "keypad_0"
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "numeric_keypad_mode",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "right_option"
},
"to": [
{
"key_code": "keypad_period"
}
],
"type": "basic"
}
]
}
]
},
"devices": [],
"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": "test",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": false,
"simple_modifications": [],
"virtual_hid_keyboard": {
"caps_lock_delay_milliseconds": 0,
"country_code": 0,
"indicate_sticky_modifier_keys_state": true,
"keyboard_type": "ansi",
"mouse_key_xy_scale": 100
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment