diff --git a/.bin/karabiner-keymap-hud b/.bin/karabiner-keymap-hud index 34cf0fa..33222b1 100755 --- a/.bin/karabiner-keymap-hud +++ b/.bin/karabiner-keymap-hud @@ -14,16 +14,21 @@ readonly CMD_FILE="$STATE_DIR/command" readonly LOG_FILE="$STATE_DIR/hud.log" readonly HIDUTIL="${KARABINER_HUD_HIDUTIL:-/usr/bin/hidutil}" readonly BATTERY_SWIFT="${KARABINER_TORABO_BATTERY_SWIFT:-$DOTFILES_DIR/.config/karabiner/scripts/torabo-battery.swift}" +readonly BATTERY_PLIST="${KARABINER_TORABO_BATTERY_PLIST:-$DOTFILES_DIR/.config/karabiner/scripts/torabo-battery-Info.plist}" readonly BATTERY_BIN="$STATE_DIR/torabo-battery" readonly BATTERY_JSON="$STATE_DIR/torabo-battery.json" readonly BATTERY_LOCK="$STATE_DIR/torabo-battery.lock" usage() { cat <<'USAGE' -Usage: karabiner-keymap-hud show|hide|status|start|stop +Usage: karabiner-keymap-hud show [jis|external|torabo] | hide | status | start | stop f + b で使用するキー一覧を表示または非表示にします。 -Torabo 接続時は直近の電池残量も見出しに出します。 + show … Torabo 接続中なら Torabo、なければ内蔵 JIS + show jis … 常に内蔵 JIS(上・外側ずらし) + show external … 常に外付けキーボードの従来配列 + show torabo … 常に Torabo-tsuki +Torabo 表示時は直近の電池残量も見出しに出します。 USAGE } @@ -71,34 +76,62 @@ start_daemon() { } } +# Bluetooth 利用説明をバイナリに埋め込み、Karabiner 経由でも権限ダイアログを出せるようにする。 +compile_battery_bin() { + local binary_tmp="$1" + # PATH 上の swiftc/codesign を使い、テストのスタブ差し替えにも対応する。 + swiftc -module-cache-path "$STATE_DIR/swift-cache" -O "$BATTERY_SWIFT" -o "$binary_tmp" \ + -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __info_plist -Xlinker "$BATTERY_PLIST" || return 1 + # 安定した識別子で署名し、Privacy の Bluetooth 一覧に残りやすくする。 + codesign --force --sign - --identifier jp.k-mass.torabo-battery "$binary_tmp" || return 1 +} + # ビルドと取得を別プロセスで行い、取得結果を一度に置き換える。 +# 失敗時は直近の成功結果を残し、Abort(権限不足)でも表示が空に戻らないようにする。 refresh_battery_async() { ( mkdir "$BATTERY_LOCK" 2>/dev/null || exit 0 local binary_tmp="" output_tmp="" trap 'rm -f -- "$binary_tmp" "$output_tmp"; rmdir "$BATTERY_LOCK"' EXIT trap 'exit 1' HUP INT TERM - [[ -f "$BATTERY_SWIFT" ]] || exit 0 - if [[ ! -x "$BATTERY_BIN" || "$BATTERY_SWIFT" -nt "$BATTERY_BIN" ]]; then + [[ -f "$BATTERY_SWIFT" && -f "$BATTERY_PLIST" ]] || exit 0 + if [[ ! -x "$BATTERY_BIN" || "$BATTERY_SWIFT" -nt "$BATTERY_BIN" || "$BATTERY_PLIST" -nt "$BATTERY_BIN" ]]; then binary_tmp="$(mktemp "$STATE_DIR/torabo-battery-bin.XXXXXX")" || exit 1 - /usr/bin/swiftc -module-cache-path "$STATE_DIR/swift-cache" -O "$BATTERY_SWIFT" -o "$binary_tmp" || exit 1 + compile_battery_bin "$binary_tmp" || exit 1 mv -f "$binary_tmp" "$BATTERY_BIN" || exit 1 + binary_tmp="" fi output_tmp="$(mktemp "$STATE_DIR/torabo-battery-data.XXXXXX")" || exit 1 - if "$BATTERY_BIN" >"$output_tmp"; then + if "$BATTERY_BIN" >"$output_tmp" 2>>"$LOG_FILE"; then mv -f "$output_tmp" "$BATTERY_JSON" + output_tmp="" else - rm -f "$BATTERY_JSON" + printf '[battery] read failed (exit %s); keeping previous cache if any\n' "$?" >>"$LOG_FILE" fi ) >"$LOG_FILE" 2>&1 & disown || true } show_hud() { + local mode="${1:-auto}" start_daemon + + case "$mode" in + jis) + # 常駐デーモンは show / show torabo を見る。JIS強制は show を書く。 + printf 'show\n' >"$CMD_FILE" + return + ;; + external) + printf 'show external\n' >"$CMD_FILE" + return + ;; + esac + + # 自動選択でToraboが見つからないときは内蔵JISを表示する。 local connection connection="$(torabo_connection)" || connection="" - if [[ -z "$connection" ]]; then + if [[ "$mode" == auto && -z "$connection" ]]; then printf 'show\n' >"$CMD_FILE" return fi @@ -155,7 +188,16 @@ status_hud() { main() { case "${1:-}" in - show) show_hud ;; + show) + case "${2:-}" in + "") show_hud auto ;; + jis|external|torabo) show_hud "$2" ;; + *) + usage >&2 + exit 1 + ;; + esac + ;; hide) hide_hud ;; start) start_daemon ;; stop) stop_daemon ;; diff --git a/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json b/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json index 6af9d25..76626da 100644 --- a/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json +++ b/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json @@ -28,7 +28,7 @@ ], "to": [ { - "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show'" + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show torabo'" } ], "to_after_key_up": [ @@ -621,7 +621,10142 @@ ] }, { - "description": "Torabo 以外で右 Shift の左隣のキーをハイフンにする", + "description": "Mac内蔵JIS専用 f layer (=Torabo L2); hjkl arrows; q Esc; e/u ⌫; p ⌦; a/s Tab; d ⌘; f+n=ABC f+m=あいう; f+b=HUD; 英数 tap=Enter hold=⌘; space hold=Shift [hold=e]", + "manipulators": [ + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "f" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "any", + "to_after_key_up": [ + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud hide'" + } + ] + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show jis'" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 350 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "f", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show jis'" + } + ], + "to_after_key_up": [ + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud hide'" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "tab" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "eisuu_cmd", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "e", + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "f", + "modifiers": [ + "left_command" + ] + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "eisuu_cmd", + "value": true + } + ], + "from": { + "key_code": "e", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "f", + "modifiers": [ + "left_command" + ] + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + } + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + }, + { + "type": "variable_if", + "name": "space_shift", + "value": true + } + ], + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + }, + { + "type": "variable_if", + "name": "eisuu_cmd", + "value": true + } + ], + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "down_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "up_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "right_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "3" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_or_backspace" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "tab" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "tab" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "1" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "escape" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "1", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "escape" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "hyphen" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_or_backspace" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "q" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "tab" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "q", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "w" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_command" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "w", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_command" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "return_or_enter" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_forward" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_forward" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "spacebar", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "space_shift", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_shift" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "spacebar", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "space_shift", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_shift", + "lazy": true + } + ], + "to_if_alone": [ + { + "key_code": "spacebar" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "semicolon" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "japanese_eisuu" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "quote" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "japanese_kana" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "japanese_kana" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "japanese_eisuu", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "eisuu_cmd", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_command" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "from": { + "key_code": "japanese_eisuu", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "eisuu_cmd", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_command" + } + ], + "to_if_alone": [ + { + "key_code": "return_or_enter" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + } + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "from": { + "key_code": "japanese_kana", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "space_shift", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_shift", + "lazy": true + } + ], + "to_if_alone": [ + { + "key_code": "spacebar" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + } + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "from": { + "key_code": "right_command", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "eisuu_cmd", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "right_command", + "lazy": true + } + ], + "to_if_alone": [ + { + "key_code": "return_or_enter" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + } + }, + { + "type": "basic", + "from": { + "key_code": "e", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "f" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 d layer: n m , j k l u i o p → 1-0 number pad [hold=w]", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "w", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "d" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "semicolon" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "1" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "1" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "quote" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "2" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "2" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "backslash" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "3" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "backslash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "3" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "4" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "4" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "5" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "5" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "6" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "6" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "hyphen" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "7" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "7" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "equal_sign" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "8" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "8" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "international3" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "9" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "international3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "9" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "return_or_enter" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "0" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "0" + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 v layer: punctuation + h→~ + y→¥ [hold=d]", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "d", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "v" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "semicolon" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "comma" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "comma" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "quote" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "period" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "period" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "backslash" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "slash" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "backslash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "slash" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "semicolon" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "semicolon" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "quote" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "quote" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "backslash" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "backslash" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "hyphen" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "hyphen" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "hyphen" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "equal_sign" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "equal_sign" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "equal_sign" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "international3" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "open_bracket" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "international3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "open_bracket" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "return_or_enter" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "close_bracket" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "close_bracket" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "grave_accent_and_tilde", + "modifiers": [ + "left_shift" + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "grave_accent_and_tilde", + "modifiers": [ + "left_shift" + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "0" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "international3" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "0", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "international3" + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る [hold=s]", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "s", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "c" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "0" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f12", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f12", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "0", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f12", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f12", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "hyphen" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f7", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f7", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f7", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f7", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "equal_sign" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f8", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f8", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f8", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f8", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "international3" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f9", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f9", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "international3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f9", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f9", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f11", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f11", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f11", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f11", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f4", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f4", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f4", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f4", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f5", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f5", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f5", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f5", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f6", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f6", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f6", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f6", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "return_or_enter" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f10", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f10", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f10", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f10", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "semicolon" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f1", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f1", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f1", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f1", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "quote" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f2", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f2", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f2", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f2", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "backslash" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f3", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f3", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "backslash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f3", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f3", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control [hold=a]", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "x" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "0" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "volume_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "0", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "volume_increment" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "hyphen" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "rewind" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "rewind" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "equal_sign" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "play_or_pause" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "play_or_pause" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "international3" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "fast_forward" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "international3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "fast_forward" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "volume_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "volume_decrement" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "launchpad" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "launchpad" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "display_brightness_decrement" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "display_brightness_increment" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "return_or_enter" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "mute" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "mute" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "semicolon" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "display_brightness_decrement" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "quote" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "display_brightness_increment" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "backslash" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "mission_control" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "backslash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "mission_control" + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 Mac JIS 上・外側ずらし(Torabo除外)。物理→出力 / 出力なし / cmd→opt", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "1", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "q" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "2", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "w" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "e" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "4", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "r" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "5", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "t" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "6", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "7", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "8", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "9", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "0", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "y" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "u" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "i" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "international3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "o" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "q", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "s" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "r", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "g" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "t", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "y", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "u", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "i", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "h" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "j" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "k" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "l" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "f", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "b" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "g", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "h", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "n" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "m" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "backslash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "slash" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "z", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "x", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "c", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "v", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "b", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "n", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "m", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "comma", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "period", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "slash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "a" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "p" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "international1", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "left_command", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_option" + } + ], + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "left_option", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "right_option", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "e", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "f" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "w", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "d" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "d", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "v" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "s", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "c" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "x" + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 control tap=z hold=Control(Toraboの z/⌃ を control へ移す)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "left_control", + "modifiers": { + "optional": [ + "caps_lock" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "z_ctrl", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_control", + "lazy": true + } + ], + "to_if_alone": [ + { + "key_code": "z" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + } + ] + }, + { + "description": "外付けキーボード(従来配列) Torabo 以外で右 Shift の左隣のキーをハイフンにする", "manipulators": [ { "type": "basic", @@ -646,6 +10781,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -654,7 +10793,7 @@ ] }, { - "description": "f layer (=Torabo L2); hjkl arrows; q Esc; e/u ⌫; p ⌦; a/s Tab; d ⌘; f+n=ABC f+m=あいう; f+b=HUD; 英数 tap=Enter hold=⌘; space hold=Shift", + "description": "外付けキーボード(従来配列) f layer (=Torabo L2); hjkl arrows; q Esc; e/u ⌫; p ⌦; a/s Tab; d ⌘; f+n=ABC f+m=あいう; f+b=HUD; 英数 tap=Enter hold=⌘; space hold=Shift", "manipulators": [ { "type": "basic", @@ -672,14 +10811,14 @@ "to": [ { "set_variable": { - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true, "key_up_value": false } }, { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -704,6 +10843,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -719,12 +10862,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "eisuu_cmd", + "name": "external_eisuu_cmd", "value": true } ], @@ -739,14 +10886,14 @@ "to": [ { "set_variable": { - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true, "key_up_value": false } }, { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -774,12 +10921,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -807,12 +10958,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -840,12 +10995,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -873,12 +11032,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -906,17 +11069,21 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true }, { "type": "variable_if", - "name": "eisuu_cmd", + "name": "external_eisuu_cmd", "value": true } ], @@ -947,17 +11114,21 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true }, { "type": "variable_if", - "name": "space_shift", + "name": "external_space_shift", "value": true } ], @@ -989,12 +11160,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -1055,6 +11230,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1100,6 +11279,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1145,6 +11328,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1190,6 +11377,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1235,12 +11426,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "eisuu_cmd", + "name": "external_eisuu_cmd", "value": true } ] @@ -1258,7 +11453,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1280,6 +11475,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1309,7 +11508,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1329,6 +11528,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1358,7 +11561,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1378,6 +11581,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1407,7 +11614,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1427,6 +11634,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1456,7 +11667,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1476,6 +11687,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1505,7 +11720,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1525,6 +11740,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1540,12 +11759,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1573,12 +11796,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1606,12 +11833,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1639,12 +11870,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1672,12 +11907,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1719,7 +11958,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1739,6 +11978,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1754,12 +11997,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1801,7 +12048,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1821,6 +12068,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1836,12 +12087,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1883,7 +12138,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1903,6 +12158,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1918,12 +12177,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1965,7 +12228,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1985,6 +12248,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2000,12 +12267,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2047,7 +12318,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -2067,6 +12338,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2082,12 +12357,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2129,7 +12408,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -2149,6 +12428,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2164,12 +12447,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2197,12 +12484,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -2217,7 +12508,7 @@ "to": [ { "set_variable": { - "name": "space_shift", + "name": "external_space_shift", "value": true, "key_up_value": false } @@ -2240,7 +12531,7 @@ "to": [ { "set_variable": { - "name": "space_shift", + "name": "external_space_shift", "value": true, "key_up_value": false } @@ -2266,6 +12557,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2295,7 +12590,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -2315,6 +12610,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2344,7 +12643,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -2364,6 +12663,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2379,12 +12682,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2412,12 +12719,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2445,12 +12756,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2465,14 +12780,14 @@ "to": [ { "set_variable": { - "name": "eisuu_cmd", + "name": "external_eisuu_cmd", "value": true, "key_up_value": false } }, { "set_variable": { - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true, "key_up_value": false } @@ -2492,6 +12807,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2507,7 +12826,7 @@ "to": [ { "set_variable": { - "name": "eisuu_cmd", + "name": "external_eisuu_cmd", "value": true, "key_up_value": false } @@ -2535,6 +12854,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2590,13 +12913,13 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } }, { - "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show'" + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show external'" } ], "parameters": { @@ -2610,6 +12933,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2625,12 +12952,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2644,7 +12975,7 @@ }, "to": [ { - "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show'" + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show external'" } ], "to_after_key_up": [ @@ -2656,7 +12987,7 @@ ] }, { - "description": "d layer: n m , j k l u i o p → 1-0 number pad", + "description": "外付けキーボード(従来配列) d layer: n m , j k l u i o p → 1-0 number pad", "manipulators": [ { "type": "basic", @@ -2672,7 +13003,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -2694,12 +13025,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -2729,7 +13064,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -2749,12 +13084,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -2769,12 +13108,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -2817,7 +13160,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -2837,12 +13180,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -2857,12 +13204,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -2905,7 +13256,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -2925,12 +13276,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -2945,12 +13300,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -2993,7 +13352,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3013,12 +13372,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3033,12 +13396,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3081,7 +13448,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3101,12 +13468,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3121,12 +13492,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3169,7 +13544,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3189,12 +13564,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3209,12 +13588,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3257,7 +13640,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3277,12 +13660,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3297,12 +13684,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3345,7 +13736,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3365,12 +13756,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3385,12 +13780,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3433,7 +13832,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3453,12 +13852,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3473,12 +13876,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3521,7 +13928,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3541,12 +13948,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3561,12 +13972,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3587,7 +14002,7 @@ ] }, { - "description": "v layer: punctuation + h→~ + y→¥", + "description": "外付けキーボード(従来配列) v layer: punctuation + h→~ + y→¥", "manipulators": [ { "type": "basic", @@ -3603,7 +14018,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -3625,12 +14040,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3660,7 +14079,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -3680,12 +14099,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3700,12 +14123,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -3748,7 +14175,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -3768,12 +14195,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3788,12 +14219,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -3836,7 +14271,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -3856,12 +14291,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3876,12 +14315,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -3924,7 +14367,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -3944,12 +14387,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3964,12 +14411,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4012,7 +14463,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4032,12 +14483,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4052,12 +14507,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4100,7 +14559,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4120,12 +14579,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4140,12 +14603,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4188,7 +14655,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4208,12 +14675,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4228,12 +14699,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4276,7 +14751,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4296,12 +14771,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4316,12 +14795,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4364,7 +14847,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4384,12 +14867,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4404,12 +14891,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4452,7 +14943,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4472,12 +14963,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4492,12 +14987,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4540,7 +15039,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4563,12 +15062,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4583,12 +15086,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4634,7 +15141,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4654,12 +15161,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4674,12 +15185,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4700,7 +15215,7 @@ ] }, { - "description": "c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る", + "description": "外付けキーボード(従来配列) c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る", "manipulators": [ { "type": "basic", @@ -4716,7 +15231,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -4738,12 +15253,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4773,7 +15292,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -4813,12 +15332,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4833,12 +15356,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -4901,7 +15428,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -4941,12 +15468,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4961,12 +15492,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5029,7 +15564,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5069,12 +15604,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5089,12 +15628,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5157,7 +15700,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5197,12 +15740,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5217,12 +15764,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5285,7 +15836,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5325,12 +15876,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5345,12 +15900,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5413,7 +15972,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5453,12 +16012,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5473,12 +16036,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5541,7 +16108,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5581,12 +16148,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5601,12 +16172,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5669,7 +16244,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5709,12 +16284,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5729,12 +16308,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5797,7 +16380,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5837,12 +16420,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5857,12 +16444,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5925,7 +16516,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5965,12 +16556,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5985,12 +16580,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -6053,7 +16652,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -6093,12 +16692,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6113,12 +16716,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -6181,7 +16788,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -6221,12 +16828,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6241,12 +16852,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -6287,7 +16902,7 @@ ] }, { - "description": "x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control", + "description": "外付けキーボード(従来配列) x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control", "manipulators": [ { "type": "basic", @@ -6303,7 +16918,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6325,12 +16940,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6360,7 +16979,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6380,12 +16999,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6400,12 +17023,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6448,7 +17075,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6468,12 +17095,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6488,12 +17119,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6536,7 +17171,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6556,12 +17191,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6576,12 +17215,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6624,7 +17267,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6644,12 +17287,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6664,12 +17311,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6712,7 +17363,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6732,12 +17383,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6752,12 +17407,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6800,7 +17459,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6820,12 +17479,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6840,12 +17503,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6888,7 +17555,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6908,12 +17575,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6928,12 +17599,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6976,7 +17651,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6996,12 +17671,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -7016,12 +17695,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -7064,7 +17747,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -7084,12 +17767,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -7104,12 +17791,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -7152,7 +17843,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -7172,12 +17863,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -7192,12 +17887,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -7240,7 +17939,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -7260,12 +17959,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -7280,12 +17983,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -7328,7 +18035,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -7348,12 +18055,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -7368,12 +18079,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -7394,7 +18109,7 @@ ] }, { - "description": "z hold=Control(Toraboと同じ)。単押しは z", + "description": "外付けキーボード(従来配列) z hold=Control(Toraboと同じ)。単押しは z", "manipulators": [ { "type": "basic", @@ -7409,7 +18124,7 @@ "to": [ { "set_variable": { - "name": "z_ctrl", + "name": "external_z_ctrl", "value": true, "key_up_value": false } @@ -7435,6 +18150,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } diff --git a/.config/karabiner/karabiner.json b/.config/karabiner/karabiner.json index ce898a0..9407c55 100644 --- a/.config/karabiner/karabiner.json +++ b/.config/karabiner/karabiner.json @@ -30,7 +30,7 @@ ], "to": [ { - "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show'" + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show torabo'" } ], "to_after_key_up": [ @@ -623,7 +623,10142 @@ ] }, { - "description": "Torabo 以外で右 Shift の左隣のキーをハイフンにする", + "description": "Mac内蔵JIS専用 f layer (=Torabo L2); hjkl arrows; q Esc; e/u ⌫; p ⌦; a/s Tab; d ⌘; f+n=ABC f+m=あいう; f+b=HUD; 英数 tap=Enter hold=⌘; space hold=Shift [hold=e]", + "manipulators": [ + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "f" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "any", + "to_after_key_up": [ + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud hide'" + } + ] + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show jis'" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 350 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "f", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show jis'" + } + ], + "to_after_key_up": [ + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud hide'" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "tab" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "eisuu_cmd", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "e", + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "f", + "modifiers": [ + "left_command" + ] + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "eisuu_cmd", + "value": true + } + ], + "from": { + "key_code": "e", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "f", + "modifiers": [ + "left_command" + ] + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + } + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + }, + { + "type": "variable_if", + "name": "space_shift", + "value": true + } + ], + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + }, + { + "type": "variable_if", + "name": "eisuu_cmd", + "value": true + } + ], + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "down_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "up_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "right_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "3" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_or_backspace" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "tab" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "tab" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "1" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "escape" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "1", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "escape" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "hyphen" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_or_backspace" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "q" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "tab" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "q", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "w" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_command" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "w", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_command" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "return_or_enter" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_forward" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_forward" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "spacebar", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "space_shift", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_shift" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "spacebar", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "space_shift", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_shift", + "lazy": true + } + ], + "to_if_alone": [ + { + "key_code": "spacebar" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "semicolon" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "japanese_eisuu" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "quote" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "japanese_kana" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "japanese_kana" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + } + ], + "from": { + "key_code": "japanese_eisuu", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "eisuu_cmd", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_command" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "from": { + "key_code": "japanese_eisuu", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "eisuu_cmd", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_command" + } + ], + "to_if_alone": [ + { + "key_code": "return_or_enter" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + } + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "from": { + "key_code": "japanese_kana", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "space_shift", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_shift", + "lazy": true + } + ], + "to_if_alone": [ + { + "key_code": "spacebar" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + } + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "from": { + "key_code": "right_command", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "eisuu_cmd", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "right_command", + "lazy": true + } + ], + "to_if_alone": [ + { + "key_code": "return_or_enter" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + } + }, + { + "type": "basic", + "from": { + "key_code": "e", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "f_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "f" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 d layer: n m , j k l u i o p → 1-0 number pad [hold=w]", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "w", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "d" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "semicolon" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "1" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "1" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "quote" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "2" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "2" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "backslash" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "3" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "backslash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "3" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "4" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "4" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "5" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "5" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "6" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "6" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "hyphen" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "7" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "7" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "equal_sign" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "8" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "8" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "international3" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "9" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "international3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "9" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "w" + }, + { + "key_code": "return_or_enter" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "0" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "d_held", + "value": true + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "0" + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 v layer: punctuation + h→~ + y→¥ [hold=d]", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "d", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "v" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "semicolon" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "comma" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "comma" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "quote" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "period" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "period" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "backslash" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "slash" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "backslash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "slash" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "semicolon" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "semicolon" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "quote" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "quote" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "backslash" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "backslash" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "hyphen" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "hyphen" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "hyphen" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "equal_sign" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "equal_sign" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "equal_sign" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "international3" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "open_bracket" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "international3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "open_bracket" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "return_or_enter" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "close_bracket" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "close_bracket" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "grave_accent_and_tilde", + "modifiers": [ + "left_shift" + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "grave_accent_and_tilde", + "modifiers": [ + "left_shift" + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "0" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "international3" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "v_held", + "value": true + } + ], + "from": { + "key_code": "0", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "international3" + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る [hold=s]", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "s", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "c" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "0" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f12", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f12", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "0", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f12", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f12", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "hyphen" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f7", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f7", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f7", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f7", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "equal_sign" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f8", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f8", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f8", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f8", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "international3" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f9", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f9", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "international3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f9", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f9", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f11", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f11", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f11", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f11", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f4", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f4", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f4", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f4", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f5", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f5", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f5", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f5", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f6", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f6", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f6", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f6", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "return_or_enter" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f10", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f10", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f10", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f10", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "semicolon" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f1", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f1", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f1", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f1", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "quote" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f2", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f2", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f2", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f2", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "s" + }, + { + "key_code": "backslash" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "c_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "f3", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f3", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "c_held", + "value": true + } + ], + "from": { + "key_code": "backslash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "f3", + "conditions": [ + { + "type": "variable_if", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + }, + { + "key_code": "f3", + "modifiers": [ + "fn" + ], + "conditions": [ + { + "type": "variable_unless", + "name": "system.use_fkeys_as_standard_function_keys", + "value": true + } + ] + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control [hold=a]", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + } + ], + "to_if_alone": [ + { + "key_code": "x" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "0" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "volume_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "0", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "volume_increment" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "hyphen" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "rewind" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "rewind" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "equal_sign" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "play_or_pause" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "play_or_pause" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "international3" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "fast_forward" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "international3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "fast_forward" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "volume_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "volume_decrement" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "launchpad" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "launchpad" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "display_brightness_decrement" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "display_brightness_increment" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "return_or_enter" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "mute" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "consumer_key_code": "mute" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "semicolon" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "display_brightness_decrement" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "quote" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "display_brightness_increment" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "a" + }, + { + "key_code": "backslash" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "mission_control" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "x_held", + "value": true + } + ], + "from": { + "key_code": "backslash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "mission_control" + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 Mac JIS 上・外側ずらし(Torabo除外)。物理→出力 / 出力なし / cmd→opt", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "1", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "q" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "2", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "w" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "e" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "4", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "r" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "5", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "t" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "6", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "7", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "8", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "9", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "0", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "y" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "hyphen", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "u" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "equal_sign", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "i" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "international3", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "o" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "q", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "s" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "r", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "g" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "t", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "y", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "u", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "i", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "h" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "j" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "open_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "k" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "close_bracket", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "l" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "f", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "b" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "g", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "h", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "semicolon", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "n" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "quote", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "m" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "backslash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "slash" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "z", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "x", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "c", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "v", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "b", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "n", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "m", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "comma", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "period", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "slash", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "a" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "return_or_enter", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "p" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "international1", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "left_command", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_option" + } + ], + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "left_option", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "right_option", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "e", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "f" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "w", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "d" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "d", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "v" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "s", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "c" + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "x" + } + ] + } + ] + }, + { + "description": "Mac内蔵JIS専用 control tap=z hold=Control(Toraboの z/⌃ を control へ移す)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "left_control", + "modifiers": { + "optional": [ + "caps_lock" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "z_ctrl", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_control", + "lazy": true + } + ], + "to_if_alone": [ + { + "key_code": "z" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + }, + "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + } + ] + }, + { + "description": "外付けキーボード(従来配列) Torabo 以外で右 Shift の左隣のキーをハイフンにする", "manipulators": [ { "type": "basic", @@ -648,6 +10783,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -656,7 +10795,7 @@ ] }, { - "description": "f layer (=Torabo L2); hjkl arrows; q Esc; e/u ⌫; p ⌦; a/s Tab; d ⌘; f+n=ABC f+m=あいう; f+b=HUD; 英数 tap=Enter hold=⌘; space hold=Shift", + "description": "外付けキーボード(従来配列) f layer (=Torabo L2); hjkl arrows; q Esc; e/u ⌫; p ⌦; a/s Tab; d ⌘; f+n=ABC f+m=あいう; f+b=HUD; 英数 tap=Enter hold=⌘; space hold=Shift", "manipulators": [ { "type": "basic", @@ -674,14 +10813,14 @@ "to": [ { "set_variable": { - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true, "key_up_value": false } }, { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -706,6 +10845,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -721,12 +10864,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "eisuu_cmd", + "name": "external_eisuu_cmd", "value": true } ], @@ -741,14 +10888,14 @@ "to": [ { "set_variable": { - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true, "key_up_value": false } }, { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -776,12 +10923,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -809,12 +10960,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -842,12 +10997,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -875,12 +11034,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -908,17 +11071,21 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true }, { "type": "variable_if", - "name": "eisuu_cmd", + "name": "external_eisuu_cmd", "value": true } ], @@ -949,17 +11116,21 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true }, { "type": "variable_if", - "name": "space_shift", + "name": "external_space_shift", "value": true } ], @@ -991,12 +11162,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -1057,6 +11232,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1102,6 +11281,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1147,6 +11330,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1192,6 +11379,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1237,12 +11428,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "eisuu_cmd", + "name": "external_eisuu_cmd", "value": true } ] @@ -1260,7 +11455,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1282,6 +11477,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1311,7 +11510,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1331,6 +11530,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1360,7 +11563,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1380,6 +11583,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1409,7 +11616,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1429,6 +11636,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1458,7 +11669,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1478,6 +11689,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1507,7 +11722,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1527,6 +11742,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1542,12 +11761,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1575,12 +11798,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1608,12 +11835,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1641,12 +11872,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1674,12 +11909,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1721,7 +11960,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1741,6 +11980,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1756,12 +11999,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1803,7 +12050,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1823,6 +12070,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1838,12 +12089,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1885,7 +12140,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1905,6 +12160,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -1920,12 +12179,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -1967,7 +12230,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -1987,6 +12250,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2002,12 +12269,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2049,7 +12320,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -2069,6 +12340,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2084,12 +12359,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2131,7 +12410,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -2151,6 +12430,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2166,12 +12449,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2199,12 +12486,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true } ], @@ -2219,7 +12510,7 @@ "to": [ { "set_variable": { - "name": "space_shift", + "name": "external_space_shift", "value": true, "key_up_value": false } @@ -2242,7 +12533,7 @@ "to": [ { "set_variable": { - "name": "space_shift", + "name": "external_space_shift", "value": true, "key_up_value": false } @@ -2268,6 +12559,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2297,7 +12592,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -2317,6 +12612,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2346,7 +12645,7 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } @@ -2366,6 +12665,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2381,12 +12684,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2414,12 +12721,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2447,12 +12758,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2467,14 +12782,14 @@ "to": [ { "set_variable": { - "name": "eisuu_cmd", + "name": "external_eisuu_cmd", "value": true, "key_up_value": false } }, { "set_variable": { - "name": "f_cmd_layer", + "name": "external_f_cmd_layer", "value": true, "key_up_value": false } @@ -2494,6 +12809,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2509,7 +12828,7 @@ "to": [ { "set_variable": { - "name": "eisuu_cmd", + "name": "external_eisuu_cmd", "value": true, "key_up_value": false } @@ -2537,6 +12856,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2592,13 +12915,13 @@ "to": [ { "set_variable": { - "name": "f_held", + "name": "external_f_held", "value": true, "key_up_value": false } }, { - "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show'" + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show external'" } ], "parameters": { @@ -2612,6 +12935,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } @@ -2627,12 +12954,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "f_held", + "name": "external_f_held", "value": true } ], @@ -2646,7 +12977,7 @@ }, "to": [ { - "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show'" + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show external'" } ], "to_after_key_up": [ @@ -2658,7 +12989,7 @@ ] }, { - "description": "d layer: n m , j k l u i o p → 1-0 number pad", + "description": "外付けキーボード(従来配列) d layer: n m , j k l u i o p → 1-0 number pad", "manipulators": [ { "type": "basic", @@ -2674,7 +13005,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -2696,12 +13027,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -2731,7 +13066,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -2751,12 +13086,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -2771,12 +13110,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -2819,7 +13162,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -2839,12 +13182,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -2859,12 +13206,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -2907,7 +13258,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -2927,12 +13278,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -2947,12 +13302,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -2995,7 +13354,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3015,12 +13374,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3035,12 +13398,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3083,7 +13450,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3103,12 +13470,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3123,12 +13494,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3171,7 +13546,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3191,12 +13566,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3211,12 +13590,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3259,7 +13642,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3279,12 +13662,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3299,12 +13686,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3347,7 +13738,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3367,12 +13758,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3387,12 +13782,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3435,7 +13834,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3455,12 +13854,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3475,12 +13878,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3523,7 +13930,7 @@ "to": [ { "set_variable": { - "name": "d_held", + "name": "external_d_held", "value": true, "key_up_value": false } @@ -3543,12 +13950,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3563,12 +13974,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "d_held", + "name": "external_d_held", "value": true } ], @@ -3589,7 +14004,7 @@ ] }, { - "description": "v layer: punctuation + h→~ + y→¥", + "description": "外付けキーボード(従来配列) v layer: punctuation + h→~ + y→¥", "manipulators": [ { "type": "basic", @@ -3605,7 +14020,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -3627,12 +14042,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3662,7 +14081,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -3682,12 +14101,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3702,12 +14125,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -3750,7 +14177,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -3770,12 +14197,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3790,12 +14221,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -3838,7 +14273,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -3858,12 +14293,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3878,12 +14317,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -3926,7 +14369,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -3946,12 +14389,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -3966,12 +14413,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4014,7 +14465,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4034,12 +14485,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4054,12 +14509,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4102,7 +14561,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4122,12 +14581,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4142,12 +14605,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4190,7 +14657,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4210,12 +14677,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4230,12 +14701,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4278,7 +14753,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4298,12 +14773,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4318,12 +14797,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4366,7 +14849,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4386,12 +14869,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4406,12 +14893,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4454,7 +14945,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4474,12 +14965,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4494,12 +14989,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4542,7 +15041,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4565,12 +15064,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4585,12 +15088,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4636,7 +15143,7 @@ "to": [ { "set_variable": { - "name": "v_held", + "name": "external_v_held", "value": true, "key_up_value": false } @@ -4656,12 +15163,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4676,12 +15187,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "v_held", + "name": "external_v_held", "value": true } ], @@ -4702,7 +15217,7 @@ ] }, { - "description": "c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る", + "description": "外付けキーボード(従来配列) c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る", "manipulators": [ { "type": "basic", @@ -4718,7 +15233,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -4740,12 +15255,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4775,7 +15294,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -4815,12 +15334,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4835,12 +15358,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -4903,7 +15430,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -4943,12 +15470,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -4963,12 +15494,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5031,7 +15566,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5071,12 +15606,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5091,12 +15630,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5159,7 +15702,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5199,12 +15742,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5219,12 +15766,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5287,7 +15838,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5327,12 +15878,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5347,12 +15902,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5415,7 +15974,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5455,12 +16014,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5475,12 +16038,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5543,7 +16110,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5583,12 +16150,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5603,12 +16174,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5671,7 +16246,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5711,12 +16286,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5731,12 +16310,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5799,7 +16382,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5839,12 +16422,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5859,12 +16446,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -5927,7 +16518,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -5967,12 +16558,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -5987,12 +16582,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -6055,7 +16654,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -6095,12 +16694,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6115,12 +16718,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -6183,7 +16790,7 @@ "to": [ { "set_variable": { - "name": "c_held", + "name": "external_c_held", "value": true, "key_up_value": false } @@ -6223,12 +16830,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6243,12 +16854,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "c_held", + "name": "external_c_held", "value": true } ], @@ -6289,7 +16904,7 @@ ] }, { - "description": "x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control", + "description": "外付けキーボード(従来配列) x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control", "manipulators": [ { "type": "basic", @@ -6305,7 +16920,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6327,12 +16942,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6362,7 +16981,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6382,12 +17001,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6402,12 +17025,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6450,7 +17077,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6470,12 +17097,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6490,12 +17121,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6538,7 +17173,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6558,12 +17193,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6578,12 +17217,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6626,7 +17269,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6646,12 +17289,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6666,12 +17313,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6714,7 +17365,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6734,12 +17385,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6754,12 +17409,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6802,7 +17461,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6822,12 +17481,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6842,12 +17505,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6890,7 +17557,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6910,12 +17577,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -6930,12 +17601,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -6978,7 +17653,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -6998,12 +17673,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -7018,12 +17697,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -7066,7 +17749,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -7086,12 +17769,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -7106,12 +17793,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -7154,7 +17845,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -7174,12 +17865,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -7194,12 +17889,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -7242,7 +17941,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -7262,12 +17961,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -7282,12 +17985,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -7330,7 +18037,7 @@ "to": [ { "set_variable": { - "name": "x_held", + "name": "external_x_held", "value": true, "key_up_value": false } @@ -7350,12 +18057,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_unless", - "name": "f_held", + "name": "external_f_held", "value": true } ] @@ -7370,12 +18081,16 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] }, { "type": "variable_if", - "name": "x_held", + "name": "external_x_held", "value": true } ], @@ -7396,7 +18111,7 @@ ] }, { - "description": "z hold=Control(Toraboと同じ)。単押しは z", + "description": "外付けキーボード(従来配列) z hold=Control(Toraboと同じ)。単押しは z", "manipulators": [ { "type": "basic", @@ -7411,7 +18126,7 @@ "to": [ { "set_variable": { - "name": "z_ctrl", + "name": "external_z_ctrl", "value": true, "key_up_value": false } @@ -7437,6 +18152,10 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] } diff --git a/.config/karabiner/keymap-layers-external.json b/.config/karabiner/keymap-layers-external.json new file mode 100644 index 0000000..9a3f012 --- /dev/null +++ b/.config/karabiner/keymap-layers-external.json @@ -0,0 +1,109 @@ +[ + { + "id": "base", + "name": "Base", + "trigger": "通常入力", + "bindings": { + "eisuu": "↩/⌘", + "kana": "↩/⌘", + "space": "␣/⇧", + "z": "z/⌃", + "\\": "-" + } + }, + { + "id": "f", + "name": "f", + "trigger": "f 押し込み中(=Torabo 移動)", + "bindings": { + "q": "Esc", + "e": "⌫", + "u": "⌫", + "p": "⌦", + "a": "⇥", + "s": "⇥", + "d": "⌘", + "h": "←", + "j": "↓", + "k": "↑", + "l": "→", + "n": "ABC", + "m": "あいう", + "b": "map" + } + }, + { + "id": "d", + "name": "d", + "trigger": "d 押し込み中(=Torabo 数字)", + "bindings": { + "n": "1", + "m": "2", + ",": "3", + "j": "4", + "k": "5", + "l": "6", + "u": "7", + "i": "8", + "o": "9", + "p": "0" + } + }, + { + "id": "v", + "name": "v", + "trigger": "v 押し込み中(=Torabo 記号)", + "bindings": { + "n": ",", + "m": ".", + ",": "/", + "j": ";", + "k": "'", + "l": "\\", + "u": "-", + "i": "=", + "o": "[", + "p": "]", + "h": "~", + "y": "¥" + } + }, + { + "id": "c", + "name": "c", + "trigger": "c 押し込み中(=Torabo ファンクション)", + "bindings": { + "y": "F12", + "u": "F7", + "i": "F8", + "o": "F9", + "h": "F11", + "j": "F4", + "k": "F5", + "l": "F6", + "p": "F10", + "n": "F1", + "m": "F2", + ",": "F3" + } + }, + { + "id": "x", + "name": "x", + "trigger": "x 押し込み中(=Torabo メディア)", + "bindings": { + "y": "音量+", + "u": "前", + "i": "再生", + "o": "次", + "h": "音量−", + "j": "Launchpad", + "k": "輝度−", + "l": "輝度+", + "p": "消音", + "n": "輝度−", + "m": "輝度+", + ",": "Mission Control" + } + } +] diff --git a/.config/karabiner/keymap-layers.json b/.config/karabiner/keymap-layers.json index c15793a..e4e97c2 100644 --- a/.config/karabiner/keymap-layers.json +++ b/.config/karabiner/keymap-layers.json @@ -6,108 +6,167 @@ { "id": "base", "name": "Base", - "trigger": "通常入力", + "trigger": "通常入力(上・外側ずらし)", "bindings": { "eisuu": "↩/⌘", - "kana": "↩/⌘", + "kana": "␣/⇧", "space": "␣/⇧", - "z": "z/⌃" + "control": "z/⌃", + "command_l": "⌥", + "command_r": "↩/⌘", + "tab": "a", + "1": "q", + "2": "w", + "3": "e", + "4": "r", + "5": "t", + "0": "y", + "-": "u", + "^": "i", + "¥": "o", + "q": "s", + "w": "d", + "e": "f", + "r": "g", + "o": "h", + "p": "j", + "@": "k", + "[": "l", + "a": "x", + "s": "c", + "d": "v", + "f": "b", + ";": "n", + ":": "m", + "]": "/", + "return": "p", + "6": "∅", + "7": "∅", + "8": "∅", + "9": "∅", + "t": "∅", + "y": "∅", + "u": "∅", + "i": "∅", + "g": "∅", + "h": "∅", + "j": "∅", + "k": "∅", + "l": "∅", + "z": "∅", + "x": "∅", + "c": "∅", + "v": "∅", + "b": "∅", + "n": "∅", + "m": "∅", + ",": "∅", + ".": "∅", + "/": "∅", + "\\": "∅", + "option_l": "∅", + "option_r": "∅" } }, { "id": "f", - "name": "f", - "trigger": "f 押し込み中(=Torabo 移動)", + "name": "e", + "trigger": "e 押し込み中", "bindings": { - "q": "Esc", - "e": "⌫", - "u": "⌫", - "p": "⌦", - "a": "⇥", - "s": "⇥", - "d": "⌘", - "h": "←", - "j": "↓", - "k": "↑", - "l": "→", - "n": "ABC", - "m": "あいう", - "b": "map" - } + "1": "Esc", + "3": "⌫", + "-": "⌫", + "return": "⌦", + "tab": "⇥", + "q": "⇥", + "w": "⌘", + "o": "←", + "p": "↓", + "@": "↑", + "[": "→", + ";": "ABC", + ":": "あいう", + "f": "map" + }, + "hold": "e" }, { "id": "d", - "name": "d", - "trigger": "d 押し込み中(=Torabo 数字)", + "name": "w", + "trigger": "w 押し込み中", "bindings": { - "n": "1", - "m": "2", - ",": "3", - "j": "4", - "k": "5", - "l": "6", - "u": "7", - "i": "8", - "o": "9", - "p": "0" - } + ";": "1", + ":": "2", + "]": "3", + "p": "4", + "@": "5", + "[": "6", + "-": "7", + "^": "8", + "¥": "9", + "return": "0" + }, + "hold": "w" }, { "id": "v", - "name": "v", - "trigger": "v 押し込み中(=Torabo 記号)", + "name": "d", + "trigger": "d 押し込み中", "bindings": { - "n": ",", - "m": ".", - ",": "/", - "j": ";", - "k": "'", - "l": "\\", - "u": "-", - "i": "=", - "o": "[", - "p": "]", - "h": "~", - "y": "¥" - } + ";": ",", + ":": ".", + "]": "/", + "p": ";", + "@": "'", + "[": "\\", + "-": "-", + "^": "=", + "¥": "[", + "return": "]", + "o": "~", + "0": "¥" + }, + "hold": "d" }, { "id": "c", - "name": "c", - "trigger": "c 押し込み中(=Torabo ファンクション)", + "name": "s", + "trigger": "s 押し込み中", "bindings": { - "y": "F12", - "u": "F7", - "i": "F8", - "o": "F9", - "h": "F11", - "j": "F4", - "k": "F5", - "l": "F6", - "p": "F10", - "n": "F1", - "m": "F2", - ",": "F3" - } + "0": "F12", + "-": "F7", + "^": "F8", + "¥": "F9", + "o": "F11", + "p": "F4", + "@": "F5", + "[": "F6", + "return": "F10", + ";": "F1", + ":": "F2", + "]": "F3" + }, + "hold": "s" }, { "id": "x", - "name": "x", - "trigger": "x 押し込み中(=Torabo メディア)", + "name": "a", + "trigger": "a 押し込み中", "bindings": { - "y": "音量+", - "u": "前", - "i": "再生", - "o": "次", - "h": "音量−", - "j": "Launchpad", - "k": "輝度−", - "l": "輝度+", - "p": "消音", - "n": "輝度−", - "m": "輝度+", - ",": "Mission Control" - } + "0": "音量+", + "-": "前", + "^": "再生", + "¥": "次", + "o": "音量−", + "p": "Launchpad", + "@": "輝度−", + "[": "輝度+", + "return": "消音", + ";": "輝度−", + ":": "輝度+", + "]": "Mission Control" + }, + "hold": "a" } ], "rows": [ diff --git a/.config/karabiner/scripts/keymap-hud.html b/.config/karabiner/scripts/keymap-hud.html index dfbb522..d076e1f 100644 --- a/.config/karabiner/scripts/keymap-hud.html +++ b/.config/karabiner/scripts/keymap-hud.html @@ -167,6 +167,24 @@ border-color: rgba(169, 182, 101, 0.4); color: #1d2021; } + .key.shifted { + background: linear-gradient(180deg, #5a524c 0%, #45403d 100%); + border-color: rgba(168, 153, 132, 0.35); + color: var(--fg0); + } + .key.shifted .action { color: var(--fg0); } + .key.dead { + background: #000; + border-color: #000; + box-shadow: none; + color: transparent; + } + .key.dead .shift, + .key.dead .base, + .key.dead .action, + .key.dead .kana, + .key.dead .glyph, + .key.dead .word { display: none; } .key .shift { position: absolute; top: 3px; @@ -250,6 +268,25 @@ letter-spacing: 0.02em; pointer-events: none; } + .key.jis-return .action { + position: absolute; + right: 10px; + top: 50%; + transform: translateY(-50%); + z-index: 2; + margin: 0; + font-size: 14px; + font-weight: 750; + color: var(--fg0); + line-height: 1; + pointer-events: none; + } + .key.jis-return.mapped .action { + color: #1d2021; + } + .key.jis-return.shifted .action { + color: var(--fg0); + } .key.bracket-close { z-index: 3; position: relative; @@ -314,6 +351,8 @@ } .swatch.holder { background: #a04300; } .swatch.mapped { background: #556340; } + .swatch.shifted { background: #5a524c; } + .swatch.dead { background: #000; border: 1px solid #333; } .swatch.normal { background: #3c3836; } /* 分割配列はキーの座標を保ち、レイヤー数が多い場合も全体が画面の幅と高さに収まるようにする。 */ .torabo-keymap .shell { width: min(1240px, 100vw); } @@ -376,19 +415,70 @@