From 97cfc003af531f3a2ca623f33c49ceb4c1b9158e Mon Sep 17 00:00:00 2001 From: Shu Kutsuzawa Date: Tue, 19 Dec 2023 16:53:21 +0900 Subject: [PATCH] add karabiner settings --- .../complex_modifications/1702968904.json | 797 ++++++++++++++++++ .../complex_modifications/1702971767.json | 72 ++ .../automatic_backups/karabiner_20231219.json | 224 +++++ .config/karabiner/karabiner.json | 390 +++++++++ 4 files changed, 1483 insertions(+) create mode 100644 .config/karabiner/assets/complex_modifications/1702968904.json create mode 100644 .config/karabiner/assets/complex_modifications/1702971767.json create mode 100644 .config/karabiner/automatic_backups/karabiner_20231219.json create mode 100644 .config/karabiner/karabiner.json diff --git a/.config/karabiner/assets/complex_modifications/1702968904.json b/.config/karabiner/assets/complex_modifications/1702968904.json new file mode 100644 index 00000000..130fa01f --- /dev/null +++ b/.config/karabiner/assets/complex_modifications/1702968904.json @@ -0,0 +1,797 @@ +{ + "title": "For Japanese (日本語環境向けの設定) (rev 6)", + "rules": [ + { + "description": "コマンドキーを単体で押したときに、英数・かなキーを送信する。(左コマンドキーは英数、右コマンドキーはかな) (rev 3)", + "manipulators": [ + { + "type": "basic", + "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_held_down": [ + { + "key_code": "left_command" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "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_held_down": [ + { + "key_code": "right_command" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_kana" + } + ] + } + ] + }, + { + "description": "CTRLキーを単体で押したときに、英数・かなキーを送信する。(左CTRLキーは英数、右CTRLキーはかな)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "left_control", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "parameters": { + "basic.to_if_held_down_threshold_milliseconds": 100 + }, + "to": [ + { + "key_code": "left_control", + "lazy": true + } + ], + "to_if_held_down": [ + { + "key_code": "left_control" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "right_control", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "parameters": { + "basic.to_if_held_down_threshold_milliseconds": 100 + }, + "to": [ + { + "key_code": "right_control", + "lazy": true + } + ], + "to_if_held_down": [ + { + "key_code": "right_control" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_kana" + } + ] + } + ] + }, + { + "description": "オプションキーを単体で押したときに、英数・かなキーを送信する。(左オプションキーは英数キー、右オプションキーはかなキー)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "left_option", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "parameters": { + "basic.to_if_held_down_threshold_milliseconds": 100 + }, + "to": [ + { + "key_code": "left_option", + "lazy": true + } + ], + "to_if_held_down": [ + { + "key_code": "left_option" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "right_option", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "parameters": { + "basic.to_if_held_down_threshold_milliseconds": 100 + }, + "to": [ + { + "key_code": "right_option", + "lazy": true + } + ], + "to_if_held_down": [ + { + "key_code": "right_option" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_kana" + } + ] + } + ] + }, + { + "description": "コマンドキー(左右どちらでも)を単体で押したときに、英数・かなをトグルで切り替える。 (rev 2)", + "manipulators": [ + { + "type": "basic", + "conditions": [ + { + "input_sources": [ + { + "language": "ja" + } + ], + "type": "input_source_if" + } + ], + "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_held_down": [ + { + "key_code": "left_command" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "input_sources": [ + { + "language": "en" + } + ], + "type": "input_source_if" + } + ], + "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_held_down": [ + { + "key_code": "left_command" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_kana" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "input_sources": [ + { + "language": "ja" + } + ], + "type": "input_source_if" + } + ], + "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_held_down": [ + { + "key_code": "right_command" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "input_sources": [ + { + "language": "en" + } + ], + "type": "input_source_if" + } + ], + "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_held_down": [ + { + "key_code": "right_command" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_kana" + } + ] + } + ] + }, + { + "description": "右コマンドキーを、英数・かなのトグルに変更する", + "manipulators": [ + { + "type": "basic", + "conditions": [ + { + "input_sources": [ + { + "language": "ja" + } + ], + "type": "input_source_if" + } + ], + "from": { + "key_code": "right_command", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "input_sources": [ + { + "language": "en" + } + ], + "type": "input_source_if" + } + ], + "from": { + "key_code": "right_command", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "japanese_kana" + } + ] + } + ] + }, + { + "description": "英数・かなキーを他のキーと同時に押したときに、Optionキーを送信する (rev 3)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "japanese_eisuu", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "to": [ + { + "key_code": "left_option" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "japanese_kana", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "to": [ + { + "key_code": "right_option" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_kana" + } + ] + } + ] + }, + { + "description": "escキーを押したときに、英数キーも送信する(vim用)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "escape" + }, + "to": [ + { + "key_code": "escape" + }, + { + "key_code": "japanese_eisuu" + } + ] + } + ] + }, + { + "description": "Ctrl+[を押したときに、英数キーも送信する(vim用) (rev 2)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "open_bracket", + "modifiers": { + "mandatory": [ + "control" + ] + } + }, + "to": [ + { + "key_code": "open_bracket", + "modifiers": [ + "control" + ] + }, + { + "key_code": "japanese_eisuu" + } + ], + "conditions": [ + { + "type": "keyboard_type_if", + "keyboard_types": [ + "ansi", + "iso" + ] + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "close_bracket", + "modifiers": { + "mandatory": [ + "control" + ] + } + }, + "to": [ + { + "key_code": "close_bracket", + "modifiers": [ + "control" + ] + }, + { + "key_code": "japanese_eisuu" + } + ], + "conditions": [ + { + "type": "keyboard_type_if", + "keyboard_types": [ + "jis" + ] + } + ] + } + ] + }, + { + "description": "Ctrl+[を押したときに、escキーと英数キーを送信する", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "open_bracket", + "modifiers": { + "mandatory": [ + "control" + ] + } + }, + "to": [ + { + "key_code": "escape" + }, + { + "key_code": "japanese_eisuu" + } + ], + "conditions": [ + { + "type": "keyboard_type_if", + "keyboard_types": [ + "ansi", + "iso" + ] + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "close_bracket", + "modifiers": { + "mandatory": [ + "control" + ] + } + }, + "to": [ + { + "key_code": "escape" + }, + { + "key_code": "japanese_eisuu" + } + ], + "conditions": [ + { + "type": "keyboard_type_if", + "keyboard_types": [ + "jis" + ] + } + ] + } + ] + }, + { + "description": "英数・かなキーをtoggle方式にする", + "manipulators": [ + { + "conditions": [ + { + "type": "input_source_if", + "input_sources": [ + { + "language": "ja" + } + ] + } + ], + "type": "basic", + "from": { + "key_code": "japanese_kana" + }, + "to": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "conditions": [ + { + "type": "input_source_unless", + "input_sources": [ + { + "language": "ja" + } + ] + } + ], + "type": "basic", + "from": { + "key_code": "japanese_eisuu" + }, + "to": [ + { + "key_code": "japanese_kana" + } + ] + } + ] + }, + { + "description": "右コマンドキーを単体で押したときに、かなキーを送信、左コントロールキーを単体で押したときに、英数キーを送信する。 (rev 2)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "left_control", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "parameters": { + "basic.to_if_held_down_threshold_milliseconds": 100 + }, + "to": [ + { + "key_code": "left_control", + "lazy": true + } + ], + "to_if_held_down": [ + { + "key_code": "left_control" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "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_held_down": [ + { + "key_code": "right_command" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_kana" + } + ] + } + ] + }, + { + "description": "シフトキーを単体で押したときに、英数・かなキーを送信する。(左シフトキーは英数、右シフトキーはかな)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "left_shift", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "parameters": { + "basic.to_if_held_down_threshold_milliseconds": 100 + }, + "to": [ + { + "key_code": "left_shift", + "lazy": true + } + ], + "to_if_held_down": [ + { + "key_code": "left_shift" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "right_shift", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "parameters": { + "basic.to_if_held_down_threshold_milliseconds": 100 + }, + "to": [ + { + "key_code": "right_shift", + "lazy": true + } + ], + "to_if_held_down": [ + { + "key_code": "right_shift" + } + ], + "to_if_alone": [ + { + "key_code": "japanese_kana" + } + ] + } + ] + } + ] +} diff --git a/.config/karabiner/assets/complex_modifications/1702971767.json b/.config/karabiner/assets/complex_modifications/1702971767.json new file mode 100644 index 00000000..715d1e00 --- /dev/null +++ b/.config/karabiner/assets/complex_modifications/1702971767.json @@ -0,0 +1,72 @@ +{ "title": "英かな/⌘ for Japanese", "rules": [ + + { "description": "[ US ]左右のコマンドキー(⌘)を、単独で押したときは 英数・かな キー として扱う(左⌘は 英数、右⌘は かな)", "manipulators": [ + + { "description": " LEFT COMMAND → EISUU ", + "from": { "key_code": "left_command", "modifiers": { "optional": [ "any" ] } }, "type": "basic", + "to_if_alone": [ { "key_code": "japanese_eisuu" } ], + "to": [ { "key_code": "left_command" } ] + }, + + { "description": " RIGHT COMMAND → KANA ", + "from": { "key_code": "right_command", "modifiers": { "optional": [ "any" ] } }, "type": "basic", + "to_if_alone": [ { "key_code": "japanese_kana" } ], + "to": [ { "key_code": "right_command" } ] + } + + ] }, + + { "description": "[ JIS ]英数・かな キーを、他のキーと組み合わせて押したときは コマンドキー(⌘)として扱う", "manipulators": [ + + { "description": " EISUU → LEFT COMMAND ", + "from": { "key_code": "japanese_eisuu", "modifiers": { "optional": [ "any" ] } }, "type": "basic", + "to_if_alone": [ { "key_code": "japanese_eisuu" } ], + "to": [ { "key_code": "left_command" } ] + }, + + { "description": " KANA → RIGHT COMMAND ", + "from": { "key_code": "japanese_kana", "modifiers": { "optional": [ "any" ] } }, "type": "basic", + "to_if_alone": [ { "key_code": "japanese_kana" } ], + "to": [ { "key_code": "right_command" } ] + } + + ] }, + + { "description": "⌘Wを2連打したときのみタブまたはウィンドウが閉じるようにする", "manipulators": [ + + { "description": " ⌘W ×2 ", + "from": { "key_code": "w", "modifiers": { "mandatory": [ "command" ], "optional": [ "caps_lock" ] } }, "type": "basic", + "conditions": [ { "type": "variable_if", "name": "⌘W TAPPED", "value": 1 } ], + "to": [ { "key_code": "w", "modifiers": [ "command" ] } ] + }, + + { "description": " ⌘W ×1 ", + "from": { "key_code": "w", "modifiers": { "mandatory": [ "command" ], "optional": [ "caps_lock" ] } }, "type": "basic", + "to_delayed_action": { + "to_if_canceled": [ { "set_variable": { "name": "⌘W TAPPED", "value": 0 } } ], + "to_if_invoked": [ { "set_variable": { "name": "⌘W TAPPED", "value": 0 } } ] }, + "to": [ { "set_variable": { "name": "⌘W TAPPED", "value": 1 } } ] + } + + ] }, + + { "description": "⌘Qを2連打したときのみアプリが閉じるようにする", "manipulators": [ + + { "description": " ⌘Q ×2 ", + "from": { "key_code": "q", "modifiers": { "mandatory": [ "command" ], "optional": [ "caps_lock" ] } }, "type": "basic", + "conditions": [ { "type": "variable_if", "name": "⌘Q TAPPED", "value": 1 } ], + "to": [ { "key_code": "q", "modifiers": [ "command" ] } ] + }, + + { "description": " ⌘Q ×1 ", + "from": { "key_code": "q", "modifiers": { "mandatory": [ "command" ], "optional": [ "caps_lock" ] } }, "type": "basic", + "to_delayed_action": { + "to_if_canceled": [ { "set_variable": { "name": "⌘Q TAPPED", "value": 0 } } ], + "to_if_invoked": [ { "set_variable": { "name": "⌘Q TAPPED", "value": 0 } } ] }, + "to": [ { "set_variable": { "name": "⌘Q TAPPED", "value": 1 } } ] + } + + ] } + +] } + diff --git a/.config/karabiner/automatic_backups/karabiner_20231219.json b/.config/karabiner/automatic_backups/karabiner_20231219.json new file mode 100644 index 00000000..292178c1 --- /dev/null +++ b/.config/karabiner/automatic_backups/karabiner_20231219.json @@ -0,0 +1,224 @@ +{ + "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": [] + }, + "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": 834, + "vendor_id": 1452 + }, + "ignore": true, + "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": 834, + "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": true, + "is_pointing_device": false, + "product_id": 33, + "vendor_id": 1278 + }, + "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 + } + ], + "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": [ + { + "apple_vendor_keyboard_key_code": "mission_control" + } + ] + }, + { + "from": { + "key_code": "f4" + }, + "to": [ + { + "apple_vendor_keyboard_key_code": "spotlight" + } + ] + }, + { + "from": { + "key_code": "f5" + }, + "to": [ + { + "consumer_key_code": "dictation" + } + ] + }, + { + "from": { + "key_code": "f6" + }, + "to": [ + { + "key_code": "f6" + } + ] + }, + { + "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": "Default profile", + "parameters": { + "delay_milliseconds_before_open_device": 1000 + }, + "selected": true, + "simple_modifications": [], + "virtual_hid_keyboard": { + "country_code": 0, + "indicate_sticky_modifier_keys_state": true, + "mouse_key_xy_scale": 100 + } + } + ] +} \ No newline at end of file diff --git a/.config/karabiner/karabiner.json b/.config/karabiner/karabiner.json new file mode 100644 index 00000000..233ad2cb --- /dev/null +++ b/.config/karabiner/karabiner.json @@ -0,0 +1,390 @@ +{ + "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": "コマンドキー(左右どちらでも)を単体で押したときに、英数・かなをトグルで切り替える。 (rev 2)", + "manipulators": [ + { + "conditions": [ + { + "input_sources": [ + { + "language": "ja" + } + ], + "type": "input_source_if" + } + ], + "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" + }, + { + "conditions": [ + { + "input_sources": [ + { + "language": "en" + } + ], + "type": "input_source_if" + } + ], + "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_kana" + } + ], + "to_if_held_down": [ + { + "key_code": "left_command" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "input_sources": [ + { + "language": "ja" + } + ], + "type": "input_source_if" + } + ], + "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_eisuu" + } + ], + "to_if_held_down": [ + { + "key_code": "right_command" + } + ], + "type": "basic" + }, + { + "conditions": [ + { + "input_sources": [ + { + "language": "en" + } + ], + "type": "input_source_if" + } + ], + "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" + } + ] + } + ] + }, + "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": 834, + "vendor_id": 1452 + }, + "ignore": true, + "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": 834, + "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": true, + "is_pointing_device": false, + "product_id": 33, + "vendor_id": 1278 + }, + "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 + } + ], + "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": [ + { + "apple_vendor_keyboard_key_code": "mission_control" + } + ] + }, + { + "from": { + "key_code": "f4" + }, + "to": [ + { + "apple_vendor_keyboard_key_code": "spotlight" + } + ] + }, + { + "from": { + "key_code": "f5" + }, + "to": [ + { + "consumer_key_code": "dictation" + } + ] + }, + { + "from": { + "key_code": "f6" + }, + "to": [ + { + "key_code": "f6" + } + ] + }, + { + "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": "Default profile", + "parameters": { + "delay_milliseconds_before_open_device": 1000 + }, + "selected": true, + "simple_modifications": [], + "virtual_hid_keyboard": { + "country_code": 0, + "indicate_sticky_modifier_keys_state": true, + "mouse_key_xy_scale": 100 + } + } + ] +} \ No newline at end of file