Skip to content

Instantly share code, notes, and snippets.

@syuji-higa
Last active October 11, 2024 09:14
Show Gist options
  • Select an option

  • Save syuji-higa/521d0ef7f3a0e2c593064d99c9c4199e to your computer and use it in GitHub Desktop.

Select an option

Save syuji-higa/521d0ef7f3a0e2c593064d99c9c4199e to your computer and use it in GitHub Desktop.
Karabiner - my setting
{
"global": {
"ask_for_confirmation_before_quitting": true,
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false,
"unsafe_ui": 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": "end",
"manipulators": [
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "end",
"lazy": true
}
],
"type": "basic"
}
]
},
{
"description": "home",
"manipulators": [
{
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "home",
"lazy": true
}
],
"type": "basic"
}
]
},
{
"description": "0",
"manipulators": [
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "0",
"lazy": true
}
],
"type": "basic"
},
{
"from": {
"key_code": "p",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "0",
"lazy": true,
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "9",
"manipulators": [
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "9",
"lazy": true
}
],
"type": "basic"
},
{
"from": {
"key_code": "o",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "9",
"lazy": true,
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "8",
"manipulators": [
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "8",
"lazy": true
}
],
"type": "basic"
},
{
"from": {
"key_code": "i",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "8",
"lazy": true,
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "7",
"manipulators": [
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "7",
"lazy": true
}
],
"type": "basic"
},
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "7",
"lazy": true,
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "6",
"manipulators": [
{
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "6",
"lazy": true
}
],
"type": "basic"
},
{
"from": {
"key_code": "y",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "6",
"lazy": true,
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "5",
"manipulators": [
{
"from": {
"key_code": "t",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "5",
"lazy": true
}
],
"type": "basic"
},
{
"from": {
"key_code": "t",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "4",
"lazy": true,
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "4",
"manipulators": [
{
"from": {
"key_code": "r",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "4",
"lazy": true
}
],
"type": "basic"
}
]
},
{
"description": "3",
"manipulators": [
{
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "3",
"lazy": true
}
],
"type": "basic"
},
{
"from": {
"key_code": "e",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "4",
"lazy": true,
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "2",
"manipulators": [
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "2",
"lazy": true
}
],
"type": "basic"
},
{
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "2",
"lazy": true,
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "1",
"manipulators": [
{
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "1",
"lazy": true
}
],
"type": "basic"
},
{
"from": {
"key_code": "q",
"modifiers": {
"mandatory": [
"control",
"shift"
]
}
},
"to": [
{
"key_code": "1",
"lazy": true,
"modifiers": [
"shift"
]
}
],
"type": "basic"
}
]
},
{
"description": "escape",
"manipulators": [
{
"from": {
"key_code": "quote",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "escape",
"lazy": true
}
],
"type": "basic"
}
]
},
{
"description": "right arrow",
"manipulators": [
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "right_arrow",
"lazy": true
}
],
"type": "basic"
}
]
},
{
"description": "up arrow",
"manipulators": [
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "up_arrow",
"lazy": true
}
],
"type": "basic"
}
]
},
{
"description": "down arrow",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "down_arrow",
"lazy": true
}
],
"type": "basic"
}
]
},
{
"description": "up arrow",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "left_arrow",
"lazy": true
}
],
"type": "basic"
}
]
},
{
"description": "delete or backspace",
"manipulators": [
{
"from": {
"key_code": "b",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "delete_or_backspace",
"lazy": true
}
],
"type": "basic"
}
]
},
{
"description": "custom command",
"manipulators": [
{
"from": {
"key_code": "left_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_command",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_eisuu"
}
],
"type": "basic"
},
{
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_command",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "japanese_kana"
}
],
"type": "basic"
}
]
},
{
"description": "space to control when holding down",
"manipulators": [
{
"from": {
"key_code": "spacebar",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control",
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "spacebar"
}
],
"type": "basic"
}
]
},
{
"description": "space and s to control when holding down",
"manipulators": [
{
"from": {
"key_code": "s",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to_if_alone": [
{
"key_code": "escape"
},
{
"key_code": "japanese_eisuu"
}
],
"type": "basic"
}
]
},
{
"description": "undo",
"manipulators": [
{
"from": {
"key_code": "slash",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "z",
"lazy": true,
"modifiers": [
"left_command"
]
}
],
"type": "basic"
}
]
},
{
"description": "return or enter",
"manipulators": [
{
"from": {
"key_code": "semicolon",
"modifiers": {
"mandatory": [
"control"
]
}
},
"to": [
{
"key_code": "return_or_enter",
"lazy": true
}
],
"type": "basic"
}
]
}
]
},
"devices": [
{
"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": 615,
"vendor_id": 76
},
"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": 832,
"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": true,
"is_pointing_device": false,
"product_id": 34304,
"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": 832,
"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
},
{
"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": 613,
"vendor_id": 76
},
"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": [
{
"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": "Default profile",
"parameters": {
"delay_milliseconds_before_open_device": 1000
},
"selected": true,
"simple_modifications": [
{
"from": {
"key_code": "caps_lock"
},
"to": [
{
"key_code": "left_control"
}
]
}
],
"virtual_hid_keyboard": {
"country_code": 0,
"indicate_sticky_modifier_keys_state": true,
"mouse_key_xy_scale": 100
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment