Last active
October 26, 2021 02:47
-
-
Save kazuph/8d5a866ac795dbd20a9615f498a50ccc to your computer and use it in GitHub Desktop.
2020-05-16 karabiner.json (日本語キーボード併用時の記述も追加)
This file contains 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": true, | |
"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": "Ctrl 単押しで Esc", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_control", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "escape" | |
}, | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl+Cを押してEsc", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": [ | |
"right_ctrl" | |
] | |
}, | |
{ | |
"key_code": "escape" | |
}, | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "PgUp/PgDn でタブ移動", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "page_up" | |
}, | |
"to": { | |
"key_code": "open_bracket", | |
"modifiers": [ | |
"right_command", | |
"right_shift" | |
] | |
}, | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "page_down" | |
}, | |
"to": { | |
"key_code": "close_bracket", | |
"modifiers": [ | |
"right_command", | |
"right_shift" | |
] | |
}, | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "コマンドキーを単体で押したときに、英数・かなキーを送信する。(左コマンドキーは英数、右コマンドキーはかな) (rev 3)", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_command", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 100 | |
}, | |
"to": [ | |
{ | |
"key_code": "left_command", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "left_command" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "right_command", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 100 | |
}, | |
"to": [ | |
{ | |
"key_code": "right_command", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "japanese_kana" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "right_command" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "switch_profile_to_us", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock" | |
}, | |
"to": [ | |
{ | |
"shell_command": "'/Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_cli' --select-profile 'US'" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl+[を押したときに、escキーと英数キーを送信する", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"keyboard_types": [ | |
"ansi", | |
"iso" | |
], | |
"type": "keyboard_type_if" | |
} | |
], | |
"from": { | |
"key_code": "open_bracket", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "escape" | |
}, | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"keyboard_types": [ | |
"jis" | |
], | |
"type": "keyboard_type_if" | |
} | |
], | |
"from": { | |
"key_code": "close_bracket", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "escape" | |
}, | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl+Cを押したときに、英数キーも送信する(vim用) (by kazuph)", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"keyboard_types": [ | |
"ansi", | |
"iso" | |
], | |
"type": "keyboard_type_if" | |
} | |
], | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": [ | |
"control" | |
] | |
}, | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"conditions": [ | |
{ | |
"keyboard_types": [ | |
"jis" | |
], | |
"type": "keyboard_type_if" | |
} | |
], | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"mandatory": [ | |
"control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "c", | |
"modifiers": [ | |
"control" | |
] | |
}, | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
}, | |
"devices": [ | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 635, | |
"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": 49989, | |
"vendor_id": 1133 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": false, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "caps_lock" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_control" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "grave_accent_and_tilde" | |
}, | |
"to": [ | |
{ | |
"key_code": "escape" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "japanese_pc_nfer" | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "japanese_pc_xfer" | |
}, | |
"to": [ | |
{ | |
"key_code": "japanese_kana" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "left_command" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_option" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_command" | |
} | |
] | |
} | |
] | |
} | |
], | |
"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": "JIS", | |
"parameters": { | |
"delay_milliseconds_before_open_device": 1000 | |
}, | |
"selected": false, | |
"simple_modifications": [], | |
"virtual_hid_keyboard": { | |
"country_code": 45, | |
"indicate_sticky_modifier_keys_state": true, | |
"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": "Ctrl 単押しで Esc", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "right_control" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_control" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "escape" | |
}, | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Ctrl+Cを押してEsc", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "c", | |
"modifiers": { | |
"mandatory": [ | |
"left_control" | |
] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "escape" | |
}, | |
{ | |
"key_code": "c", | |
"modifiers": [ | |
"left_control" | |
] | |
}, | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "Alt 単押しで英数キー ", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_option" | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "左コマンドキーを単体で押したときに、英数キーを送信する", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "left_command", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 100 | |
}, | |
"to": [ | |
{ | |
"key_code": "left_command", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "japanese_eisuu" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "left_command" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "右コマンドキーを単体で押したときに、かなキーを送信する", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "right_command", | |
"modifiers": { | |
"optional": [ | |
"any" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 100 | |
}, | |
"to": [ | |
{ | |
"key_code": "right_command", | |
"lazy": true | |
} | |
], | |
"to_if_alone": [ | |
{ | |
"key_code": "japanese_kana" | |
} | |
], | |
"to_if_held_down": [ | |
{ | |
"key_code": "right_command" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "1秒間押し続けないとcommand-qが実行されない設定", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "q", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 500 | |
}, | |
"to_if_held_down": [ | |
{ | |
"key_code": "q", | |
"modifiers": [ | |
"command" | |
], | |
"repeat": false | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "その他一定時間押さないと発動しないようにしたいCommnadセット", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "w", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 100 | |
}, | |
"to_if_held_down": [ | |
{ | |
"key_code": "w", | |
"modifiers": [ | |
"command" | |
], | |
"repeat": false | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "d", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 500 | |
}, | |
"to_if_held_down": [ | |
{ | |
"key_code": "d", | |
"modifiers": [ | |
"command" | |
], | |
"repeat": false | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "s", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 100 | |
}, | |
"to_if_held_down": [ | |
{ | |
"key_code": "s", | |
"modifiers": [ | |
"command" | |
], | |
"repeat": false | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "f", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 50 | |
}, | |
"to_if_held_down": [ | |
{ | |
"key_code": "f", | |
"modifiers": [ | |
"command" | |
], | |
"repeat": false | |
} | |
], | |
"type": "basic" | |
}, | |
{ | |
"from": { | |
"key_code": "r", | |
"modifiers": { | |
"mandatory": [ | |
"command" | |
], | |
"optional": [ | |
"caps_lock" | |
] | |
} | |
}, | |
"parameters": { | |
"basic.to_if_held_down_threshold_milliseconds": 100 | |
}, | |
"to_if_held_down": [ | |
{ | |
"key_code": "r", | |
"modifiers": [ | |
"command" | |
], | |
"repeat": false | |
} | |
], | |
"type": "basic" | |
} | |
] | |
}, | |
{ | |
"description": "switch_profile_to_jis", | |
"manipulators": [ | |
{ | |
"from": { | |
"key_code": "caps_lock" | |
}, | |
"to": [ | |
{ | |
"shell_command": "'/Library/Application Support/org.pqrs/Karabiner-Elements/bin/karabiner_cli' --select-profile 'JIS'" | |
} | |
], | |
"type": "basic" | |
} | |
] | |
} | |
] | |
}, | |
"devices": [ | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 635, | |
"vendor_id": 1452 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": true, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "caps_lock" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_control" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "left_control" | |
}, | |
"to": [ | |
{ | |
"key_code": "caps_lock" | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"disable_built_in_keyboard_if_exists": false, | |
"fn_function_keys": [], | |
"identifiers": { | |
"is_keyboard": true, | |
"is_pointing_device": false, | |
"product_id": 615, | |
"vendor_id": 76 | |
}, | |
"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": 626, | |
"vendor_id": 1241 | |
}, | |
"ignore": false, | |
"manipulate_caps_lock_led": true, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "left_command" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_option" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "left_option" | |
}, | |
"to": [ | |
{ | |
"key_code": "left_command" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "right_option" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_command" | |
} | |
] | |
} | |
] | |
} | |
], | |
"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": "US", | |
"parameters": { | |
"delay_milliseconds_before_open_device": 1000 | |
}, | |
"selected": true, | |
"simple_modifications": [ | |
{ | |
"from": { | |
"key_code": "caps_lock" | |
}, | |
"to": [ | |
{ | |
"key_code": "right_control" | |
} | |
] | |
}, | |
{ | |
"from": { | |
"key_code": "left_control" | |
}, | |
"to": [ | |
{ | |
"key_code": "caps_lock" | |
} | |
] | |
} | |
], | |
"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