From 79febb615710c2a6816f53eec33233bf4802eb90 Mon Sep 17 00:00:00 2001 From: Hiroki Ishio Date: Wed, 25 Nov 2026 16:34:42 +0900 Subject: [PATCH 1/4] =?UTF-8?q?=E7=B4=94=E6=AD=A3JIS=E3=82=92=E4=B8=8A?= =?UTF-8?q?=E3=83=BB=E5=A4=96=E5=81=B4=E3=81=9A=E3=82=89=E3=81=97=E3=81=AB?= =?UTF-8?q?=E3=81=97=E3=80=81HUD=E3=81=A8=E8=A6=AA=E6=8C=87=E3=82=AD?= =?UTF-8?q?=E3=83=BC=E3=82=92Torabo=E3=81=AB=E5=AF=84=E3=81=9B=E3=82=8B?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 内蔵キーボードだけ文字位置を移し、レイヤー保持も遷移先へ。f+bは常にJISマップ、ToraboのF24は専用マップを出す。 Co-authored-by: Cursor --- .bin/karabiner-keymap-hud | 62 +- .../complex_modifications/f_hjkl_arrows.json | 1864 ++++++++++++++--- .config/karabiner/karabiner.json | 1864 ++++++++++++++--- .config/karabiner/keymap-layers.json | 205 +- .config/karabiner/scripts/keymap-hud.html | 2 +- .config/karabiner/scripts/keymap-hud.js | 4 +- .../scripts/torabo-battery-Info.plist | 16 + .../karabiner/scripts/torabo-battery.swift | 14 +- .config/torabo-zmk/README.md | 2 +- tests/karabiner_f_hjkl_config_test.sh | 20 +- tests/karabiner_hud_device_selection_test.sh | 22 +- tests/karabiner_hud_torabo_dispatch_test.sh | 4 +- tests/karabiner_layer_shortcuts_test.sh | 21 +- tests/karabiner_torabo_battery_test.sh | 48 +- 14 files changed, 3528 insertions(+), 620 deletions(-) create mode 100755 .config/karabiner/scripts/torabo-battery-Info.plist diff --git a/.bin/karabiner-keymap-hud b/.bin/karabiner-keymap-hud index 34cf0fa..3759484 100755 --- a/.bin/karabiner-keymap-hud +++ b/.bin/karabiner-keymap-hud @@ -14,16 +14,20 @@ 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|show jis|show torabo|hide|status|start|stop f + b で使用するキー一覧を表示または非表示にします。 -Torabo 接続時は直近の電池残量も見出しに出します。 + show … Torabo 接続中なら Torabo、なければ内蔵 JIS + show jis … 常に内蔵 JIS(上・外側ずらし) + show torabo … 常に Torabo-tsuki +Torabo 表示時は直近の電池残量も見出しに出します。 USAGE } @@ -71,35 +75,65 @@ 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 local connection connection="$(torabo_connection)" || connection="" + + case "$mode" in + jis) + printf 'show jis\n' >"$CMD_FILE" + return + ;; + torabo) + printf 'show torabo\n' >"$CMD_FILE" + if [[ "$connection" == zmk-ble ]]; then + refresh_battery_async + fi + return + ;; + esac + + # auto: 接続中の Torabo があれば専用表示、なければ内蔵 JIS if [[ -z "$connection" ]]; then - printf 'show\n' >"$CMD_FILE" + printf 'show jis\n' >"$CMD_FILE" return fi printf 'show torabo\n' >"$CMD_FILE" @@ -155,7 +189,17 @@ status_hud() { main() { case "${1:-}" in - show) show_hud ;; + show) + case "${2:-}" in + "") show_hud auto ;; + jis) show_hud jis ;; + torabo) show_hud torabo ;; + *) + 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..d95cf97 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,45 +621,12 @@ ] }, { - "description": "Torabo 以外で右 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 [hold=e]", "manipulators": [ { "type": "basic", "from": { - "key_code": "international1", - "modifiers": { - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "hyphen" - } - ], - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ] - } - ] - }, - { - "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", - "from": { - "key_code": "f", + "key_code": "e", "modifiers": { "mandatory": [ "command" @@ -729,7 +696,7 @@ } ], "from": { - "key_code": "f", + "key_code": "e", "modifiers": { "optional": [ "any" @@ -784,7 +751,7 @@ } ], "from": { - "key_code": "h", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -817,7 +784,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -850,7 +817,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -883,7 +850,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -921,7 +888,7 @@ } ], "from": { - "key_code": "a", + "key_code": "tab", "modifiers": { "optional": [ "any" @@ -962,7 +929,7 @@ } ], "from": { - "key_code": "a", + "key_code": "tab", "modifiers": { "optional": [ "any" @@ -999,7 +966,7 @@ } ], "from": { - "key_code": "a", + "key_code": "tab", "modifiers": { "optional": [ "any" @@ -1020,10 +987,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "h" + "key_code": "o" } ], "simultaneous_options": { @@ -1065,10 +1032,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -1110,10 +1077,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -1155,10 +1122,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -1200,10 +1167,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "a" + "key_code": "tab" } ], "simultaneous_options": { @@ -1248,7 +1215,7 @@ { "type": "basic", "from": { - "key_code": "f", + "key_code": "e", "modifiers": { "optional": [ "caps_lock" @@ -1290,10 +1257,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "h" + "key_code": "o" } ], "simultaneous_options": { @@ -1339,10 +1306,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -1388,10 +1355,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -1437,10 +1404,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -1486,10 +1453,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "e" + "key_code": "3" } ], "simultaneous_options": { @@ -1550,7 +1517,7 @@ } ], "from": { - "key_code": "h", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -1583,7 +1550,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -1616,7 +1583,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -1649,7 +1616,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -1682,7 +1649,7 @@ } ], "from": { - "key_code": "e", + "key_code": "3", "modifiers": { "optional": [ "any" @@ -1700,10 +1667,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "a" + "key_code": "tab" } ], "simultaneous_options": { @@ -1764,7 +1731,7 @@ } ], "from": { - "key_code": "a", + "key_code": "tab", "modifiers": { "optional": [ "any" @@ -1782,10 +1749,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "q" + "key_code": "1" } ], "simultaneous_options": { @@ -1846,7 +1813,7 @@ } ], "from": { - "key_code": "q", + "key_code": "1", "modifiers": { "optional": [ "any" @@ -1864,10 +1831,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "u" + "key_code": "hyphen" } ], "simultaneous_options": { @@ -1928,7 +1895,7 @@ } ], "from": { - "key_code": "u", + "key_code": "hyphen", "modifiers": { "optional": [ "any" @@ -1946,10 +1913,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "s" + "key_code": "q" } ], "simultaneous_options": { @@ -2010,7 +1977,7 @@ } ], "from": { - "key_code": "s", + "key_code": "q", "modifiers": { "optional": [ "any" @@ -2028,10 +1995,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "d" + "key_code": "w" } ], "simultaneous_options": { @@ -2092,7 +2059,7 @@ } ], "from": { - "key_code": "d", + "key_code": "w", "modifiers": { "optional": [ "any" @@ -2110,10 +2077,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "p" + "key_code": "return_or_enter" } ], "simultaneous_options": { @@ -2174,7 +2141,7 @@ } ], "from": { - "key_code": "p", + "key_code": "return_or_enter", "modifiers": { "optional": [ "any" @@ -2276,10 +2243,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "n" + "key_code": "semicolon" } ], "simultaneous_options": { @@ -2325,10 +2292,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "m" + "key_code": "quote" } ], "simultaneous_options": { @@ -2389,7 +2356,7 @@ } ], "from": { - "key_code": "n", + "key_code": "semicolon", "modifiers": { "optional": [ "any" @@ -2422,7 +2389,7 @@ } ], "from": { - "key_code": "m", + "key_code": "quote", "modifiers": { "optional": [ "any" @@ -2549,7 +2516,59 @@ }, "to": [ { - "key_code": "right_command" + "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_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": [ @@ -2566,10 +2585,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "b" + "key_code": "f" } ], "simultaneous_options": { @@ -2596,7 +2615,7 @@ } }, { - "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show'" + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show jis'" } ], "parameters": { @@ -2635,7 +2654,7 @@ } ], "from": { - "key_code": "b", + "key_code": "f", "modifiers": { "optional": [ "any" @@ -2644,7 +2663,7 @@ }, "to": [ { - "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show'" + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show jis'" } ], "to_after_key_up": [ @@ -2656,12 +2675,12 @@ ] }, { - "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 [hold=w]", "manipulators": [ { "type": "basic", "from": { - "key_code": "d", + "key_code": "w", "modifiers": { "optional": [ "caps_lock", @@ -2709,10 +2728,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "n" + "key_code": "semicolon" } ], "simultaneous_options": { @@ -2779,7 +2798,7 @@ } ], "from": { - "key_code": "n", + "key_code": "semicolon", "modifiers": { "optional": [ "any" @@ -2797,10 +2816,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "m" + "key_code": "quote" } ], "simultaneous_options": { @@ -2867,7 +2886,7 @@ } ], "from": { - "key_code": "m", + "key_code": "quote", "modifiers": { "optional": [ "any" @@ -2885,10 +2904,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "comma" + "key_code": "backslash" } ], "simultaneous_options": { @@ -2955,7 +2974,7 @@ } ], "from": { - "key_code": "comma", + "key_code": "backslash", "modifiers": { "optional": [ "any" @@ -2973,10 +2992,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -3043,7 +3062,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -3061,10 +3080,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -3131,7 +3150,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -3149,10 +3168,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -3219,7 +3238,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -3237,10 +3256,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "u" + "key_code": "hyphen" } ], "simultaneous_options": { @@ -3307,7 +3326,7 @@ } ], "from": { - "key_code": "u", + "key_code": "hyphen", "modifiers": { "optional": [ "any" @@ -3325,10 +3344,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "i" + "key_code": "equal_sign" } ], "simultaneous_options": { @@ -3395,7 +3414,7 @@ } ], "from": { - "key_code": "i", + "key_code": "equal_sign", "modifiers": { "optional": [ "any" @@ -3413,10 +3432,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "o" + "key_code": "international3" } ], "simultaneous_options": { @@ -3483,7 +3502,7 @@ } ], "from": { - "key_code": "o", + "key_code": "international3", "modifiers": { "optional": [ "any" @@ -3501,10 +3520,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "p" + "key_code": "return_or_enter" } ], "simultaneous_options": { @@ -3571,7 +3590,7 @@ } ], "from": { - "key_code": "p", + "key_code": "return_or_enter", "modifiers": { "optional": [ "any" @@ -3587,12 +3606,12 @@ ] }, { - "description": "v layer: punctuation + h→~ + y→¥", + "description": "v layer: punctuation + h→~ + y→¥ [hold=d]", "manipulators": [ { "type": "basic", "from": { - "key_code": "v", + "key_code": "d", "modifiers": { "optional": [ "caps_lock", @@ -3640,10 +3659,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "n" + "key_code": "semicolon" } ], "simultaneous_options": { @@ -3710,7 +3729,7 @@ } ], "from": { - "key_code": "n", + "key_code": "semicolon", "modifiers": { "optional": [ "any" @@ -3728,10 +3747,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "m" + "key_code": "quote" } ], "simultaneous_options": { @@ -3798,7 +3817,7 @@ } ], "from": { - "key_code": "m", + "key_code": "quote", "modifiers": { "optional": [ "any" @@ -3816,10 +3835,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "comma" + "key_code": "backslash" } ], "simultaneous_options": { @@ -3886,7 +3905,7 @@ } ], "from": { - "key_code": "comma", + "key_code": "backslash", "modifiers": { "optional": [ "any" @@ -3904,10 +3923,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -3974,7 +3993,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -3992,10 +4011,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -4062,7 +4081,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -4080,10 +4099,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -4150,7 +4169,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -4168,10 +4187,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "u" + "key_code": "hyphen" } ], "simultaneous_options": { @@ -4238,7 +4257,7 @@ } ], "from": { - "key_code": "u", + "key_code": "hyphen", "modifiers": { "optional": [ "any" @@ -4256,10 +4275,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "i" + "key_code": "equal_sign" } ], "simultaneous_options": { @@ -4326,7 +4345,7 @@ } ], "from": { - "key_code": "i", + "key_code": "equal_sign", "modifiers": { "optional": [ "any" @@ -4344,10 +4363,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "o" + "key_code": "international3" } ], "simultaneous_options": { @@ -4414,7 +4433,7 @@ } ], "from": { - "key_code": "o", + "key_code": "international3", "modifiers": { "optional": [ "any" @@ -4432,10 +4451,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "p" + "key_code": "return_or_enter" } ], "simultaneous_options": { @@ -4502,7 +4521,7 @@ } ], "from": { - "key_code": "p", + "key_code": "return_or_enter", "modifiers": { "optional": [ "any" @@ -4520,10 +4539,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "h" + "key_code": "o" } ], "simultaneous_options": { @@ -4593,7 +4612,7 @@ } ], "from": { - "key_code": "h", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -4614,10 +4633,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "y" + "key_code": "0" } ], "simultaneous_options": { @@ -4684,7 +4703,7 @@ } ], "from": { - "key_code": "y", + "key_code": "0", "modifiers": { "optional": [ "any" @@ -4700,12 +4719,12 @@ ] }, { - "description": "c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る", + "description": "c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る [hold=s]", "manipulators": [ { "type": "basic", "from": { - "key_code": "c", + "key_code": "s", "modifiers": { "optional": [ "caps_lock", @@ -4753,10 +4772,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "y" + "key_code": "0" } ], "simultaneous_options": { @@ -4843,7 +4862,7 @@ } ], "from": { - "key_code": "y", + "key_code": "0", "modifiers": { "optional": [ "any" @@ -4881,10 +4900,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "u" + "key_code": "hyphen" } ], "simultaneous_options": { @@ -4971,7 +4990,7 @@ } ], "from": { - "key_code": "u", + "key_code": "hyphen", "modifiers": { "optional": [ "any" @@ -5009,10 +5028,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "i" + "key_code": "equal_sign" } ], "simultaneous_options": { @@ -5099,7 +5118,7 @@ } ], "from": { - "key_code": "i", + "key_code": "equal_sign", "modifiers": { "optional": [ "any" @@ -5137,10 +5156,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "o" + "key_code": "international3" } ], "simultaneous_options": { @@ -5227,7 +5246,7 @@ } ], "from": { - "key_code": "o", + "key_code": "international3", "modifiers": { "optional": [ "any" @@ -5265,10 +5284,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "h" + "key_code": "o" } ], "simultaneous_options": { @@ -5355,7 +5374,7 @@ } ], "from": { - "key_code": "h", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -5393,10 +5412,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -5483,7 +5502,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -5521,10 +5540,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -5611,7 +5630,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -5649,10 +5668,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -5739,7 +5758,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -5777,10 +5796,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "p" + "key_code": "return_or_enter" } ], "simultaneous_options": { @@ -5867,7 +5886,7 @@ } ], "from": { - "key_code": "p", + "key_code": "return_or_enter", "modifiers": { "optional": [ "any" @@ -5905,10 +5924,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "n" + "key_code": "semicolon" } ], "simultaneous_options": { @@ -5995,7 +6014,7 @@ } ], "from": { - "key_code": "n", + "key_code": "semicolon", "modifiers": { "optional": [ "any" @@ -6033,10 +6052,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "m" + "key_code": "quote" } ], "simultaneous_options": { @@ -6123,7 +6142,7 @@ } ], "from": { - "key_code": "m", + "key_code": "quote", "modifiers": { "optional": [ "any" @@ -6161,10 +6180,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "comma" + "key_code": "backslash" } ], "simultaneous_options": { @@ -6251,7 +6270,7 @@ } ], "from": { - "key_code": "comma", + "key_code": "backslash", "modifiers": { "optional": [ "any" @@ -6287,12 +6306,12 @@ ] }, { - "description": "x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control", + "description": "x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control [hold=a]", "manipulators": [ { "type": "basic", "from": { - "key_code": "x", + "key_code": "a", "modifiers": { "optional": [ "caps_lock", @@ -6340,10 +6359,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "y" + "key_code": "0" } ], "simultaneous_options": { @@ -6410,7 +6429,7 @@ } ], "from": { - "key_code": "y", + "key_code": "0", "modifiers": { "optional": [ "any" @@ -6428,10 +6447,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "u" + "key_code": "hyphen" } ], "simultaneous_options": { @@ -6498,7 +6517,7 @@ } ], "from": { - "key_code": "u", + "key_code": "hyphen", "modifiers": { "optional": [ "any" @@ -6516,10 +6535,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "i" + "key_code": "equal_sign" } ], "simultaneous_options": { @@ -6586,7 +6605,7 @@ } ], "from": { - "key_code": "i", + "key_code": "equal_sign", "modifiers": { "optional": [ "any" @@ -6604,10 +6623,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "o" + "key_code": "international3" } ], "simultaneous_options": { @@ -6674,7 +6693,7 @@ } ], "from": { - "key_code": "o", + "key_code": "international3", "modifiers": { "optional": [ "any" @@ -6692,10 +6711,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "h" + "key_code": "o" } ], "simultaneous_options": { @@ -6762,7 +6781,7 @@ } ], "from": { - "key_code": "h", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -6780,10 +6799,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -6850,7 +6869,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -6868,10 +6887,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -6938,7 +6957,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -6956,10 +6975,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -7026,7 +7045,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -7044,10 +7063,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "p" + "key_code": "return_or_enter" } ], "simultaneous_options": { @@ -7114,7 +7133,7 @@ } ], "from": { - "key_code": "p", + "key_code": "return_or_enter", "modifiers": { "optional": [ "any" @@ -7132,10 +7151,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "n" + "key_code": "semicolon" } ], "simultaneous_options": { @@ -7202,7 +7221,7 @@ } ], "from": { - "key_code": "n", + "key_code": "semicolon", "modifiers": { "optional": [ "any" @@ -7220,10 +7239,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "m" + "key_code": "quote" } ], "simultaneous_options": { @@ -7290,7 +7309,7 @@ } ], "from": { - "key_code": "m", + "key_code": "quote", "modifiers": { "optional": [ "any" @@ -7308,10 +7327,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "comma" + "key_code": "backslash" } ], "simultaneous_options": { @@ -7378,7 +7397,7 @@ } ], "from": { - "key_code": "comma", + "key_code": "backslash", "modifiers": { "optional": [ "any" @@ -7394,12 +7413,1361 @@ ] }, { - "description": "z hold=Control(Toraboと同じ)。単押しは z", + "description": "Mac JIS 上・外側ずらし(Torabo除外)。物理→出力 / 出力なし / cmd→opt", "manipulators": [ { "type": "basic", "from": { - "key_code": "z", + "key_code": "1", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "left_option", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + } + ] + }, + { + "description": "control tap=z hold=Control(Toraboの z/⌃ を control へ移す)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "left_control", "modifiers": { "optional": [ "caps_lock" diff --git a/.config/karabiner/karabiner.json b/.config/karabiner/karabiner.json index ce898a0..4556bf3 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,45 +623,12 @@ ] }, { - "description": "Torabo 以外で右 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 [hold=e]", "manipulators": [ { "type": "basic", "from": { - "key_code": "international1", - "modifiers": { - "optional": [ - "any" - ] - } - }, - "to": [ - { - "key_code": "hyphen" - } - ], - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ] - } - ] - }, - { - "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", - "from": { - "key_code": "f", + "key_code": "e", "modifiers": { "mandatory": [ "command" @@ -731,7 +698,7 @@ } ], "from": { - "key_code": "f", + "key_code": "e", "modifiers": { "optional": [ "any" @@ -786,7 +753,7 @@ } ], "from": { - "key_code": "h", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -819,7 +786,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -852,7 +819,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -885,7 +852,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -923,7 +890,7 @@ } ], "from": { - "key_code": "a", + "key_code": "tab", "modifiers": { "optional": [ "any" @@ -964,7 +931,7 @@ } ], "from": { - "key_code": "a", + "key_code": "tab", "modifiers": { "optional": [ "any" @@ -1001,7 +968,7 @@ } ], "from": { - "key_code": "a", + "key_code": "tab", "modifiers": { "optional": [ "any" @@ -1022,10 +989,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "h" + "key_code": "o" } ], "simultaneous_options": { @@ -1067,10 +1034,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -1112,10 +1079,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -1157,10 +1124,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -1202,10 +1169,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "a" + "key_code": "tab" } ], "simultaneous_options": { @@ -1250,7 +1217,7 @@ { "type": "basic", "from": { - "key_code": "f", + "key_code": "e", "modifiers": { "optional": [ "caps_lock" @@ -1292,10 +1259,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "h" + "key_code": "o" } ], "simultaneous_options": { @@ -1341,10 +1308,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -1390,10 +1357,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -1439,10 +1406,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -1488,10 +1455,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "e" + "key_code": "3" } ], "simultaneous_options": { @@ -1552,7 +1519,7 @@ } ], "from": { - "key_code": "h", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -1585,7 +1552,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -1618,7 +1585,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -1651,7 +1618,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -1684,7 +1651,7 @@ } ], "from": { - "key_code": "e", + "key_code": "3", "modifiers": { "optional": [ "any" @@ -1702,10 +1669,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "a" + "key_code": "tab" } ], "simultaneous_options": { @@ -1766,7 +1733,7 @@ } ], "from": { - "key_code": "a", + "key_code": "tab", "modifiers": { "optional": [ "any" @@ -1784,10 +1751,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "q" + "key_code": "1" } ], "simultaneous_options": { @@ -1848,7 +1815,7 @@ } ], "from": { - "key_code": "q", + "key_code": "1", "modifiers": { "optional": [ "any" @@ -1866,10 +1833,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "u" + "key_code": "hyphen" } ], "simultaneous_options": { @@ -1930,7 +1897,7 @@ } ], "from": { - "key_code": "u", + "key_code": "hyphen", "modifiers": { "optional": [ "any" @@ -1948,10 +1915,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "s" + "key_code": "q" } ], "simultaneous_options": { @@ -2012,7 +1979,7 @@ } ], "from": { - "key_code": "s", + "key_code": "q", "modifiers": { "optional": [ "any" @@ -2030,10 +1997,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "d" + "key_code": "w" } ], "simultaneous_options": { @@ -2094,7 +2061,7 @@ } ], "from": { - "key_code": "d", + "key_code": "w", "modifiers": { "optional": [ "any" @@ -2112,10 +2079,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "p" + "key_code": "return_or_enter" } ], "simultaneous_options": { @@ -2176,7 +2143,7 @@ } ], "from": { - "key_code": "p", + "key_code": "return_or_enter", "modifiers": { "optional": [ "any" @@ -2278,10 +2245,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "n" + "key_code": "semicolon" } ], "simultaneous_options": { @@ -2327,10 +2294,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "m" + "key_code": "quote" } ], "simultaneous_options": { @@ -2391,7 +2358,7 @@ } ], "from": { - "key_code": "n", + "key_code": "semicolon", "modifiers": { "optional": [ "any" @@ -2424,7 +2391,7 @@ } ], "from": { - "key_code": "m", + "key_code": "quote", "modifiers": { "optional": [ "any" @@ -2551,7 +2518,59 @@ }, "to": [ { - "key_code": "right_command" + "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_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": [ @@ -2568,10 +2587,10 @@ "from": { "simultaneous": [ { - "key_code": "f" + "key_code": "e" }, { - "key_code": "b" + "key_code": "f" } ], "simultaneous_options": { @@ -2598,7 +2617,7 @@ } }, { - "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show'" + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show jis'" } ], "parameters": { @@ -2637,7 +2656,7 @@ } ], "from": { - "key_code": "b", + "key_code": "f", "modifiers": { "optional": [ "any" @@ -2646,7 +2665,7 @@ }, "to": [ { - "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show'" + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show jis'" } ], "to_after_key_up": [ @@ -2658,12 +2677,12 @@ ] }, { - "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 [hold=w]", "manipulators": [ { "type": "basic", "from": { - "key_code": "d", + "key_code": "w", "modifiers": { "optional": [ "caps_lock", @@ -2711,10 +2730,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "n" + "key_code": "semicolon" } ], "simultaneous_options": { @@ -2781,7 +2800,7 @@ } ], "from": { - "key_code": "n", + "key_code": "semicolon", "modifiers": { "optional": [ "any" @@ -2799,10 +2818,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "m" + "key_code": "quote" } ], "simultaneous_options": { @@ -2869,7 +2888,7 @@ } ], "from": { - "key_code": "m", + "key_code": "quote", "modifiers": { "optional": [ "any" @@ -2887,10 +2906,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "comma" + "key_code": "backslash" } ], "simultaneous_options": { @@ -2957,7 +2976,7 @@ } ], "from": { - "key_code": "comma", + "key_code": "backslash", "modifiers": { "optional": [ "any" @@ -2975,10 +2994,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -3045,7 +3064,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -3063,10 +3082,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -3133,7 +3152,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -3151,10 +3170,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -3221,7 +3240,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -3239,10 +3258,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "u" + "key_code": "hyphen" } ], "simultaneous_options": { @@ -3309,7 +3328,7 @@ } ], "from": { - "key_code": "u", + "key_code": "hyphen", "modifiers": { "optional": [ "any" @@ -3327,10 +3346,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "i" + "key_code": "equal_sign" } ], "simultaneous_options": { @@ -3397,7 +3416,7 @@ } ], "from": { - "key_code": "i", + "key_code": "equal_sign", "modifiers": { "optional": [ "any" @@ -3415,10 +3434,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "o" + "key_code": "international3" } ], "simultaneous_options": { @@ -3485,7 +3504,7 @@ } ], "from": { - "key_code": "o", + "key_code": "international3", "modifiers": { "optional": [ "any" @@ -3503,10 +3522,10 @@ "from": { "simultaneous": [ { - "key_code": "d" + "key_code": "w" }, { - "key_code": "p" + "key_code": "return_or_enter" } ], "simultaneous_options": { @@ -3573,7 +3592,7 @@ } ], "from": { - "key_code": "p", + "key_code": "return_or_enter", "modifiers": { "optional": [ "any" @@ -3589,12 +3608,12 @@ ] }, { - "description": "v layer: punctuation + h→~ + y→¥", + "description": "v layer: punctuation + h→~ + y→¥ [hold=d]", "manipulators": [ { "type": "basic", "from": { - "key_code": "v", + "key_code": "d", "modifiers": { "optional": [ "caps_lock", @@ -3642,10 +3661,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "n" + "key_code": "semicolon" } ], "simultaneous_options": { @@ -3712,7 +3731,7 @@ } ], "from": { - "key_code": "n", + "key_code": "semicolon", "modifiers": { "optional": [ "any" @@ -3730,10 +3749,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "m" + "key_code": "quote" } ], "simultaneous_options": { @@ -3800,7 +3819,7 @@ } ], "from": { - "key_code": "m", + "key_code": "quote", "modifiers": { "optional": [ "any" @@ -3818,10 +3837,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "comma" + "key_code": "backslash" } ], "simultaneous_options": { @@ -3888,7 +3907,7 @@ } ], "from": { - "key_code": "comma", + "key_code": "backslash", "modifiers": { "optional": [ "any" @@ -3906,10 +3925,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -3976,7 +3995,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -3994,10 +4013,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -4064,7 +4083,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -4082,10 +4101,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -4152,7 +4171,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -4170,10 +4189,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "u" + "key_code": "hyphen" } ], "simultaneous_options": { @@ -4240,7 +4259,7 @@ } ], "from": { - "key_code": "u", + "key_code": "hyphen", "modifiers": { "optional": [ "any" @@ -4258,10 +4277,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "i" + "key_code": "equal_sign" } ], "simultaneous_options": { @@ -4328,7 +4347,7 @@ } ], "from": { - "key_code": "i", + "key_code": "equal_sign", "modifiers": { "optional": [ "any" @@ -4346,10 +4365,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "o" + "key_code": "international3" } ], "simultaneous_options": { @@ -4416,7 +4435,7 @@ } ], "from": { - "key_code": "o", + "key_code": "international3", "modifiers": { "optional": [ "any" @@ -4434,10 +4453,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "p" + "key_code": "return_or_enter" } ], "simultaneous_options": { @@ -4504,7 +4523,7 @@ } ], "from": { - "key_code": "p", + "key_code": "return_or_enter", "modifiers": { "optional": [ "any" @@ -4522,10 +4541,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "h" + "key_code": "o" } ], "simultaneous_options": { @@ -4595,7 +4614,7 @@ } ], "from": { - "key_code": "h", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -4616,10 +4635,10 @@ "from": { "simultaneous": [ { - "key_code": "v" + "key_code": "d" }, { - "key_code": "y" + "key_code": "0" } ], "simultaneous_options": { @@ -4686,7 +4705,7 @@ } ], "from": { - "key_code": "y", + "key_code": "0", "modifiers": { "optional": [ "any" @@ -4702,12 +4721,12 @@ ] }, { - "description": "c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る", + "description": "c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る [hold=s]", "manipulators": [ { "type": "basic", "from": { - "key_code": "c", + "key_code": "s", "modifiers": { "optional": [ "caps_lock", @@ -4755,10 +4774,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "y" + "key_code": "0" } ], "simultaneous_options": { @@ -4845,7 +4864,7 @@ } ], "from": { - "key_code": "y", + "key_code": "0", "modifiers": { "optional": [ "any" @@ -4883,10 +4902,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "u" + "key_code": "hyphen" } ], "simultaneous_options": { @@ -4973,7 +4992,7 @@ } ], "from": { - "key_code": "u", + "key_code": "hyphen", "modifiers": { "optional": [ "any" @@ -5011,10 +5030,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "i" + "key_code": "equal_sign" } ], "simultaneous_options": { @@ -5101,7 +5120,7 @@ } ], "from": { - "key_code": "i", + "key_code": "equal_sign", "modifiers": { "optional": [ "any" @@ -5139,10 +5158,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "o" + "key_code": "international3" } ], "simultaneous_options": { @@ -5229,7 +5248,7 @@ } ], "from": { - "key_code": "o", + "key_code": "international3", "modifiers": { "optional": [ "any" @@ -5267,10 +5286,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "h" + "key_code": "o" } ], "simultaneous_options": { @@ -5357,7 +5376,7 @@ } ], "from": { - "key_code": "h", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -5395,10 +5414,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -5485,7 +5504,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -5523,10 +5542,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -5613,7 +5632,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -5651,10 +5670,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -5741,7 +5760,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -5779,10 +5798,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "p" + "key_code": "return_or_enter" } ], "simultaneous_options": { @@ -5869,7 +5888,7 @@ } ], "from": { - "key_code": "p", + "key_code": "return_or_enter", "modifiers": { "optional": [ "any" @@ -5907,10 +5926,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "n" + "key_code": "semicolon" } ], "simultaneous_options": { @@ -5997,7 +6016,7 @@ } ], "from": { - "key_code": "n", + "key_code": "semicolon", "modifiers": { "optional": [ "any" @@ -6035,10 +6054,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "m" + "key_code": "quote" } ], "simultaneous_options": { @@ -6125,7 +6144,7 @@ } ], "from": { - "key_code": "m", + "key_code": "quote", "modifiers": { "optional": [ "any" @@ -6163,10 +6182,10 @@ "from": { "simultaneous": [ { - "key_code": "c" + "key_code": "s" }, { - "key_code": "comma" + "key_code": "backslash" } ], "simultaneous_options": { @@ -6253,7 +6272,7 @@ } ], "from": { - "key_code": "comma", + "key_code": "backslash", "modifiers": { "optional": [ "any" @@ -6289,12 +6308,12 @@ ] }, { - "description": "x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control", + "description": "x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control [hold=a]", "manipulators": [ { "type": "basic", "from": { - "key_code": "x", + "key_code": "a", "modifiers": { "optional": [ "caps_lock", @@ -6342,10 +6361,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "y" + "key_code": "0" } ], "simultaneous_options": { @@ -6412,7 +6431,7 @@ } ], "from": { - "key_code": "y", + "key_code": "0", "modifiers": { "optional": [ "any" @@ -6430,10 +6449,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "u" + "key_code": "hyphen" } ], "simultaneous_options": { @@ -6500,7 +6519,7 @@ } ], "from": { - "key_code": "u", + "key_code": "hyphen", "modifiers": { "optional": [ "any" @@ -6518,10 +6537,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "i" + "key_code": "equal_sign" } ], "simultaneous_options": { @@ -6588,7 +6607,7 @@ } ], "from": { - "key_code": "i", + "key_code": "equal_sign", "modifiers": { "optional": [ "any" @@ -6606,10 +6625,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "o" + "key_code": "international3" } ], "simultaneous_options": { @@ -6676,7 +6695,7 @@ } ], "from": { - "key_code": "o", + "key_code": "international3", "modifiers": { "optional": [ "any" @@ -6694,10 +6713,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "h" + "key_code": "o" } ], "simultaneous_options": { @@ -6764,7 +6783,7 @@ } ], "from": { - "key_code": "h", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -6782,10 +6801,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "j" + "key_code": "p" } ], "simultaneous_options": { @@ -6852,7 +6871,7 @@ } ], "from": { - "key_code": "j", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -6870,10 +6889,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "k" + "key_code": "open_bracket" } ], "simultaneous_options": { @@ -6940,7 +6959,7 @@ } ], "from": { - "key_code": "k", + "key_code": "open_bracket", "modifiers": { "optional": [ "any" @@ -6958,10 +6977,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "l" + "key_code": "close_bracket" } ], "simultaneous_options": { @@ -7028,7 +7047,7 @@ } ], "from": { - "key_code": "l", + "key_code": "close_bracket", "modifiers": { "optional": [ "any" @@ -7046,10 +7065,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "p" + "key_code": "return_or_enter" } ], "simultaneous_options": { @@ -7116,7 +7135,7 @@ } ], "from": { - "key_code": "p", + "key_code": "return_or_enter", "modifiers": { "optional": [ "any" @@ -7134,10 +7153,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "n" + "key_code": "semicolon" } ], "simultaneous_options": { @@ -7204,7 +7223,7 @@ } ], "from": { - "key_code": "n", + "key_code": "semicolon", "modifiers": { "optional": [ "any" @@ -7222,10 +7241,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "m" + "key_code": "quote" } ], "simultaneous_options": { @@ -7292,7 +7311,7 @@ } ], "from": { - "key_code": "m", + "key_code": "quote", "modifiers": { "optional": [ "any" @@ -7310,10 +7329,10 @@ "from": { "simultaneous": [ { - "key_code": "x" + "key_code": "a" }, { - "key_code": "comma" + "key_code": "backslash" } ], "simultaneous_options": { @@ -7380,7 +7399,7 @@ } ], "from": { - "key_code": "comma", + "key_code": "backslash", "modifiers": { "optional": [ "any" @@ -7396,12 +7415,1361 @@ ] }, { - "description": "z hold=Control(Toraboと同じ)。単押しは z", + "description": "Mac JIS 上・外側ずらし(Torabo除外)。物理→出力 / 出力なし / cmd→opt", "manipulators": [ { "type": "basic", "from": { - "key_code": "z", + "key_code": "1", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "left_option", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "conditions": [ + { + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ], + "to": [ + { + "key_code": "vk_none" + } + ] + } + ] + }, + { + "description": "control tap=z hold=Control(Toraboの z/⌃ を control へ移す)", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "left_control", "modifiers": { "optional": [ "caps_lock" diff --git a/.config/karabiner/keymap-layers.json b/.config/karabiner/keymap-layers.json index c15793a..585b76c 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 移動)", + "trigger": "e 押し込み中(旧fレイヤー)", "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 数字)", + "trigger": "w 押し込み中(旧dレイヤー)", "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 記号)", + "trigger": "d 押し込み中(旧vレイヤー)", "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 ファンクション)", + "trigger": "s 押し込み中(旧cレイヤー)", "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 メディア)", + "trigger": "a 押し込み中(旧xレイヤー)", "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..3f9499f 100644 --- a/.config/karabiner/scripts/keymap-hud.html +++ b/.config/karabiner/scripts/keymap-hud.html @@ -387,7 +387,7 @@

Keymap Layers · JIS shape / US legends

if (options.jisReturn) keyEl.classList.add("jis-return"); if (key === "]") keyEl.classList.add("bracket-close"); if (key === "space") keyEl.classList.add("space"); - if (key === layer.id) keyEl.classList.add("holder"); + if (key === (layer.hold || layer.id)) keyEl.classList.add("holder"); if (mapped) keyEl.classList.add("mapped"); const mods = new Set([ diff --git a/.config/karabiner/scripts/keymap-hud.js b/.config/karabiner/scripts/keymap-hud.js index 82f0038..9201fc0 100755 --- a/.config/karabiner/scripts/keymap-hud.js +++ b/.config/karabiner/scripts/keymap-hud.js @@ -56,6 +56,8 @@ function batterySubtitle(path) { function keymapDisplayScript(command, path, batteryPath) { const showJis = 'window.showKeymap("jis")'; + // show / show jis → 内蔵 JIS。show torabo だけ Torabo 専用表示。 + if (command === "show" || command === "show jis") return showJis; if (command !== "show torabo") return showJis; try { // 表示のたびにToraboの表示用JSONと、保存された電池残量を読み込む。 @@ -135,7 +137,7 @@ function run(argv) { return; } lastCmd = cmd; - if (cmd === "show" || cmd === "show torabo") { + if (cmd === "show" || cmd === "show jis" || cmd === "show torabo") { // 表示内容を切り替えてからパネルを開く。電池は同ディレクトリのキャッシュを読む。 const batteryPath = cmdPath.replace(/[^/]+$/, "torabo-battery.json"); webView.evaluateJavaScriptCompletionHandler( diff --git a/.config/karabiner/scripts/torabo-battery-Info.plist b/.config/karabiner/scripts/torabo-battery-Info.plist new file mode 100755 index 0000000..f6610f1 --- /dev/null +++ b/.config/karabiner/scripts/torabo-battery-Info.plist @@ -0,0 +1,16 @@ + + + + + CFBundleIdentifier + jp.k-mass.torabo-battery + CFBundleName + torabo-battery + CFBundleVersion + 1 + NSBluetoothAlwaysUsageDescription + Torabo-tsuki S の左右の電池残量をキー一覧に表示するために使います。 + NSBluetoothPeripheralUsageDescription + Torabo-tsuki S の左右の電池残量をキー一覧に表示するために使います。 + + diff --git a/.config/karabiner/scripts/torabo-battery.swift b/.config/karabiner/scripts/torabo-battery.swift index 6f67d6f..fbd1526 100644 --- a/.config/karabiner/scripts/torabo-battery.swift +++ b/.config/karabiner/scripts/torabo-battery.swift @@ -51,12 +51,24 @@ final class Reader: NSObject, CBCentralManagerDelegate, CBPeripheralDelegate { func start() { central = CBCentralManager(delegate: self, queue: nil, options: [CBCentralManagerOptionShowPowerAlertKey: false]) - DispatchQueue.main.asyncAfter(deadline: .now() + 3) { self.emit() } + // 初回の Bluetooth 許可ダイアログや GATT 応答待ちの余裕を見る。 + DispatchQueue.main.asyncAfter(deadline: .now() + 5) { self.emit() } } func centralManagerDidUpdateState(_ central: CBCentralManager) { if central.state == .unknown || central.state == .resetting { return } guard central.state == .poweredOn else { emit(); return } + if #available(macOS 10.15, *) { + // 未許可のまま読みに行くと Karabiner 経由で Abort することがある。 + switch CBCentralManager.authorization { + case .denied, .restricted: + FileHandle.standardError.write(Data("bluetooth authorization denied\n".utf8)) + emit() + return + default: + break + } + } guard target == nil else { return } let candidates = central.retrieveConnectedPeripherals(withServices: [bas]) .filter { $0.name?.caseInsensitiveCompare("Torabo-tsuki S") == .orderedSame } diff --git a/.config/torabo-zmk/README.md b/.config/torabo-zmk/README.md index c6c87fd..2fd38f2 100644 --- a/.config/torabo-zmk/README.md +++ b/.config/torabo-zmk/README.md @@ -52,7 +52,7 @@ ZMK Studioで保存した割り当ては再書き込み後も残ります。リ - **予備:** USB接続中にシリアルを1200bpsで開いて閉じる。`ls /dev/tty.usb*` でポートを確認し、`screen /dev/tty.usbmodem… 1200` のあと `Ctrl+a` → `k` → `y`。 - **settings reset 直後など、通常起動しないとき:** マイコンの BOOT と GND をショートしたままUSB接続します。 -Bluetooth接続ではZMK版がキーボードとマウスの両方として認識されます。[Karabinerの設定](../karabiner/karabiner.json)ではToraboを明示的に処理対象にし、F24での一覧表示と、F1〜F12を標準ファンクションキーとして送る処理を行います。ToraboのFを長押ししながらBを押すと、Bを押している間にキー一覧が表示されます。Bluetooth接続で取得できた左右の電池残量は、次回の一覧表示で確認できます。初回はBluetoothの許可が必要な場合があります。 +Bluetooth接続ではZMK版がキーボードとマウスの両方として認識されます。[Karabinerの設定](../karabiner/karabiner.json)ではToraboを明示的に処理対象にし、F24での一覧表示と、F1〜F12を標準ファンクションキーとして送る処理を行います。ToraboのFを長押ししながらBを押すと、Bを押している間にキー一覧が表示されます。Bluetooth接続時は裏で左右の電池残量を読み、**次回**の一覧表示の見出しに出します(例: `右 80% · 左 70%`)。初回は「このMacのBluetoothを許可」などのダイアログが出ることがあり、システム設定 → プライバシーとセキュリティ → Bluetooth で `torabo-battery` や Karabiner-Elements がオンになっている必要があります。USBのみの接続では残量は取れません。 ## Vialに戻すとき diff --git a/tests/karabiner_f_hjkl_config_test.sh b/tests/karabiner_f_hjkl_config_test.sh index 2ef2a51..9a3dbf7 100755 --- a/tests/karabiner_f_hjkl_config_test.sh +++ b/tests/karabiner_f_hjkl_config_test.sh @@ -55,8 +55,8 @@ for layer_id in base f d v c x; do exit 1 fi done -if ! grep -Fq '"z": "z/⌃"' "$LAYERS_FILE"; then - echo "ベースレイヤーに z hold=Control の表示がありません。" >&2 +if ! grep -Fq '"control": "z/⌃"' "$LAYERS_FILE"; then + echo "ベースレイヤーに control tap=z hold=Control の表示がありません。" >&2 exit 1 fi @@ -98,7 +98,8 @@ for expected in \ '"key_code": "up_arrow"' \ '"key_code": "right_arrow"' \ '"key_code": "delete_or_backspace"' \ - 'karabiner-keymap-hud show' \ + 'karabiner-keymap-hud show jis' \ + 'karabiner-keymap-hud show torabo' \ 'karabiner-keymap-hud hide' \ '"mandatory": [' \ 'left_command' \ @@ -113,8 +114,9 @@ for expected in \ 'left_shift' \ 'spacebar' \ '"name": "d_held"' \ + '"key_code": "w"' \ '"key_code": "d"' \ - '"key_code": "comma"' \ + '"key_code": "semicolon"' \ '"key_code": "1"' \ '"key_code": "0"' \ 'd layer' \ @@ -126,7 +128,7 @@ for expected in \ 'x layer' \ '"key_code": "z"' \ 'left_control' \ - 'z hold=Control' \ + 'control tap=z hold=Control' \ '"key_code": "escape"' \ '"key_code": "delete_forward"' \ 'launchpad' \ @@ -143,8 +145,12 @@ for expected in \ done # プロファイルでルールが有効化されていることを確認する。 -if ! grep -Fq 'karabiner-keymap-hud show' "$CONFIG_FILE"; then - echo "Karabiner プロファイルに f+m HUD ルールが有効化されていません。" >&2 +if ! grep -Fq 'karabiner-keymap-hud show jis' "$CONFIG_FILE"; then + echo "Karabiner プロファイルに内蔵向け HUD(show jis)ルールがありません。" >&2 + exit 1 +fi +if ! grep -Fq '"kana": "␣/⇧"' "$LAYERS_FILE" || ! grep -Fq '"command_r": "↩/⌘"' "$LAYERS_FILE"; then + echo "ベースレイヤーに右あいう=␣/⇧・右command=↩/⌘ の表示がありません。" >&2 exit 1 fi if ! grep -Fq 'japanese_eisuu' "$CONFIG_FILE" || ! grep -Fq 'japanese_kana' "$CONFIG_FILE"; then diff --git a/tests/karabiner_hud_device_selection_test.sh b/tests/karabiner_hud_device_selection_test.sh index 9c944b3..6076f17 100644 --- a/tests/karabiner_hud_device_selection_test.sh +++ b/tests/karabiner_hud_device_selection_test.sh @@ -64,14 +64,26 @@ expect_display() { fi } -expect_display disconnected show +expect_display disconnected 'show jis' expect_display usb 'show torabo' expect_display ble 'show torabo' expect_display both 'show torabo' -expect_display unrelated show -expect_display failure show -expect_display disconnected show -KARABINER_HUD_HIDUTIL="$fixture/見つからない" expect_display usb show +expect_display unrelated 'show jis' +expect_display failure 'show jis' +expect_display disconnected 'show jis' +KARABINER_HUD_HIDUTIL="$fixture/見つからない" expect_display usb 'show jis' + +# Mac の f+b 相当は常に JIS、Torabo の F24 相当は常に Torabo +HUD_TEST_DEVICES=usb bash "$launcher" show jis +[[ "$(cat "$state_dir/command")" == 'show jis' ]] || { + echo "show jis が Torabo 接続中でも JIS になりません。" >&2 + exit 1 +} +HUD_TEST_DEVICES=disconnected bash "$launcher" show torabo +[[ "$(cat "$state_dir/command")" == 'show torabo' ]] || { + echo "show torabo が未接続でも Torabo 指定になりません。" >&2 + exit 1 +} bash "$launcher" hide [[ "$(cat "$state_dir/command")" == hide ]] diff --git a/tests/karabiner_hud_torabo_dispatch_test.sh b/tests/karabiner_hud_torabo_dispatch_test.sh index 168a2d7..9318079 100644 --- a/tests/karabiner_hud_torabo_dispatch_test.sh +++ b/tests/karabiner_hud_torabo_dispatch_test.sh @@ -24,9 +24,11 @@ assert.deepEqual(calls, ["torabo"]); assert.equal(browser.window.__TORABO_KEYMAP__.name, "Torabo "); vm.runInContext(sandbox.keymapDisplayScript("show", "torabo-tsuki-s.json"), browser); assert.deepEqual(calls, ["torabo", "jis"]); +vm.runInContext(sandbox.keymapDisplayScript("show jis", "torabo-tsuki-s.json"), browser); +assert.deepEqual(calls, ["torabo", "jis", "jis"]); definition = "設定が壊れている"; vm.runInContext(sandbox.keymapDisplayScript("show torabo", "torabo-tsuki-s.json"), browser); -assert.deepEqual(calls, ["torabo", "jis", "jis"]); +assert.deepEqual(calls, ["torabo", "jis", "jis", "jis"]); const html = sandbox.buildHtmlDocument("", '{"label":""}', "function buildToraboKeymap() {}"); assert.equal((html.match(/<\/script>/g) || []).length, 2); console.log("成功: 内蔵・Torabo用の表示指示を選び、データ不良時は内蔵表示に戻ります。"); diff --git a/tests/karabiner_layer_shortcuts_test.sh b/tests/karabiner_layer_shortcuts_test.sh index 6a5b845..4cfa2a1 100644 --- a/tests/karabiner_layer_shortcuts_test.sh +++ b/tests/karabiner_layer_shortcuts_test.sh @@ -15,15 +15,18 @@ from pathlib import Path # 数字と記号の出力は、設定ファイルの値ではなく利用者向けのキー配列から定義する。 LAYER_OUTPUTS = { - "d": { - "n": "1", "m": "2", "comma": "3", "j": "4", "k": "5", - "l": "6", "u": "7", "i": "8", "o": "9", "p": "0", + # hold keys: d→w, v→d. chord keys follow letter homes after 上・外側ずらし. + "w": { + "semicolon": "1", "quote": "2", "backslash": "3", "p": "4", "open_bracket": "5", + "close_bracket": "6", "hyphen": "7", "equal_sign": "8", "international3": "9", + "return_or_enter": "0", }, - "v": { - "n": "comma", "m": "period", "comma": "slash", "j": "semicolon", - "k": "quote", "l": "backslash", "u": "hyphen", "i": "equal_sign", - "o": "open_bracket", "p": "close_bracket", "h": "grave_accent_and_tilde", - "y": "international3", + "d": { + "semicolon": "comma", "quote": "period", "backslash": "slash", "p": "semicolon", + "open_bracket": "quote", "close_bracket": "backslash", "hyphen": "hyphen", + "equal_sign": "equal_sign", "international3": "open_bracket", + "return_or_enter": "close_bracket", "o": "grave_accent_and_tilde", + "0": "international3", }, } SIDED_MODIFIERS = ("command", "control", "option", "shift") @@ -53,7 +56,7 @@ def main(): def verify_chord(manipulators, layer, key, output): # Shift の記号入力を維持し、左右の Command、Control、Option では同時押しを変換しない。 expected = {"key_code": output} - if (layer, key) == ("v", "h"): + if (layer, key) == ("d", "o"): expected["modifiers"] = ["left_shift"] for modifiers in ACCEPTED_MODIFIERS: result = chord_outputs(manipulators, (layer, key), modifiers) diff --git a/tests/karabiner_torabo_battery_test.sh b/tests/karabiner_torabo_battery_test.sh index 9d34d02..3d4d2e7 100644 --- a/tests/karabiner_torabo_battery_test.sh +++ b/tests/karabiner_torabo_battery_test.sh @@ -20,26 +20,42 @@ printf 'idle\n' >"$state/command" export HUD_TEST_PROCESS="/usr/bin/osascript -l JavaScript $root/.config/karabiner/scripts/keymap-hud.js daemon $root/.config/karabiner/scripts/keymap-hud.html $root/.config/karabiner/keymap-layers.json $state/daemon.pid $state/command" # 起動済みのHUDと遅いコンパイラーを模擬し、macOSの画面や実機には触れない。 -cat >"$BASH_ENV" <<'SH' -kill() { [[ "$*" == '-0 12345' ]]; } -ps() { printf '%s\n' "$HUD_TEST_PROCESS"; } -function /usr/bin/swiftc() { - local last="" - for last; do :; done - printf 'compile\n' >>"$HUD_TEST_FIXTURE/compilations" - for attempt in {1..100}; do - [[ ! -d "$HUD_TEST_FIXTURE" ]] && return 1 - [[ -f "$HUD_TEST_FIXTURE/release" ]] && break - sleep 0.05 - done - [[ -f "$HUD_TEST_FIXTURE/release" ]] || return 1 - cat >"$last" <<'READER' +# 絶対パス呼び出しを避けるため、swiftc / codesign は PATH 上のスタブにする。 +mkdir -p "$fixture/bin" +cat >"$fixture/bin/swiftc" <<'SH' +#!/usr/bin/env bash +set -euo pipefail +# -o の直後だけを出力先にする(末尾の Info.plist 引数と取り違えない)。 +out="" +prev="" +for arg; do + if [[ "$prev" == "-o" ]]; then out="$arg"; fi + prev="$arg" +done +[[ -n "$out" ]] || exit 1 +printf 'compile\n' >>"$HUD_TEST_FIXTURE/compilations" +for attempt in {1..100}; do + [[ ! -d "$HUD_TEST_FIXTURE" ]] && exit 1 + [[ -f "$HUD_TEST_FIXTURE/release" ]] && break + sleep 0.05 +done +[[ -f "$HUD_TEST_FIXTURE/release" ]] || exit 1 +cat >"$out" <<'READER' #!/usr/bin/env bash printf 'read\n' >>"$HUD_TEST_FIXTURE/reads" printf '%s\n' '{"right":80,"left":30}' READER - chmod +x "$last" -} +chmod +x "$out" +SH +cat >"$fixture/bin/codesign" <<'SH' +#!/usr/bin/env bash +exit 0 +SH +chmod +x "$fixture/bin/swiftc" "$fixture/bin/codesign" +export PATH="$fixture/bin:$PATH" +cat >"$BASH_ENV" <<'SH' +kill() { [[ "$*" == '-0 12345' ]]; } +ps() { printf '%s\n' "$HUD_TEST_PROCESS"; } SH cat >"$KARABINER_HUD_HIDUTIL" <<'SH' #!/usr/bin/env bash From f1de1b12002f0fae158372bce8eed0a7cc9fcfc0 Mon Sep 17 00:00:00 2001 From: Hiroki Ishio Date: Wed, 25 Nov 2026 16:46:43 +0900 Subject: [PATCH 2/4] =?UTF-8?q?=E5=86=85=E8=94=B5=E3=81=AE=E3=83=9E?= =?UTF-8?q?=E3=83=83=E3=83=97=E8=A1=A8=E7=A4=BA=E3=81=8C=20show=20jis=20?= =?UTF-8?q?=E3=81=A7=E6=8F=A1=E3=82=8A=E3=81=A4=E3=81=B6=E3=81=95=E3=82=8C?= =?UTF-8?q?=E3=81=AA=E3=81=84=E3=82=88=E3=81=86=E3=81=AB=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 常駐デーモン向けには show を渡し、e 長押し後の HUD 判定を先に評価する。 Co-authored-by: Cursor --- .bin/karabiner-keymap-hud | 5 +- .../complex_modifications/f_hjkl_arrows.json | 264 +++++++++--------- .config/karabiner/karabiner.json | 264 +++++++++--------- tests/karabiner_hud_device_selection_test.sh | 16 +- 4 files changed, 275 insertions(+), 274 deletions(-) diff --git a/.bin/karabiner-keymap-hud b/.bin/karabiner-keymap-hud index 3759484..b4a81d4 100755 --- a/.bin/karabiner-keymap-hud +++ b/.bin/karabiner-keymap-hud @@ -119,7 +119,8 @@ show_hud() { case "$mode" in jis) - printf 'show jis\n' >"$CMD_FILE" + # 常駐デーモンは show / show torabo を見る。JIS強制は show を書く。 + printf 'show\n' >"$CMD_FILE" return ;; torabo) @@ -133,7 +134,7 @@ show_hud() { # auto: 接続中の Torabo があれば専用表示、なければ内蔵 JIS if [[ -z "$connection" ]]; then - printf 'show jis\n' >"$CMD_FILE" + printf 'show\n' >"$CMD_FILE" return fi printf 'show torabo\n' >"$CMD_FILE" diff --git a/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json b/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json index d95cf97..14be3f8 100644 --- a/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json +++ b/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json @@ -623,6 +623,138 @@ { "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 [hold=e]", "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "e", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "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": { @@ -1212,46 +1344,6 @@ } ] }, - { - "type": "basic", - "from": { - "key_code": "e", - "modifiers": { - "optional": [ - "caps_lock" - ] - } - }, - "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_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ] - }, { "type": "basic", "from": { @@ -2579,98 +2671,6 @@ "parameters": { "basic.to_if_alone_timeout_milliseconds": 200 } - }, - { - "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_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ] - }, - { - "type": "basic", - "conditions": [ - { - "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'" - } - ] } ] }, diff --git a/.config/karabiner/karabiner.json b/.config/karabiner/karabiner.json index 4556bf3..f828c8a 100644 --- a/.config/karabiner/karabiner.json +++ b/.config/karabiner/karabiner.json @@ -625,6 +625,138 @@ { "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 [hold=e]", "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "e", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "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": { @@ -1214,46 +1346,6 @@ } ] }, - { - "type": "basic", - "from": { - "key_code": "e", - "modifiers": { - "optional": [ - "caps_lock" - ] - } - }, - "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_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ] - }, { "type": "basic", "from": { @@ -2581,98 +2673,6 @@ "parameters": { "basic.to_if_alone_timeout_milliseconds": 200 } - }, - { - "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_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ] - }, - { - "type": "basic", - "conditions": [ - { - "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'" - } - ] } ] }, diff --git a/tests/karabiner_hud_device_selection_test.sh b/tests/karabiner_hud_device_selection_test.sh index 6076f17..c7a68f6 100644 --- a/tests/karabiner_hud_device_selection_test.sh +++ b/tests/karabiner_hud_device_selection_test.sh @@ -64,19 +64,19 @@ expect_display() { fi } -expect_display disconnected 'show jis' +expect_display disconnected show expect_display usb 'show torabo' expect_display ble 'show torabo' expect_display both 'show torabo' -expect_display unrelated 'show jis' -expect_display failure 'show jis' -expect_display disconnected 'show jis' -KARABINER_HUD_HIDUTIL="$fixture/見つからない" expect_display usb 'show jis' +expect_display unrelated show +expect_display failure show +expect_display disconnected show +KARABINER_HUD_HIDUTIL="$fixture/見つからない" expect_display usb show -# Mac の f+b 相当は常に JIS、Torabo の F24 相当は常に Torabo +# Mac の f+b 相当(show jis)は Torabo 接続中でもデーモンへは show(JIS)を渡す HUD_TEST_DEVICES=usb bash "$launcher" show jis -[[ "$(cat "$state_dir/command")" == 'show jis' ]] || { - echo "show jis が Torabo 接続中でも JIS になりません。" >&2 +[[ "$(cat "$state_dir/command")" == show ]] || { + echo "show jis が Torabo 接続中でもデーモン向け show になりません。" >&2 exit 1 } HUD_TEST_DEVICES=disconnected bash "$launcher" show torabo From 55d4e64d62a8cb7c9da9d11a69f3d443c4b7be38 Mon Sep 17 00:00:00 2001 From: Hiroki Ishio Date: Wed, 25 Nov 2026 18:16:44 +0900 Subject: [PATCH 3/4] =?UTF-8?q?JIS=E3=83=9E=E3=83=83=E3=83=97=E3=82=92?= =?UTF-8?q?=E7=A7=BB=E5=8B=95=E5=BE=8C=E8=A1=A8=E7=A4=BA=E3=81=AB=E6=8F=83?= =?UTF-8?q?=E3=81=88=E3=80=81=E5=87=BA=E5=8A=9B=E3=81=AA=E3=81=97=E3=82=92?= =?UTF-8?q?=E9=BB=92=E3=83=BB=E6=97=A7=E3=83=AC=E3=82=A4=E3=83=A4=E3=83=BC?= =?UTF-8?q?=E8=A1=A8=E8=A8=98=E3=82=92=E3=82=84=E3=82=81=E3=82=8B=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 押し込み中はレイヤー割当と移動後のみ出し、未割当は文字なしにする。 Co-authored-by: Cursor --- .config/karabiner/keymap-layers.json | 20 +-- .config/karabiner/scripts/keymap-hud.html | 159 +++++++++++++++++----- 2 files changed, 134 insertions(+), 45 deletions(-) diff --git a/.config/karabiner/keymap-layers.json b/.config/karabiner/keymap-layers.json index 585b76c..e4e97c2 100644 --- a/.config/karabiner/keymap-layers.json +++ b/.config/karabiner/keymap-layers.json @@ -70,8 +70,8 @@ }, { "id": "f", - "name": "f", - "trigger": "e 押し込み中(旧fレイヤー)", + "name": "e", + "trigger": "e 押し込み中", "bindings": { "1": "Esc", "3": "⌫", @@ -92,8 +92,8 @@ }, { "id": "d", - "name": "d", - "trigger": "w 押し込み中(旧dレイヤー)", + "name": "w", + "trigger": "w 押し込み中", "bindings": { ";": "1", ":": "2", @@ -110,8 +110,8 @@ }, { "id": "v", - "name": "v", - "trigger": "d 押し込み中(旧vレイヤー)", + "name": "d", + "trigger": "d 押し込み中", "bindings": { ";": ",", ":": ".", @@ -130,8 +130,8 @@ }, { "id": "c", - "name": "c", - "trigger": "s 押し込み中(旧cレイヤー)", + "name": "s", + "trigger": "s 押し込み中", "bindings": { "0": "F12", "-": "F7", @@ -150,8 +150,8 @@ }, { "id": "x", - "name": "x", - "trigger": "a 押し込み中(旧xレイヤー)", + "name": "a", + "trigger": "a 押し込み中", "bindings": { "0": "音量+", "-": "前", diff --git a/.config/karabiner/scripts/keymap-hud.html b/.config/karabiner/scripts/keymap-hud.html index 3f9499f..1475f5e 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,69 @@

Keymap Layers · JIS shape / US legends

return wrap; } + function isDeadBinding(value) { + return value === "∅" || value === "" || value === null; + } + + function baseDeadKeys(def) { + const base = (def.layers || []).find((layer) => layer.id === "base"); + const dead = new Set(); + if (!base || !base.bindings) return dead; + for (const [key, value] of Object.entries(base.bindings)) { + if (isDeadBinding(value)) dead.add(key); + } + return dead; + } + + function baseBindings(def) { + const base = (def.layers || []).find((layer) => layer.id === "base"); + return (base && base.bindings) || {}; + } + function createKey(key, layer, def, options = {}) { if (key === "arrow_cluster") return createArrowCluster(); const bindings = layer.bindings || {}; - const mapped = bindings[key]; + const isHoldLayer = layer.id !== "base"; + const isHoldKey = key === (layer.hold || layer.id); + const layerMapped = Object.prototype.hasOwnProperty.call(bindings, key) ? bindings[key] : undefined; + const baseMapped = baseBindings(def)[key]; + const fromLayer = layerMapped !== undefined && !isDeadBinding(layerMapped); + const fromBaseShift = !fromLayer && baseMapped !== undefined && !isDeadBinding(baseMapped); + + // 押し込み中: レイヤー割当 → 移動後のみ。出力なし・未割当・押し込みキー自体は文字なし。 + let mapped; + let dead = false; + if (fromLayer) { + mapped = layerMapped; + } else if (isHoldKey) { + mapped = undefined; + } else if (baseDeadKeys(def).has(key) || isDeadBinding(baseMapped)) { + dead = true; + } else if (fromBaseShift) { + mapped = baseMapped; + } else if (isHoldLayer) { + dead = true; + } else { + mapped = undefined; + } + const keyEl = document.createElement("div"); keyEl.className = "key"; keyEl.style.cssText = widthStyle((def.key_widths && def.key_widths[key]) || 1); if (options.jisReturn) keyEl.classList.add("jis-return"); if (key === "]") keyEl.classList.add("bracket-close"); if (key === "space") keyEl.classList.add("space"); - if (key === (layer.hold || layer.id)) keyEl.classList.add("holder"); - if (mapped) keyEl.classList.add("mapped"); + if (isHoldKey) keyEl.classList.add("holder"); + if (dead) { + keyEl.classList.add("dead"); + if (options.jisReturn) { + keyEl.style.background = "#000"; + keyEl.replaceChildren(); + } + return keyEl; + } + if (mapped) keyEl.classList.add(fromLayer || layer.id === "base" ? "mapped" : "shifted"); const mods = new Set([ "esc", "delete", "tab", "control", "shift_l", "shift_r", "return", @@ -397,26 +486,19 @@

Keymap Layers · JIS shape / US legends

]); if (mods.has(key)) keyEl.classList.add("mod"); - // 出力キーに対応する Shift 記号があるなら上段に出す(数字・,./ など) - const mappedShift = mapped && ((def.us_shift_labels && def.us_shift_labels[mapped]) || (def.shift_labels && def.shift_labels[mapped])); - const shift = !mappedShift && def.shift_labels && def.shift_labels[key]; - if (shift) { - const shiftEl = document.createElement("div"); - shiftEl.className = "shift"; - shiftEl.textContent = shift; - keyEl.appendChild(shiftEl); - } - const glyph = def.key_glyphs && def.key_glyphs[key]; if (options.jisReturn) { // Apple JIS return: top full-width, bottom left inset ~19% (official asset ratio). const gid = `retGrad-${layer.id}-${Math.random().toString(36).slice(2, 7)}`; + const layered = fromLayer || layer.id === "base"; + const fillTop = mapped ? (layered ? "#6f8250" : "#5a524c") : "#45403d"; + const fillBot = mapped ? (layered ? "#556340" : "#45403d") : "#3c3836"; keyEl.innerHTML = ` `; - const g = document.createElement("div"); - g.className = "glyph"; - g.textContent = glyph || "↩"; - const w = document.createElement("div"); - w.className = "word"; - w.textContent = "return"; - keyEl.appendChild(g); - keyEl.appendChild(w); + if (mapped) { + const action = document.createElement("div"); + action.className = "action"; + action.textContent = mapped; + keyEl.appendChild(action); + } else if (!isHoldLayer) { + const action = document.createElement("div"); + action.className = "action"; + action.textContent = glyph || "↩"; + keyEl.appendChild(action); + } return keyEl; } + // 移動後の出力(またはレイヤー割り当て)だけを表示する if (mapped) { - const label = document.createElement("div"); - label.className = mappedShift ? "shift" : "base"; - label.textContent = mappedShift || displayName(key, def); - keyEl.appendChild(label); const action = document.createElement("div"); action.className = "action"; action.textContent = mapped; if (mapped.length > 8) keyEl.dataset.longLabel = ""; keyEl.appendChild(action); - } else if (key !== "space") { + } else if (!isHoldLayer && key !== "space") { const name = displayName(key, def); if (!name && !glyph) { keyEl.style.visibility = "hidden"; return keyEl; } const label = document.createElement("div"); - if (glyph && key !== "eisuu" && key !== "kana" && key !== "fn") { - label.textContent = `${glyph} ${name}`; + // glyph と label が同じ(⌫⌫ など)にならないよう一つだけ出す + if (glyph && name && glyph !== name && key !== "eisuu" && key !== "kana" && key !== "fn") { + label.textContent = glyph; label.style.fontSize = "10px"; } else { - label.textContent = name; + label.textContent = glyph || name; } keyEl.appendChild(label); } @@ -477,10 +560,14 @@

Keymap Layers · JIS shape / US legends

function renderLayer(layer, def) { const bindings = layer.bindings || {}; - const summary = Object.keys(bindings).length === 0 + const summaryEntries = Object.keys(bindings) + .filter((key) => !isDeadBinding(bindings[key])) + .sort() + .map((key) => `${displayName(key, def)}→${bindings[key]}`); + const summary = summaryEntries.length === 0 ? "JIS 形状 · US 刻印" - : Object.keys(bindings).sort().map((key) => `${displayName(key, def)}→${bindings[key]}`).join(" "); - const board = createBoard(`${layer.name} · ${layer.trigger}`, summary, layer.id === "f"); + : summaryEntries.join(" "); + const board = createBoard(`${layer.name} · ${layer.trigger}`, summary, Boolean(layer.hold)); const keyboard = document.createElement("div"); keyboard.className = "keyboard"; @@ -504,7 +591,9 @@

Keymap Layers · JIS shape / US legends

legend.className = "legend"; legend.innerHTML = ` レイヤーキー - リマップ + レイヤー割当 + 移動後 + 出力なし 通常 `; board.appendChild(legend); From ca79786b2cfa746bb829b3fd563c363615cec961 Mon Sep 17 00:00:00 2001 From: ishiooon Date: Wed, 25 Nov 2026 20:31:43 +0900 Subject: [PATCH 4/4] =?UTF-8?q?=E5=86=85=E8=94=B5JIS=E3=81=A8=E5=A4=96?= =?UTF-8?q?=E4=BB=98=E3=81=91=E3=81=AE=E9=85=8D=E5=88=97=E3=82=92=E5=88=86?= =?UTF-8?q?=E3=81=91=E3=81=A6=E3=82=B7=E3=83=A7=E3=83=BC=E3=83=88=E3=82=AB?= =?UTF-8?q?=E3=83=83=E3=83=88=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .bin/karabiner-keymap-hud | 21 +- .../complex_modifications/f_hjkl_arrows.json | 10591 +++++++++++++++- .config/karabiner/karabiner.json | 10591 +++++++++++++++- .config/karabiner/keymap-layers-external.json | 109 + .config/karabiner/scripts/keymap-hud.html | 27 +- .config/karabiner/scripts/keymap-hud.js | 14 +- .config/karabiner/torabo-tsuki-s.md | 2 +- .config/torabo-zmk/README.md | 2 +- README.md | 23 +- tests/karabiner_hud_device_selection_test.sh | 4 + tests/karabiner_hud_torabo_dispatch_test.sh | 19 +- tests/karabiner_layer_shortcuts_test.sh | 104 +- tests/karabiner_torabo_hud_test.sh | 9 + tests/karabiner_torabo_shortcut_test.sh | 58 +- 14 files changed, 20262 insertions(+), 1312 deletions(-) create mode 100644 .config/karabiner/keymap-layers-external.json diff --git a/.bin/karabiner-keymap-hud b/.bin/karabiner-keymap-hud index b4a81d4..33222b1 100755 --- a/.bin/karabiner-keymap-hud +++ b/.bin/karabiner-keymap-hud @@ -21,11 +21,12 @@ readonly BATTERY_LOCK="$STATE_DIR/torabo-battery.lock" usage() { cat <<'USAGE' -Usage: karabiner-keymap-hud show|show jis|show torabo|hide|status|start|stop +Usage: karabiner-keymap-hud show [jis|external|torabo] | hide | status | start | stop f + b で使用するキー一覧を表示または非表示にします。 show … Torabo 接続中なら Torabo、なければ内蔵 JIS show jis … 常に内蔵 JIS(上・外側ずらし) + show external … 常に外付けキーボードの従来配列 show torabo … 常に Torabo-tsuki Torabo 表示時は直近の電池残量も見出しに出します。 USAGE @@ -114,8 +115,6 @@ refresh_battery_async() { show_hud() { local mode="${1:-auto}" start_daemon - local connection - connection="$(torabo_connection)" || connection="" case "$mode" in jis) @@ -123,17 +122,16 @@ show_hud() { printf 'show\n' >"$CMD_FILE" return ;; - torabo) - printf 'show torabo\n' >"$CMD_FILE" - if [[ "$connection" == zmk-ble ]]; then - refresh_battery_async - fi + external) + printf 'show external\n' >"$CMD_FILE" return ;; esac - # auto: 接続中の Torabo があれば専用表示、なければ内蔵 JIS - if [[ -z "$connection" ]]; then + # 自動選択でToraboが見つからないときは内蔵JISを表示する。 + local connection + connection="$(torabo_connection)" || connection="" + if [[ "$mode" == auto && -z "$connection" ]]; then printf 'show\n' >"$CMD_FILE" return fi @@ -193,8 +191,7 @@ main() { show) case "${2:-}" in "") show_hud auto ;; - jis) show_hud jis ;; - torabo) show_hud torabo ;; + jis|external|torabo) show_hud "$2" ;; *) usage >&2 exit 1 diff --git a/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json b/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json index 14be3f8..76626da 100644 --- a/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json +++ b/.config/karabiner/assets/complex_modifications/f_hjkl_arrows.json @@ -621,48 +621,8 @@ ] }, { - "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 [hold=e]", + "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": { - "key_code": "e", - "modifiers": { - "optional": [ - "any" - ] - } - }, - "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_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ] - }, { "type": "basic", "from": { @@ -705,6 +665,15 @@ "basic.simultaneous_threshold_milliseconds": 350 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -720,6 +689,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -758,7 +736,18 @@ { "type": "basic", "from": { - "key_code": "e", + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "mandatory": [ "command" @@ -770,47 +759,22 @@ }, "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" - ] + "key_code": "left_arrow" } ], "parameters": { - "basic.to_if_alone_timeout_milliseconds": 200 + "basic.simultaneous_threshold_milliseconds": 500 }, "conditions": [ { - "type": "device_unless", + "type": "device_if", "identifiers": [ { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ] - }, - { - "type": "basic", - "conditions": [ + }, { "type": "device_unless", "identifiers": [ @@ -820,16 +784,28 @@ "is_keyboard": true } ] - }, - { - "type": "variable_if", - "name": "eisuu_cmd", - "value": true } - ], + ] + }, + { + "type": "basic", "from": { - "key_code": "e", + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { + "mandatory": [ + "command" + ], "optional": [ "any" ] @@ -837,35 +813,22 @@ }, "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" - ] + "key_code": "down_arrow" } ], "parameters": { - "basic.to_if_alone_timeout_milliseconds": 200 - } - }, - { - "type": "basic", + "basic.simultaneous_threshold_milliseconds": 500 + }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -875,16 +838,28 @@ "is_keyboard": true } ] - }, - { - "type": "variable_if", - "name": "f_cmd_layer", - "value": true } - ], + ] + }, + { + "type": "basic", "from": { - "key_code": "o", + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { + "mandatory": [ + "command" + ], "optional": [ "any" ] @@ -892,13 +867,22 @@ }, "to": [ { - "key_code": "left_arrow" + "key_code": "up_arrow" } - ] - }, - { - "type": "basic", + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -908,16 +892,28 @@ "is_keyboard": true } ] - }, - { - "type": "variable_if", - "name": "f_cmd_layer", - "value": true } - ], + ] + }, + { + "type": "basic", "from": { - "key_code": "p", + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { + "mandatory": [ + "command" + ], "optional": [ "any" ] @@ -925,13 +921,22 @@ }, "to": [ { - "key_code": "down_arrow" + "key_code": "right_arrow" } - ] - }, - { - "type": "basic", + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -941,15 +946,24 @@ "is_keyboard": true } ] - }, - { - "type": "variable_if", - "name": "f_cmd_layer", - "value": true } - ], - "from": { - "key_code": "open_bracket", + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "tab" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ "any" @@ -958,13 +972,25 @@ }, "to": [ { - "key_code": "up_arrow" + "key_code": "tab", + "modifiers": [ + "left_command" + ] } - ] - }, - { - "type": "basic", + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -977,13 +1003,19 @@ }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "eisuu_cmd", "value": true } - ], + ] + }, + { + "type": "basic", "from": { - "key_code": "close_bracket", + "key_code": "e", "modifiers": { + "mandatory": [ + "command" + ], "optional": [ "any" ] @@ -991,13 +1023,65 @@ }, "to": [ { - "key_code": "right_arrow" + "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": [ @@ -1008,11 +1092,6 @@ } ] }, - { - "type": "variable_if", - "name": "f_held", - "value": true - }, { "type": "variable_if", "name": "eisuu_cmd", @@ -1020,7 +1099,7 @@ } ], "from": { - "key_code": "tab", + "key_code": "e", "modifiers": { "optional": [ "any" @@ -1029,16 +1108,44 @@ }, "to": [ { - "key_code": "tab", + "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": [ @@ -1053,15 +1160,10 @@ "type": "variable_if", "name": "f_cmd_layer", "value": true - }, - { - "type": "variable_if", - "name": "space_shift", - "value": true } ], "from": { - "key_code": "tab", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -1070,17 +1172,22 @@ }, "to": [ { - "key_code": "tab", - "modifiers": [ - "left_command", - "left_shift" - ] + "key_code": "left_arrow" } ] }, { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1098,7 +1205,7 @@ } ], "from": { - "key_code": "tab", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -1107,46 +1214,22 @@ }, "to": [ { - "key_code": "tab", - "modifiers": [ - "left_command" - ] + "key_code": "down_arrow" } ] }, { "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": [ @@ -1156,28 +1239,16 @@ "is_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "simultaneous": [ - { - "key_code": "e" - }, - { - "key_code": "p" - } - ], - "simultaneous_options": { - "key_down_order": "strict", - "key_up_when": "all" - }, + "key_code": "open_bracket", "modifiers": { - "mandatory": [ - "command" - ], "optional": [ "any" ] @@ -1185,13 +1256,22 @@ }, "to": [ { - "key_code": "down_arrow" + "key_code": "up_arrow" } - ], - "parameters": { - "basic.simultaneous_threshold_milliseconds": 500 - }, + ] + }, + { + "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1201,28 +1281,16 @@ "is_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "simultaneous": [ - { - "key_code": "e" - }, - { - "key_code": "open_bracket" - } - ], - "simultaneous_options": { - "key_down_order": "strict", - "key_up_when": "all" - }, + "key_code": "close_bracket", "modifiers": { - "mandatory": [ - "command" - ], "optional": [ "any" ] @@ -1230,13 +1298,22 @@ }, "to": [ { - "key_code": "up_arrow" + "key_code": "right_arrow" } - ], - "parameters": { - "basic.simultaneous_threshold_milliseconds": 500 - }, + ] + }, + { + "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1246,28 +1323,21 @@ "is_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + }, + { + "type": "variable_if", + "name": "space_shift", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "simultaneous": [ - { - "key_code": "e" - }, - { - "key_code": "close_bracket" - } - ], - "simultaneous_options": { - "key_down_order": "strict", - "key_up_when": "all" - }, + "key_code": "tab", "modifiers": { - "mandatory": [ - "command" - ], "optional": [ "any" ] @@ -1275,13 +1345,26 @@ }, "to": [ { - "key_code": "right_arrow" + "key_code": "tab", + "modifiers": [ + "left_command", + "left_shift" + ] } - ], - "parameters": { - "basic.simultaneous_threshold_milliseconds": 500 - }, + ] + }, + { + "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1291,24 +1374,20 @@ "is_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + }, + { + "type": "variable_if", + "name": "eisuu_cmd", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "simultaneous": [ - { - "key_code": "e" - }, - { - "key_code": "tab" - } - ], - "simultaneous_options": { - "key_down_order": "strict", - "key_up_when": "all" - }, + "key_code": "tab", "modifiers": { "optional": [ "any" @@ -1322,11 +1401,20 @@ "left_command" ] } - ], - "parameters": { - "basic.simultaneous_threshold_milliseconds": 500 - }, + ] + }, + { + "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1339,9 +1427,25 @@ }, { "type": "variable_if", - "name": "eisuu_cmd", + "name": "f_cmd_layer", "value": true } + ], + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } ] }, { @@ -1361,7 +1465,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1381,6 +1486,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1410,7 +1524,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1430,6 +1545,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1459,7 +1583,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1479,6 +1604,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1508,7 +1642,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1528,6 +1663,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1557,7 +1701,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1577,6 +1722,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1592,6 +1746,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1625,6 +1788,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1658,6 +1830,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1691,6 +1872,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1724,6 +1914,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1771,7 +1970,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1791,6 +1991,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1806,6 +2015,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1853,7 +2071,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1873,6 +2092,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1888,6 +2116,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1935,7 +2172,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1955,6 +2193,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1970,6 +2217,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2017,7 +2273,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -2037,6 +2294,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2052,6 +2318,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2099,7 +2374,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -2119,6 +2395,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2134,6 +2419,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2181,7 +2475,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -2201,6 +2496,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2216,6 +2520,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2249,6 +2562,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2318,6 +2640,15 @@ "basic.to_if_alone_timeout_milliseconds": 200 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2347,7 +2678,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -2367,6 +2699,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2396,7 +2737,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -2416,6 +2758,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2431,6 +2782,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2464,6 +2824,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2497,6 +2866,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2544,6 +2922,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2587,6 +2974,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2631,6 +3027,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2671,11 +3076,61 @@ "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": "d layer: n m , j k l u i o p → 1-0 number pad [hold=w]", + "description": "Mac内蔵JIS専用 d layer: n m , j k l u i o p → 1-0 number pad [hold=w]", "manipulators": [ { "type": "basic", @@ -2706,6 +3161,15 @@ "basic.to_if_alone_timeout_milliseconds": 200 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2761,6 +3225,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2781,6 +3254,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2849,6 +3331,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2869,6 +3360,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2937,6 +3437,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2957,6 +3466,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3025,6 +3543,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3046,7 +3573,16 @@ "type": "basic", "conditions": [ { - "type": "device_unless", + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", "identifiers": [ { "vendor_id": 65261, @@ -3113,6 +3649,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3133,6 +3678,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3201,6 +3755,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3221,6 +3784,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3289,6 +3861,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3309,6 +3890,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3377,6 +3967,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3397,6 +3996,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3465,6 +4073,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3485,6 +4102,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3553,6 +4179,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3573,6 +4208,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3606,7 +4250,7 @@ ] }, { - "description": "v layer: punctuation + h→~ + y→¥ [hold=d]", + "description": "Mac内蔵JIS専用 v layer: punctuation + h→~ + y→¥ [hold=d]", "manipulators": [ { "type": "basic", @@ -3637,6 +4281,15 @@ "basic.to_if_alone_timeout_milliseconds": 200 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3692,6 +4345,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3712,6 +4374,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3780,6 +4451,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3800,6 +4480,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3868,6 +4557,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3888,6 +4586,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3956,6 +4663,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3976,6 +4692,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4044,6 +4769,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4064,6 +4798,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4132,6 +4875,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4152,6 +4904,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4220,6 +4981,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4240,6 +5010,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4308,6 +5087,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4328,6 +5116,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4396,6 +5193,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4416,6 +5222,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4484,6 +5299,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4504,6 +5328,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4575,6 +5408,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4595,6 +5437,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4667,10 +5518,19 @@ }, "conditions": [ { - "type": "device_unless", + "type": "device_if", "identifiers": [ { - "vendor_id": 65261, + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, "product_id": 48301, "is_keyboard": true } @@ -4686,6 +5546,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4719,7 +5588,7 @@ ] }, { - "description": "c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る [hold=s]", + "description": "Mac内蔵JIS専用 c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る [hold=s]", "manipulators": [ { "type": "basic", @@ -4750,6 +5619,15 @@ "basic.to_if_alone_timeout_milliseconds": 200 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4825,6 +5703,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4845,6 +5732,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4953,6 +5849,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4973,6 +5878,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5081,6 +5995,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5101,6 +6024,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5209,6 +6141,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5229,6 +6170,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5337,6 +6287,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5357,6 +6316,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5465,6 +6433,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5485,6 +6462,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5593,6 +6579,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5613,6 +6608,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5721,6 +6725,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5741,6 +6754,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5849,6 +6871,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5869,6 +6900,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5977,6 +7017,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5997,6 +7046,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6105,6 +7163,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6125,6 +7192,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6233,6 +7309,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6253,6 +7338,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6306,7 +7400,7 @@ ] }, { - "description": "x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control [hold=a]", + "description": "Mac内蔵JIS専用 x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control [hold=a]", "manipulators": [ { "type": "basic", @@ -6337,6 +7431,15 @@ "basic.to_if_alone_timeout_milliseconds": 200 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6392,6 +7495,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6412,6 +7524,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6480,6 +7601,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6500,6 +7630,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6568,6 +7707,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6588,6 +7736,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6656,6 +7813,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6676,6 +7842,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6745,10 +7920,19 @@ }, "conditions": [ { - "type": "device_unless", + "type": "device_if", "identifiers": [ { - "vendor_id": 65261, + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, "product_id": 48301, "is_keyboard": true } @@ -6764,6 +7948,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6832,6 +8025,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6852,6 +8054,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6920,6 +8131,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6940,6 +8160,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7008,6 +8237,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7028,6 +8266,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7096,6 +8343,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7116,6 +8372,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7184,6 +8449,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7204,6 +8478,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7272,6 +8555,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7292,6 +8584,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7360,6 +8661,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7380,6 +8690,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7413,7 +8732,7 @@ ] }, { - "description": "Mac JIS 上・外側ずらし(Torabo除外)。物理→出力 / 出力なし / cmd→opt", + "description": "Mac内蔵JIS専用 Mac JIS 上・外側ずらし(Torabo除外)。物理→出力 / 出力なし / cmd→opt", "manipulators": [ { "type": "basic", @@ -7426,6 +8745,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7454,6 +8782,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7482,6 +8819,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7510,6 +8856,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7538,6 +8893,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7566,6 +8930,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7594,6 +8967,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7622,6 +9004,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7650,6 +9041,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7678,6 +9078,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7706,6 +9115,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7734,6 +9152,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7762,6 +9189,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7790,6 +9226,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7818,6 +9263,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7846,6 +9300,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7874,6 +9337,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7902,6 +9374,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7929,6 +9410,7587 @@ ] } }, + "conditions": [ + { + "type": "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", + "from": { + "key_code": "international1", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "hyphen" + } + ], + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + } + ] + }, + { + "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", + "from": { + "key_code": "f", + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_eisuu_cmd", + "value": true + } + ], + "from": { + "key_code": "f", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "h", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + }, + { + "type": "variable_if", + "name": "external_eisuu_cmd", + "value": true + } + ], + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + }, + { + "type": "variable_if", + "name": "external_space_shift", + "value": true + } + ], + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "h" + } + ], + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "j" + } + ], + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "k" + } + ], + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "l" + } + ], + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "a" + } + ], + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_eisuu_cmd", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "f", + "modifiers": { + "optional": [ + "caps_lock" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "h" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "j" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "down_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "k" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "up_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "l" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "right_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "e" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_or_backspace" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "h", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "e", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "a" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "tab" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "q" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "escape" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "q", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "escape" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "u" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_or_backspace" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "u", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "s" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "tab" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "s", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "d" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_command" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "d", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_command" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_forward" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_forward" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "spacebar", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "n" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "japanese_eisuu" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "m" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "japanese_kana" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "n", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "m", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "japanese_kana" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "japanese_eisuu", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_eisuu_cmd", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "external_f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_command" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ], + "from": { + "key_code": "japanese_eisuu", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ], + "from": { + "key_code": "japanese_kana", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_command" + } + ], + "to_if_alone": [ + { + "key_code": "return_or_enter" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + } + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "b" + } + ], + "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": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show external'" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 350 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "b", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show external'" + } + ], + "to_after_key_up": [ + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud hide'" + } + ] + } + ] + }, + { + "description": "外付けキーボード(従来配列) d layer: n m , j k l u i o p → 1-0 number pad", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "d", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "n" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "1" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "n", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "1" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "m" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "2" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "m", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "2" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "comma" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "3" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "comma", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "3" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "j" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "4" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "4" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "k" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "5" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "5" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "l" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "6" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "6" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "u" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "7" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "u", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "7" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "i" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "8" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "i", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "8" + } + ] + }, + { + "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": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "9" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "9" + } + ] + }, + { + "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": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "0" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "0" + } + ] + } + ] + }, + { + "description": "外付けキーボード(従来配列) v layer: punctuation + h→~ + y→¥", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "v", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "n" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "comma" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "n", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "comma" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "m" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "period" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "m", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "period" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "comma" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "slash" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "comma", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "slash" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "j" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "semicolon" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "semicolon" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "k" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "quote" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "quote" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "l" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "backslash" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "backslash" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "u" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "hyphen" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "u", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "hyphen" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "i" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "equal_sign" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "i", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "equal_sign" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "open_bracket" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "open_bracket" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "close_bracket" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "close_bracket" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "h" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "h", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "grave_accent_and_tilde", + "modifiers": [ + "left_shift" + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "y" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "international3" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "y", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "international3" + } + ] + } + ] + }, + { + "description": "外付けキーボード(従来配列) c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "c", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "c" + }, + { + "key_code": "y" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "y", + "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": "c" + }, + { + "key_code": "u" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "u", + "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": "c" + }, + { + "key_code": "i" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "i", + "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": "c" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "o", + "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": "c" + }, + { + "key_code": "h" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "h", + "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": "c" + }, + { + "key_code": "j" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "j", + "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": "c" + }, + { + "key_code": "k" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "k", + "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": "c" + }, + { + "key_code": "l" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "l", + "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": "c" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "p", + "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": "c" + }, + { + "key_code": "n" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "n", + "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": "c" + }, + { + "key_code": "m" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "m", + "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": "c" + }, + { + "key_code": "comma" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "comma", + "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": "外付けキーボード(従来配列) x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "x", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "y" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "volume_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -7937,26 +16999,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "o", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -7965,54 +17023,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "h" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "p", + "key_code": "y", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "j" + "consumer_key_code": "volume_increment" } ] }, { "type": "basic", "from": { - "key_code": "open_bracket", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "u" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "rewind" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8021,26 +17095,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "k" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "close_bracket", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8049,54 +17119,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "l" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "f", + "key_code": "u", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "b" + "consumer_key_code": "rewind" } ] }, { "type": "basic", "from": { - "key_code": "g", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "i" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "play_or_pause" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8105,26 +17191,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "h", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8133,26 +17215,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "i", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "consumer_key_code": "play_or_pause" } ] }, { "type": "basic", "from": { - "key_code": "j", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "fast_forward" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8161,26 +17287,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "k", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8189,26 +17311,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "consumer_key_code": "fast_forward" } ] }, { "type": "basic", "from": { - "key_code": "l", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "h" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "volume_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8217,26 +17383,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "semicolon", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8245,54 +17407,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "n" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "quote", + "key_code": "h", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "m" + "consumer_key_code": "volume_decrement" } ] }, { "type": "basic", "from": { - "key_code": "backslash", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "j" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "launchpad" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8301,26 +17479,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "slash" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "z", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8329,26 +17503,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "key_code": "launchpad" } ] }, { "type": "basic", "from": { - "key_code": "x", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "k" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8357,26 +17575,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "c", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8385,26 +17599,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "key_code": "display_brightness_decrement" } ] }, { "type": "basic", "from": { - "key_code": "v", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "l" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8413,26 +17671,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "b", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8441,26 +17695,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "key_code": "display_brightness_increment" } ] }, { "type": "basic", "from": { - "key_code": "n", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "mute" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8469,26 +17767,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "m", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8497,54 +17791,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "comma", + "key_code": "p", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "vk_none" + "consumer_key_code": "mute" } ] }, { "type": "basic", "from": { - "key_code": "period", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "n" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8553,26 +17863,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "slash", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8581,54 +17887,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "tab", + "key_code": "n", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "a" + "key_code": "display_brightness_decrement" } ] }, { "type": "basic", "from": { - "key_code": "return_or_enter", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "m" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8637,26 +17959,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "p" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "international1", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8665,31 +17983,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "m", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "key_code": "display_brightness_increment" } ] }, { "type": "basic", "from": { - "key_code": "left_command", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "comma" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, "to": [ { - "key_code": "left_option" + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "mission_control" } ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8698,21 +18055,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "left_option", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8721,53 +18079,42 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "right_option", + "key_code": "comma", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "vk_none" + "key_code": "mission_control" } ] } ] }, { - "description": "control tap=z hold=Control(Toraboの z/⌃ を control へ移す)", + "description": "外付けキーボード(従来配列) z hold=Control(Toraboと同じ)。単押しは z", "manipulators": [ { "type": "basic", "from": { - "key_code": "left_control", + "key_code": "z", "modifiers": { "optional": [ "caps_lock" @@ -8777,7 +18124,7 @@ "to": [ { "set_variable": { - "name": "z_ctrl", + "name": "external_z_ctrl", "value": true, "key_up_value": false } @@ -8803,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 f828c8a..9407c55 100644 --- a/.config/karabiner/karabiner.json +++ b/.config/karabiner/karabiner.json @@ -623,48 +623,8 @@ ] }, { - "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 [hold=e]", + "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": { - "key_code": "e", - "modifiers": { - "optional": [ - "any" - ] - } - }, - "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_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ] - }, { "type": "basic", "from": { @@ -707,6 +667,15 @@ "basic.simultaneous_threshold_milliseconds": 350 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -722,6 +691,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -760,7 +738,18 @@ { "type": "basic", "from": { - "key_code": "e", + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "mandatory": [ "command" @@ -772,47 +761,22 @@ }, "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" - ] + "key_code": "left_arrow" } ], "parameters": { - "basic.to_if_alone_timeout_milliseconds": 200 + "basic.simultaneous_threshold_milliseconds": 500 }, "conditions": [ { - "type": "device_unless", + "type": "device_if", "identifiers": [ { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ] - }, - { - "type": "basic", - "conditions": [ + }, { "type": "device_unless", "identifiers": [ @@ -822,16 +786,28 @@ "is_keyboard": true } ] - }, - { - "type": "variable_if", - "name": "eisuu_cmd", - "value": true } - ], + ] + }, + { + "type": "basic", "from": { - "key_code": "e", + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { + "mandatory": [ + "command" + ], "optional": [ "any" ] @@ -839,35 +815,22 @@ }, "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" - ] + "key_code": "down_arrow" } ], "parameters": { - "basic.to_if_alone_timeout_milliseconds": 200 - } - }, - { - "type": "basic", + "basic.simultaneous_threshold_milliseconds": 500 + }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -877,16 +840,28 @@ "is_keyboard": true } ] - }, - { - "type": "variable_if", - "name": "f_cmd_layer", - "value": true } - ], + ] + }, + { + "type": "basic", "from": { - "key_code": "o", + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "open_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { + "mandatory": [ + "command" + ], "optional": [ "any" ] @@ -894,13 +869,22 @@ }, "to": [ { - "key_code": "left_arrow" + "key_code": "up_arrow" } - ] - }, - { - "type": "basic", + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -910,16 +894,28 @@ "is_keyboard": true } ] - }, - { - "type": "variable_if", - "name": "f_cmd_layer", - "value": true } - ], + ] + }, + { + "type": "basic", "from": { - "key_code": "p", + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "close_bracket" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { + "mandatory": [ + "command" + ], "optional": [ "any" ] @@ -927,13 +923,22 @@ }, "to": [ { - "key_code": "down_arrow" + "key_code": "right_arrow" } - ] - }, - { - "type": "basic", + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -943,15 +948,24 @@ "is_keyboard": true } ] - }, - { - "type": "variable_if", - "name": "f_cmd_layer", - "value": true } - ], - "from": { - "key_code": "open_bracket", + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "e" + }, + { + "key_code": "tab" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ "any" @@ -960,13 +974,25 @@ }, "to": [ { - "key_code": "up_arrow" + "key_code": "tab", + "modifiers": [ + "left_command" + ] } - ] - }, - { - "type": "basic", + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 500 + }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -979,13 +1005,19 @@ }, { "type": "variable_if", - "name": "f_cmd_layer", + "name": "eisuu_cmd", "value": true } - ], + ] + }, + { + "type": "basic", "from": { - "key_code": "close_bracket", + "key_code": "e", "modifiers": { + "mandatory": [ + "command" + ], "optional": [ "any" ] @@ -993,13 +1025,65 @@ }, "to": [ { - "key_code": "right_arrow" + "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": [ @@ -1010,11 +1094,6 @@ } ] }, - { - "type": "variable_if", - "name": "f_held", - "value": true - }, { "type": "variable_if", "name": "eisuu_cmd", @@ -1022,7 +1101,7 @@ } ], "from": { - "key_code": "tab", + "key_code": "e", "modifiers": { "optional": [ "any" @@ -1031,16 +1110,44 @@ }, "to": [ { - "key_code": "tab", + "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": [ @@ -1055,15 +1162,10 @@ "type": "variable_if", "name": "f_cmd_layer", "value": true - }, - { - "type": "variable_if", - "name": "space_shift", - "value": true } ], "from": { - "key_code": "tab", + "key_code": "o", "modifiers": { "optional": [ "any" @@ -1072,17 +1174,22 @@ }, "to": [ { - "key_code": "tab", - "modifiers": [ - "left_command", - "left_shift" - ] + "key_code": "left_arrow" } ] }, { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1100,7 +1207,7 @@ } ], "from": { - "key_code": "tab", + "key_code": "p", "modifiers": { "optional": [ "any" @@ -1109,46 +1216,22 @@ }, "to": [ { - "key_code": "tab", - "modifiers": [ - "left_command" - ] + "key_code": "down_arrow" } ] }, { "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": [ @@ -1158,28 +1241,16 @@ "is_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "simultaneous": [ - { - "key_code": "e" - }, - { - "key_code": "p" - } - ], - "simultaneous_options": { - "key_down_order": "strict", - "key_up_when": "all" - }, + "key_code": "open_bracket", "modifiers": { - "mandatory": [ - "command" - ], "optional": [ "any" ] @@ -1187,13 +1258,22 @@ }, "to": [ { - "key_code": "down_arrow" + "key_code": "up_arrow" } - ], - "parameters": { - "basic.simultaneous_threshold_milliseconds": 500 - }, + ] + }, + { + "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1203,28 +1283,16 @@ "is_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "simultaneous": [ - { - "key_code": "e" - }, - { - "key_code": "open_bracket" - } - ], - "simultaneous_options": { - "key_down_order": "strict", - "key_up_when": "all" - }, + "key_code": "close_bracket", "modifiers": { - "mandatory": [ - "command" - ], "optional": [ "any" ] @@ -1232,13 +1300,22 @@ }, "to": [ { - "key_code": "up_arrow" + "key_code": "right_arrow" } - ], - "parameters": { - "basic.simultaneous_threshold_milliseconds": 500 - }, + ] + }, + { + "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1248,28 +1325,21 @@ "is_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "f_cmd_layer", + "value": true + }, + { + "type": "variable_if", + "name": "space_shift", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "simultaneous": [ - { - "key_code": "e" - }, - { - "key_code": "close_bracket" - } - ], - "simultaneous_options": { - "key_down_order": "strict", - "key_up_when": "all" - }, + "key_code": "tab", "modifiers": { - "mandatory": [ - "command" - ], "optional": [ "any" ] @@ -1277,13 +1347,26 @@ }, "to": [ { - "key_code": "right_arrow" + "key_code": "tab", + "modifiers": [ + "left_command", + "left_shift" + ] } - ], - "parameters": { - "basic.simultaneous_threshold_milliseconds": 500 - }, + ] + }, + { + "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1293,24 +1376,20 @@ "is_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "f_held", + "value": true + }, + { + "type": "variable_if", + "name": "eisuu_cmd", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "simultaneous": [ - { - "key_code": "e" - }, - { - "key_code": "tab" - } - ], - "simultaneous_options": { - "key_down_order": "strict", - "key_up_when": "all" - }, + "key_code": "tab", "modifiers": { "optional": [ "any" @@ -1324,11 +1403,20 @@ "left_command" ] } - ], - "parameters": { - "basic.simultaneous_threshold_milliseconds": 500 - }, + ] + }, + { + "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1341,9 +1429,25 @@ }, { "type": "variable_if", - "name": "eisuu_cmd", + "name": "f_cmd_layer", "value": true } + ], + "from": { + "key_code": "tab", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } ] }, { @@ -1363,7 +1467,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1383,6 +1488,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1412,7 +1526,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1432,6 +1547,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1461,7 +1585,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1481,6 +1606,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1510,7 +1644,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1530,6 +1665,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1559,7 +1703,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1579,6 +1724,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1594,6 +1748,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1627,6 +1790,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1660,6 +1832,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1693,6 +1874,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1726,6 +1916,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1773,7 +1972,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1793,6 +1993,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1808,6 +2017,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1855,7 +2073,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1875,6 +2094,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1890,6 +2118,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1937,7 +2174,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -1957,6 +2195,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -1972,6 +2219,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2019,7 +2275,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -2039,6 +2296,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2054,6 +2320,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2101,7 +2376,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -2121,6 +2397,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2136,6 +2421,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2183,7 +2477,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -2203,6 +2498,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2218,6 +2522,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2251,6 +2564,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2320,6 +2642,15 @@ "basic.to_if_alone_timeout_milliseconds": 200 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2349,7 +2680,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -2369,6 +2701,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2398,7 +2739,8 @@ }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, @@ -2418,6 +2760,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2433,6 +2784,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2466,6 +2826,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2499,6 +2868,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2546,6 +2924,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2589,6 +2976,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2633,6 +3029,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2673,11 +3078,61 @@ "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": "d layer: n m , j k l u i o p → 1-0 number pad [hold=w]", + "description": "Mac内蔵JIS専用 d layer: n m , j k l u i o p → 1-0 number pad [hold=w]", "manipulators": [ { "type": "basic", @@ -2708,6 +3163,15 @@ "basic.to_if_alone_timeout_milliseconds": 200 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2763,6 +3227,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2783,6 +3256,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2851,6 +3333,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2871,6 +3362,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2939,6 +3439,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -2959,6 +3468,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3027,6 +3545,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3048,7 +3575,16 @@ "type": "basic", "conditions": [ { - "type": "device_unless", + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", "identifiers": [ { "vendor_id": 65261, @@ -3115,6 +3651,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3135,6 +3680,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3203,6 +3757,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3223,6 +3786,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3291,6 +3863,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3311,6 +3892,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3379,6 +3969,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3399,6 +3998,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3467,6 +4075,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3487,6 +4104,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3555,6 +4181,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3575,6 +4210,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3608,7 +4252,7 @@ ] }, { - "description": "v layer: punctuation + h→~ + y→¥ [hold=d]", + "description": "Mac内蔵JIS専用 v layer: punctuation + h→~ + y→¥ [hold=d]", "manipulators": [ { "type": "basic", @@ -3639,6 +4283,15 @@ "basic.to_if_alone_timeout_milliseconds": 200 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3694,6 +4347,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3714,6 +4376,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3782,6 +4453,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3802,6 +4482,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3870,6 +4559,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3890,6 +4588,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3958,6 +4665,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -3978,6 +4694,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4046,6 +4771,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4066,6 +4800,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4134,6 +4877,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4154,6 +4906,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4222,6 +4983,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4242,6 +5012,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4310,6 +5089,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4330,6 +5118,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4398,6 +5195,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4418,6 +5224,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4486,6 +5301,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4506,6 +5330,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4577,6 +5410,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4597,6 +5439,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4669,10 +5520,19 @@ }, "conditions": [ { - "type": "device_unless", + "type": "device_if", "identifiers": [ { - "vendor_id": 65261, + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, "product_id": 48301, "is_keyboard": true } @@ -4688,6 +5548,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4721,7 +5590,7 @@ ] }, { - "description": "c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る [hold=s]", + "description": "Mac内蔵JIS専用 c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る [hold=s]", "manipulators": [ { "type": "basic", @@ -4752,6 +5621,15 @@ "basic.to_if_alone_timeout_milliseconds": 200 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4827,6 +5705,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4847,6 +5734,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4955,6 +5851,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -4975,6 +5880,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5083,6 +5997,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5103,6 +6026,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5211,6 +6143,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5231,6 +6172,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5339,6 +6289,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5359,6 +6318,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5467,6 +6435,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5487,6 +6464,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5595,6 +6581,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5615,6 +6610,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5723,6 +6727,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5743,6 +6756,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5851,6 +6873,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5871,6 +6902,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5979,6 +7019,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -5999,6 +7048,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6107,6 +7165,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6127,6 +7194,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6235,6 +7311,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6255,6 +7340,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6308,7 +7402,7 @@ ] }, { - "description": "x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control [hold=a]", + "description": "Mac内蔵JIS専用 x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control [hold=a]", "manipulators": [ { "type": "basic", @@ -6339,6 +7433,15 @@ "basic.to_if_alone_timeout_milliseconds": 200 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6394,6 +7497,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6414,6 +7526,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6482,6 +7603,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6502,6 +7632,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6570,6 +7709,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6590,6 +7738,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6658,6 +7815,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6678,6 +7844,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6747,10 +7922,19 @@ }, "conditions": [ { - "type": "device_unless", + "type": "device_if", "identifiers": [ { - "vendor_id": 65261, + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, "product_id": 48301, "is_keyboard": true } @@ -6766,6 +7950,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6834,6 +8027,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6854,6 +8056,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6922,6 +8133,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -6942,6 +8162,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7010,6 +8239,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7030,6 +8268,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7098,6 +8345,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7118,6 +8374,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7186,6 +8451,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7206,6 +8480,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7274,6 +8557,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7294,6 +8586,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7362,6 +8663,15 @@ "basic.simultaneous_threshold_milliseconds": 250 }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7382,6 +8692,15 @@ { "type": "basic", "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7415,7 +8734,7 @@ ] }, { - "description": "Mac JIS 上・外側ずらし(Torabo除外)。物理→出力 / 出力なし / cmd→opt", + "description": "Mac内蔵JIS専用 Mac JIS 上・外側ずらし(Torabo除外)。物理→出力 / 出力なし / cmd→opt", "manipulators": [ { "type": "basic", @@ -7428,6 +8747,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7456,6 +8784,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7484,6 +8821,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7512,6 +8858,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7540,6 +8895,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7568,6 +8932,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7596,6 +8969,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7624,6 +9006,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7652,6 +9043,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7680,6 +9080,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7708,6 +9117,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7736,6 +9154,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7764,6 +9191,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7792,6 +9228,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7820,6 +9265,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7848,6 +9302,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7876,6 +9339,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7904,6 +9376,15 @@ } }, "conditions": [ + { + "type": "device_if", + "identifiers": [ + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, { "type": "device_unless", "identifiers": [ @@ -7931,6 +9412,7587 @@ ] } }, + "conditions": [ + { + "type": "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", + "from": { + "key_code": "international1", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "hyphen" + } + ], + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + } + ] + }, + { + "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", + "from": { + "key_code": "f", + "modifiers": { + "mandatory": [ + "command" + ], + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_eisuu_cmd", + "value": true + } + ], + "from": { + "key_code": "f", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "h", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + }, + { + "type": "variable_if", + "name": "external_eisuu_cmd", + "value": true + } + ], + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + }, + { + "type": "variable_if", + "name": "external_space_shift", + "value": true + } + ], + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command", + "left_shift" + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab", + "modifiers": [ + "left_command" + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "h" + } + ], + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "j" + } + ], + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "k" + } + ], + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "l" + } + ], + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "a" + } + ], + "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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_eisuu_cmd", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "key_code": "f", + "modifiers": { + "optional": [ + "caps_lock" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "h" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "j" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "down_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "k" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "up_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "l" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "right_arrow" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "e" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_or_backspace" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "h", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "down_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "up_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_arrow" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "e", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "a" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "tab" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "a", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "q" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "escape" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "q", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "escape" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "u" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_or_backspace" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "u", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_or_backspace" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "s" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "tab" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "s", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "tab" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "d" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_command" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "d", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "left_command" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "delete_forward" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "delete_forward" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_cmd_layer", + "value": true + } + ], + "from": { + "key_code": "spacebar", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "n" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "japanese_eisuu" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "m" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "japanese_kana" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "n", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "japanese_eisuu" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "m", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "japanese_kana" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "japanese_eisuu", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_eisuu_cmd", + "value": true, + "key_up_value": false + } + }, + { + "set_variable": { + "name": "external_f_cmd_layer", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "left_command" + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ], + "from": { + "key_code": "japanese_eisuu", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ], + "from": { + "key_code": "japanese_kana", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "right_command" + } + ], + "to_if_alone": [ + { + "key_code": "return_or_enter" + } + ], + "parameters": { + "basic.to_if_alone_timeout_milliseconds": 200 + } + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "f" + }, + { + "key_code": "b" + } + ], + "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": "external_f_held", + "value": true, + "key_up_value": false + } + }, + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show external'" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 350 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_f_held", + "value": true + } + ], + "from": { + "key_code": "b", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud show external'" + } + ], + "to_after_key_up": [ + { + "shell_command": "/bin/bash -lc '$HOME/.bin/karabiner-keymap-hud hide'" + } + ] + } + ] + }, + { + "description": "外付けキーボード(従来配列) d layer: n m , j k l u i o p → 1-0 number pad", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "d", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "n" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "1" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "n", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "1" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "m" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "2" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "m", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "2" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "comma" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "3" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "comma", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "3" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "j" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "4" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "4" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "k" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "5" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "5" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "l" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "6" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "6" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "u" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "7" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "u", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "7" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "d" + }, + { + "key_code": "i" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "8" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "i", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "8" + } + ] + }, + { + "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": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "9" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "9" + } + ] + }, + { + "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": "external_d_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "0" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_d_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "0" + } + ] + } + ] + }, + { + "description": "外付けキーボード(従来配列) v layer: punctuation + h→~ + y→¥", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "v", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "n" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "comma" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "n", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "comma" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "m" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "period" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "m", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "period" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "comma" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "slash" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "comma", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "slash" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "j" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "semicolon" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "semicolon" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "k" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "quote" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "quote" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "l" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "backslash" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "backslash" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "u" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "hyphen" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "u", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "hyphen" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "i" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "equal_sign" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "i", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "equal_sign" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "open_bracket" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "open_bracket" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "close_bracket" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "p", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "close_bracket" + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "h" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "h", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "grave_accent_and_tilde", + "modifiers": [ + "left_shift" + ] + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "v" + }, + { + "key_code": "y" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_v_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "international3" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_v_held", + "value": true + } + ], + "from": { + "key_code": "y", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "key_code": "international3" + } + ] + } + ] + }, + { + "description": "外付けキーボード(従来配列) c layer (=Torabo L5): macOS の設定に合わせて F1–F12 を標準ファンクションキーとして送る", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "c", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "c" + }, + { + "key_code": "y" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "y", + "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": "c" + }, + { + "key_code": "u" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "u", + "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": "c" + }, + { + "key_code": "i" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "i", + "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": "c" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "o", + "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": "c" + }, + { + "key_code": "h" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "h", + "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": "c" + }, + { + "key_code": "j" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "j", + "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": "c" + }, + { + "key_code": "k" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "k", + "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": "c" + }, + { + "key_code": "l" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "l", + "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": "c" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "p", + "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": "c" + }, + { + "key_code": "n" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "n", + "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": "c" + }, + { + "key_code": "m" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "m", + "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": "c" + }, + { + "key_code": "comma" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "conditions": [ + { + "type": "device_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_if", + "name": "external_c_held", + "value": true + } + ], + "from": { + "key_code": "comma", + "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": "外付けキーボード(従来配列) x layer (=Torabo L9): 音量・再生・輝度・Launchpad / Mission Control", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "x", + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_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_unless", + "identifiers": [ + { + "vendor_id": 65261, + "product_id": 48301, + "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true + } + ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true + } + ] + }, + { + "type": "basic", + "from": { + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "y" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, + "modifiers": { + "optional": [ + "caps_lock", + "shift" + ] + } + }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "volume_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -7939,26 +17001,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "o", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -7967,54 +17025,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "h" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "p", + "key_code": "y", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "j" + "consumer_key_code": "volume_increment" } ] }, { "type": "basic", "from": { - "key_code": "open_bracket", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "u" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "rewind" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8023,26 +17097,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "k" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "close_bracket", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8051,54 +17121,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "l" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "f", + "key_code": "u", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "b" + "consumer_key_code": "rewind" } ] }, { "type": "basic", "from": { - "key_code": "g", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "i" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "play_or_pause" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8107,26 +17193,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "h", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8135,26 +17217,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "i", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "consumer_key_code": "play_or_pause" } ] }, { "type": "basic", "from": { - "key_code": "j", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "o" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "fast_forward" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8163,26 +17289,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "k", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8191,26 +17313,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "o", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "consumer_key_code": "fast_forward" } ] }, { "type": "basic", "from": { - "key_code": "l", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "h" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "volume_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8219,26 +17385,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "semicolon", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8247,54 +17409,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "n" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "quote", + "key_code": "h", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "m" + "consumer_key_code": "volume_decrement" } ] }, { "type": "basic", "from": { - "key_code": "backslash", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "j" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "launchpad" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8303,26 +17481,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "slash" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "z", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8331,26 +17505,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "j", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "key_code": "launchpad" } ] }, { "type": "basic", "from": { - "key_code": "x", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "k" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8359,26 +17577,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "c", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8387,26 +17601,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "k", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "key_code": "display_brightness_decrement" } ] }, { "type": "basic", "from": { - "key_code": "v", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "l" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8415,26 +17673,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "b", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8443,26 +17697,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "l", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "key_code": "display_brightness_increment" } ] }, { "type": "basic", "from": { - "key_code": "n", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "p" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "consumer_key_code": "mute" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8471,26 +17769,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "m", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8499,54 +17793,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "comma", + "key_code": "p", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "vk_none" + "consumer_key_code": "mute" } ] }, { "type": "basic", "from": { - "key_code": "period", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "n" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_decrement" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8555,26 +17865,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "slash", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8583,54 +17889,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "tab", + "key_code": "n", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "a" + "key_code": "display_brightness_decrement" } ] }, { "type": "basic", "from": { - "key_code": "return_or_enter", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "m" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, + "to": [ + { + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "display_brightness_increment" + } + ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8639,26 +17961,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "p" + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "international1", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8667,31 +17985,70 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_if", + "name": "external_x_held", + "value": true } ], + "from": { + "key_code": "m", + "modifiers": { + "optional": [ + "any" + ] + } + }, "to": [ { - "key_code": "vk_none" + "key_code": "display_brightness_increment" } ] }, { "type": "basic", "from": { - "key_code": "left_command", + "simultaneous": [ + { + "key_code": "x" + }, + { + "key_code": "comma" + } + ], + "simultaneous_options": { + "key_down_order": "strict", + "key_up_when": "all" + }, "modifiers": { "optional": [ - "any" + "caps_lock", + "shift" ] } }, "to": [ { - "key_code": "left_option" + "set_variable": { + "name": "external_x_held", + "value": true, + "key_up_value": false + } + }, + { + "key_code": "mission_control" } ], + "parameters": { + "basic.simultaneous_threshold_milliseconds": 250 + }, "conditions": [ { "type": "device_unless", @@ -8700,21 +18057,22 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] + }, + { + "type": "variable_unless", + "name": "external_f_held", + "value": true } ] }, { "type": "basic", - "from": { - "key_code": "left_option", - "modifiers": { - "optional": [ - "any" - ] - } - }, "conditions": [ { "type": "device_unless", @@ -8723,53 +18081,42 @@ "vendor_id": 65261, "product_id": 48301, "is_keyboard": true + }, + { + "is_keyboard": true, + "is_built_in_keyboard": true } ] - } - ], - "to": [ + }, { - "key_code": "vk_none" + "type": "variable_if", + "name": "external_x_held", + "value": true } - ] - }, - { - "type": "basic", + ], "from": { - "key_code": "right_option", + "key_code": "comma", "modifiers": { "optional": [ "any" ] } }, - "conditions": [ - { - "type": "device_unless", - "identifiers": [ - { - "vendor_id": 65261, - "product_id": 48301, - "is_keyboard": true - } - ] - } - ], "to": [ { - "key_code": "vk_none" + "key_code": "mission_control" } ] } ] }, { - "description": "control tap=z hold=Control(Toraboの z/⌃ を control へ移す)", + "description": "外付けキーボード(従来配列) z hold=Control(Toraboと同じ)。単押しは z", "manipulators": [ { "type": "basic", "from": { - "key_code": "left_control", + "key_code": "z", "modifiers": { "optional": [ "caps_lock" @@ -8779,7 +18126,7 @@ "to": [ { "set_variable": { - "name": "z_ctrl", + "name": "external_z_ctrl", "value": true, "key_up_value": false } @@ -8805,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/scripts/keymap-hud.html b/.config/karabiner/scripts/keymap-hud.html index 1475f5e..d076e1f 100644 --- a/.config/karabiner/scripts/keymap-hud.html +++ b/.config/karabiner/scripts/keymap-hud.html @@ -439,6 +439,7 @@

Keymap Layers · JIS shape / US legends

const bindings = layer.bindings || {}; const isHoldLayer = layer.id !== "base"; + const hideUnassigned = isHoldLayer && !options.external; const isHoldKey = key === (layer.hold || layer.id); const layerMapped = Object.prototype.hasOwnProperty.call(bindings, key) ? bindings[key] : undefined; const baseMapped = baseBindings(def)[key]; @@ -456,7 +457,7 @@

Keymap Layers · JIS shape / US legends

dead = true; } else if (fromBaseShift) { mapped = baseMapped; - } else if (isHoldLayer) { + } else if (hideUnassigned) { dead = true; } else { mapped = undefined; @@ -523,7 +524,7 @@

Keymap Layers · JIS shape / US legends

action.className = "action"; action.textContent = mapped; keyEl.appendChild(action); - } else if (!isHoldLayer) { + } else if (!hideUnassigned) { const action = document.createElement("div"); action.className = "action"; action.textContent = glyph || "↩"; @@ -539,7 +540,7 @@

Keymap Layers · JIS shape / US legends

action.textContent = mapped; if (mapped.length > 8) keyEl.dataset.longLabel = ""; keyEl.appendChild(action); - } else if (!isHoldLayer && key !== "space") { + } else if (!hideUnassigned && key !== "space") { const name = displayName(key, def); if (!name && !glyph) { keyEl.style.visibility = "hidden"; @@ -558,7 +559,7 @@

Keymap Layers · JIS shape / US legends

return keyEl; } - function renderLayer(layer, def) { + function renderLayer(layer, def, external) { const bindings = layer.bindings || {}; const summaryEntries = Object.keys(bindings) .filter((key) => !isDeadBinding(bindings[key])) @@ -576,10 +577,10 @@

Keymap Layers · JIS shape / US legends

rowEl.className = "row"; const extras = (def.row_extras && def.row_extras[String(rowIndex)]) || []; for (const key of row) { - rowEl.appendChild(createKey(key, layer, def)); + rowEl.appendChild(createKey(key, layer, def, { external })); for (const extra of extras) { if (extra.after === key && !extra.placeholder) { - rowEl.appendChild(createKey(extra.key, layer, def, { jisReturn: extra.key === "return" })); + rowEl.appendChild(createKey(extra.key, layer, def, { external, jisReturn: extra.key === "return" })); } } } @@ -601,11 +602,13 @@

Keymap Layers · JIS shape / US legends

} // 常駐処理から表示する配列を受け取り、現在の画面を差し替える。 - function showKeymap(profile) { + function showKeymap(profile, externalLayers) { const root = document.getElementById("layers"); const title = document.querySelector("#keymap-title"); const sub = document.querySelector("#keymap-sub"); - const def = window.__KEYMAP_LAYERS__; + const jis = window.__KEYMAP_LAYERS__; + const external = profile === "external" && Array.isArray(externalLayers) && externalLayers.length > 0; + const def = external ? { ...jis, layers: externalLayers } : jis; const split = profile === "torabo" ? window.__TORABO_KEYMAP__ : null; const useSplit = Boolean(split && Array.isArray(split.keys) && split.keys.length && split.keys.every((key) => key && Number.isFinite(key.x) && Number.isFinite(key.y)) && @@ -625,10 +628,10 @@

Keymap Layers · JIS shape / US legends

return "torabo"; } if (!def) throw new Error("JISの配列データがありません。"); - title.textContent = "Keymap Layers · JIS shape / US legends"; - if (sub) sub.textContent = "f + b で表示 · 離すと閉じる · Gruvbox Material"; - for (const layer of def.layers) root.appendChild(renderLayer(layer, def)); - return "jis"; + title.textContent = external ? "外付けキーボード · JIS 配列" : "内蔵キーボード · JIS 配列"; + if (sub) sub.textContent = external ? "f + b で表示 · 離すと閉じる" : "物理 e + f で表示 · 離すと閉じる"; + for (const layer of def.layers) root.appendChild(renderLayer(layer, def, external)); + return external ? "external" : "jis"; } function renderToraboKeymap(root, definition) { diff --git a/.config/karabiner/scripts/keymap-hud.js b/.config/karabiner/scripts/keymap-hud.js index 9201fc0..8a39f0c 100755 --- a/.config/karabiner/scripts/keymap-hud.js +++ b/.config/karabiner/scripts/keymap-hud.js @@ -3,7 +3,7 @@ // 常駐 HUD デーモン(JS)。 // Usage: // osascript -l JavaScript keymap-hud.js daemon -// cmdPath の表示指示に従い、内蔵キーボードまたは Torabo-tsuki のキー一覧を表示する。 +// cmdPath の表示指示に従い、内蔵・外付け・Torabo-tsuki のキー一覧を表示する。 ObjC.import("Cocoa"); ObjC.import("WebKit"); @@ -56,8 +56,14 @@ function batterySubtitle(path) { function keymapDisplayScript(command, path, batteryPath) { const showJis = 'window.showKeymap("jis")'; - // show / show jis → 内蔵 JIS。show torabo だけ Torabo 専用表示。 - if (command === "show" || command === "show jis") return showJis; + if (command === "show external") { + try { + // 形状や凡例は内蔵JISと共有し、外付けのレイヤー定義を読み直す。 + const layers = JSON.parse(readText(path.replace(/[^/]+$/, "keymap-layers-external.json"))); + if (Array.isArray(layers) && layers.length) return `window.showKeymap("external", ${JSON.stringify(layers)})`; + } catch (error) {} + return showJis; + } if (command !== "show torabo") return showJis; try { // 表示のたびにToraboの表示用JSONと、保存された電池残量を読み込む。 @@ -137,7 +143,7 @@ function run(argv) { return; } lastCmd = cmd; - if (cmd === "show" || cmd === "show jis" || cmd === "show torabo") { + if (["show", "show jis", "show external", "show torabo"].includes(cmd)) { // 表示内容を切り替えてからパネルを開く。電池は同ディレクトリのキャッシュを読む。 const batteryPath = cmdPath.replace(/[^/]+$/, "torabo-battery.json"); webView.evaluateJavaScriptCompletionHandler( diff --git a/.config/karabiner/torabo-tsuki-s.md b/.config/karabiner/torabo-tsuki-s.md index 5d5453c..e870972 100644 --- a/.config/karabiner/torabo-tsuki-s.md +++ b/.config/karabiner/torabo-tsuki-s.md @@ -2,7 +2,7 @@ ZMK版のキー割り当ては [torabo_tsuki.keymap](../torabo-zmk/config/torabo_tsuki.keymap) で管理します。MacでToraboのキー一覧を開くたびに、表示用の [torabo-tsuki-s.json](torabo-tsuki-s.json) を読み込みます。キーを変更するときは [ZMKの手順](../torabo-zmk/README.md) に沿って、ファームウェアのキーマップとMacの表示用データの両方を更新します。変更を依頼するときは「Toraboの数字レイヤーで、右手小指側のキーを0に」など、レイヤーと物理キーと希望する動作を伝えてください。 -Toraboでは `f` を長押ししてから `b` を押すと、移動レイヤーのB位置が表示用の `F24` を送り、Karabinerがキー一覧を開きます。同じ `f` 保持中の `n` が英数(ABC)、`m` がかな(あいう)です。ZMKでは `LANG2` と `LANG1` を使います。内蔵キーボードの `f + b`、`f + n`、`f + m` でも同じ操作ができます。 +Toraboでは `f` を長押ししてから `b` を押すと、移動レイヤーのB位置が表示用の `F24` を送り、Karabinerがキー一覧を開きます。同じ `f` 保持中の `n` が英数(ABC)、`m` がかな(あいう)です。ZMKでは `LANG2` と `LANG1` を使います。Macの内蔵JISでは、物理 `e` を保持して `f` で内蔵のキー一覧、`;` で英数、`:` でかなに切り替えます。 ## BMP/Vial版の設定を編集する diff --git a/.config/torabo-zmk/README.md b/.config/torabo-zmk/README.md index 2fd38f2..52f0eb4 100644 --- a/.config/torabo-zmk/README.md +++ b/.config/torabo-zmk/README.md @@ -13,7 +13,7 @@ 2. mainに変更が入るとビルドが始まります。手動でビルドするときは [GitHub ActionsのToraboビルド](https://github.com/ishiooon/dotfiles/actions/workflows/torabo-zmk.yml) で「Run workflow」を選びます。 3. 成功した実行結果の「Artifacts」から `torabo-tsuki-s-firmware` をダウンロードします。ZIPには右親機・左子機・設定消去用の `.uf2` と、使った依存関係の一覧が入っています。 -ブラウザからの編集・ビルドはMac、Windows、Linuxで同じ手順です。MacのF長押し+Bによるキー一覧にはKarabiner-Elementsが必要です。Torabo本体では `F` 押し込み中の `N` が英数(ABC)、`M` がかな(あいう)です。内蔵キーボードでは Karabiner の `f+n` / `f+m` が同じ役割です。 +ブラウザからの編集・ビルドはMac、Windows、Linuxで同じ手順です。MacのF長押し+Bによるキー一覧にはKarabiner-Elementsが必要です。Torabo本体では `F` 押し込み中の `N` が英数(ABC)、`M` がかな(あいう)です。Macの内蔵JISでは、物理 `e` を保持して `;` で英数、`:` でかなに切り替えます。 ### 手元でビルドする diff --git a/README.md b/README.md index c503bbd..ca90d3f 100644 --- a/README.md +++ b/README.md @@ -102,21 +102,26 @@ ln -s ~/dotfiles/.config/mcphub ~/.config/mcphub 導入前確認は `bash .bin/install-janky-borders.sh --dry-run`、導入は `bash .bin/install-janky-borders.sh`、設定変更後の再読み込みは `brew services restart borders` です。 #### 5. Karabiner-Elements のインストール -`d` 押し込み中は `n m , j k l u i o p` が `1-0` になります。`v` 押し込み中は `n m ,` が `, . /`、`j k l u i o p` が `; ' \\ - = [ ]` になります。`f` と同時に押した `hjkl` / `e` はすぐ矢印・Delete になり、長押し後の連続入力にも対応します。`f` + `b` 長押し中だけ、JIS 配列(return 形状含む)の全キーとレイヤー一覧 HUD(JS 実装)を表示します。`英数` / `かな` は短押しで Enter、長押しで ⌘。`f` + `n` で ABC、`f` + `m` で あいう。`space` は短押しでスペース、長押しで Shift です。レイヤー定義は `.config/karabiner/keymap-layers.json`、Karabiner 本体は `.config/karabiner/karabiner.json`、HUD は `.bin/karabiner-keymap-hud` と `.config/karabiner/scripts/keymap-hud.{js,html}` です。HUD は物理 JIS 配列で表示し、常駐デーモン化して `f+b` で即時に出します。英字入力は入力ソース `ABC`(US)を使えます。初回のみ `bash ~/.bin/karabiner-keymap-hud start` でデーモンを起動してください。 -| キー | 動作 | +Macの内蔵JISでは文字キーを上と外側へ移します。以下は移動前の物理キーで書いています。 + +| 物理キー | 動作 | | --- | --- | -| `f` + `h` | ← | -| `f` + `j` | ↓ | -| `f` + `k` | ↑ | -| `f` + `l` | → | -| `f` + `e` | Delete | -| `f` + `m` | キーマップ一覧を表示(押している間) | +| `e` 長押し+ `f` | 内蔵のキー一覧を表示 | +| `e` 長押し+ `o` / `p` / `@` / `[` | 左 / 下 / 上 / 右 | +| `e` 長押し+ `;` / `:` | 英数(ABC)/ かな(あいう) | +| `w` / `d` / `s` / `a` 長押し | 数字 / 記号 / ファンクションキー / メディア | + +内蔵の右かなとスペースは短押しでスペース、長押しでShift。左英数と右Commandは短押しでEnter、長押しでCommand。左CommandはOptionとして使います。Command+Tab中は、Commandを保持したまま物理 `e` と矢印に対応するキーを使います。 -`Command + Tab` 中は、物理の `Command` を維持したまま矢印だけを送るルールを使います。`Command` を押したまま `f` を押し、`hjkl` で移動してください。 +ほかの外付けキーボードでは従来の `f/d/v/c/x` レイヤーを使い、Fを保持してBを押すと外付け用のキー一覧が出ます。Toraboで同じ操作をすると専用のキー一覧が出ます。キー一覧はBに対応するキーを離すと閉じます。 + +内蔵・外付けの表示は [内蔵JISの定義](.config/karabiner/keymap-layers.json) と [外付けのレイヤー定義](.config/karabiner/keymap-layers-external.json) で管理します。[Karabinerの設定](.config/karabiner/karabiner.json) と同じ割り当てを反映してください。 導入前確認は `bash .bin/install-karabiner.sh --dry-run`、導入は `bash .bin/install-karabiner.sh` です。初回はシステム設定で Input Monitoring とアクセシビリティの許可が必要です。許可後に Karabiner-Elements を起動すると設定が有効になります。 +更新前からキー一覧が起動している場合は、`~/.bin/karabiner-keymap-hud stop` で終了します。次の表示操作で新しい定義を読み込みます。 + #### Torabo-tsuki (S) のキーマップ編集 キー割り当てとトラックボール、スリープ設定をリポジトリで管理します。GitHubで設定を編集して保存すると、右親機・左子機のファームウェアが自動でビルドされます。MacのKarabinerで表示するキー一覧にはToraboの配列も含まれます。[編集・ビルド・書き込み手順](.config/torabo-zmk/README.md) diff --git a/tests/karabiner_hud_device_selection_test.sh b/tests/karabiner_hud_device_selection_test.sh index c7a68f6..8a04dfe 100644 --- a/tests/karabiner_hud_device_selection_test.sh +++ b/tests/karabiner_hud_device_selection_test.sh @@ -85,6 +85,10 @@ HUD_TEST_DEVICES=disconnected bash "$launcher" show torabo exit 1 } +# 外付けの旧配列はTorabo接続中でも外付け専用の表示指示を渡す。 +HUD_TEST_DEVICES=usb bash "$launcher" show external +[[ "$(cat "$state_dir/command")" == 'show external' ]] + bash "$launcher" hide [[ "$(cat "$state_dir/command")" == hide ]] [[ "$(bash "$launcher" status)" == 'running pid=12345 cmd=hide' ]] diff --git a/tests/karabiner_hud_torabo_dispatch_test.sh b/tests/karabiner_hud_torabo_dispatch_test.sh index 9318079..90f12a2 100644 --- a/tests/karabiner_hud_torabo_dispatch_test.sh +++ b/tests/karabiner_hud_torabo_dispatch_test.sh @@ -16,19 +16,28 @@ let definition = '{"model":"Torabo "}'; sandbox.readText = () => definition; const calls = []; const browser = vm.createContext({ - window: { showKeymap: (profile) => calls.push(profile) }, + window: { showKeymap: (profile, layers) => calls.push({ profile, layers: layers && JSON.stringify(layers) }) }, buildToraboKeymap: (config) => ({ name: config.model }) }); vm.runInContext(sandbox.keymapDisplayScript("show torabo", "torabo-tsuki-s.json"), browser); -assert.deepEqual(calls, ["torabo"]); +assert.equal(calls.at(-1).profile, "torabo"); assert.equal(browser.window.__TORABO_KEYMAP__.name, "Torabo "); vm.runInContext(sandbox.keymapDisplayScript("show", "torabo-tsuki-s.json"), browser); -assert.deepEqual(calls, ["torabo", "jis"]); +assert.equal(calls.at(-1).profile, "jis"); vm.runInContext(sandbox.keymapDisplayScript("show jis", "torabo-tsuki-s.json"), browser); -assert.deepEqual(calls, ["torabo", "jis", "jis"]); +assert.equal(calls.at(-1).profile, "jis"); +// 外付けでFを保持した場合は、従来のFレイヤーを内蔵の定義から独立して渡す。 +const external = fs.readFileSync(root + "/.config/karabiner/keymap-layers-external.json", "utf8"); +sandbox.readText = (path) => { + assert.equal(path, "keymap-layers-external.json"); + return external; +}; +vm.runInContext(sandbox.keymapDisplayScript("show external", "torabo-tsuki-s.json"), browser); +assert.deepEqual(calls.at(-1), { profile: "external", layers: JSON.stringify(JSON.parse(external)) }); definition = "設定が壊れている"; +sandbox.readText = () => definition; vm.runInContext(sandbox.keymapDisplayScript("show torabo", "torabo-tsuki-s.json"), browser); -assert.deepEqual(calls, ["torabo", "jis", "jis", "jis"]); +assert.equal(calls.at(-1).profile, "jis"); const html = sandbox.buildHtmlDocument("", '{"label":""}', "function buildToraboKeymap() {}"); assert.equal((html.match(/<\/script>/g) || []).length, 2); console.log("成功: 内蔵・Torabo用の表示指示を選び、データ不良時は内蔵表示に戻ります。"); diff --git a/tests/karabiner_layer_shortcuts_test.sh b/tests/karabiner_layer_shortcuts_test.sh index 4cfa2a1..99ea871 100644 --- a/tests/karabiner_layer_shortcuts_test.sh +++ b/tests/karabiner_layer_shortcuts_test.sh @@ -15,7 +15,7 @@ from pathlib import Path # 数字と記号の出力は、設定ファイルの値ではなく利用者向けのキー配列から定義する。 LAYER_OUTPUTS = { - # hold keys: d→w, v→d. chord keys follow letter homes after 上・外側ずらし. + # 内蔵キーボードのレイヤーは、移動後の文字の位置から開く。 "w": { "semicolon": "1", "quote": "2", "backslash": "3", "p": "4", "open_bracket": "5", "close_bracket": "6", "hyphen": "7", "equal_sign": "8", "international3": "9", @@ -29,6 +29,10 @@ LAYER_OUTPUTS = { "0": "international3", }, } +BUILT_IN = {"is_built_in_keyboard": True, "is_keyboard": True} +EXTERNAL = {"is_built_in_keyboard": False, "is_keyboard": True} +TORABO = {**EXTERNAL, "vendor_id": 65261, "product_id": 48301} +LOGICAL_HOLDS = {"e": "f", "w": "d", "d": "v", "s": "c", "a": "x"} SIDED_MODIFIERS = ("command", "control", "option", "shift") ACCEPTED_MODIFIERS = ( (), ("caps_lock",), ("left_shift",), ("right_shift",), @@ -50,7 +54,57 @@ def main(): for layer, outputs in LAYER_OUTPUTS.items(): for key, output in outputs.items(): verify_chord(manipulators, layer, key, output) - print("成功: d/v の同時押しで数字と記号を入力でき、通常のショートカットも維持されます。") + verify_device_scope(manipulators) + verify_command_layer(manipulators) + print("成功: キーボードごとにレイヤーが適用され、通常のショートカットとアプリ切り替えを保ちます。") + + +def verify_device_scope(manipulators): + # 違うキーボードを併用しても、通常入力と右 Shift の左隣の出力が混ざらない。 + for device, expected in ((BUILT_IN, ("q", "p", "vk_none")), (EXTERNAL, ("1", "return_or_enter", "hyphen")), + (TORABO, ("1", "return_or_enter", "international1"))): + for key, output in zip(("1", "return_or_enter", "international1"), expected): + match = first_match(manipulators, (key,), device) + assert (key_codes(match) or [key]) == [output], (device, key, output) + + for key, logical in LOGICAL_HOLDS.items(): + for modifier in ("left_control", "left_option", "right_command"): + match = first_match(manipulators, (key,), BUILT_IN, (modifier,)) + outputs = key_codes(match) or [event["key_code"] for event in match.get("to_if_alone", [])] + assert outputs == [logical], f"{modifier}+{key} で論理配置の {logical} を入力できません。" + assert key_codes(first_match(manipulators, ("d", "n"), EXTERNAL)) == ["1"] + assert key_codes(first_match(manipulators, ("v", "n"), EXTERNAL)) == ["comma"] + assert not first_match(manipulators, ("w", "semicolon"), EXTERNAL) + assert not first_match(manipulators, ("d", "n"), TORABO) + external_hold = variable_values(first_match(manipulators, ("d",), EXTERNAL)) + internal_hold = variable_values(first_match(manipulators, ("w",), BUILT_IN)) + assert key_codes(first_match(manipulators, ("semicolon",), BUILT_IN, variables=external_hold)) == ["n"] + assert not first_match(manipulators, ("n",), EXTERNAL, variables=internal_hold) + + +def verify_command_layer(manipulators): + # 右 Command を先に押してから移動レイヤーに入ると、矢印と逆方向のアプリ切り替えが使える。 + right_command = first_match(manipulators, ("right_command",), BUILT_IN) + right_command_state = variable_values(right_command) + assert key_codes(right_command) == ["right_command"] + assert right_command["to_if_alone"] == [{"key_code": "return_or_enter"}] + for modifiers in ((), ("right_command",)): + hold = first_match(manipulators, ("e",), BUILT_IN, modifiers, right_command_state) + active = {**right_command_state, **variable_values(hold)} + arrow = first_match(manipulators, ("o",), BUILT_IN, modifiers, active) + assert key_codes(arrow) == ["left_arrow"] + switch = first_match(manipulators, ("tab",), BUILT_IN, modifiers, active) + assert switch["to"] == [{"key_code": "tab", "modifiers": ["left_command"]}] + space = first_match(manipulators, ("spacebar",), BUILT_IN, modifiers, active) + assert key_codes(space) == ["left_shift"] and "to_if_alone" not in space + kana = first_match(manipulators, ("japanese_kana",), BUILT_IN, modifiers, active) + assert kana["to_if_alone"] == [{"key_code": "spacebar"}] + for shift in (space, kana): + backwards = first_match(manipulators, ("tab",), BUILT_IN, modifiers, + {**active, **variable_values(shift)}) + assert backwards["to"] == [{"key_code": "tab", "modifiers": ["left_command", "left_shift"]}] + chord = first_match(manipulators, ("e", "o"), BUILT_IN, ("right_command",), allow_first_key=True) + assert key_codes(chord) == ["left_arrow"], "Command と移動レイヤーの同時押しが単独の保持より先に必要です。" def verify_chord(manipulators, layer, key, output): @@ -73,15 +127,45 @@ def verify_chord(manipulators, layer, key, output): def chord_outputs(manipulators, keys, modifiers): - # キーが順に押されて重なった場合に一致するルールについて、変数設定を除いたキー出力を求める。 - chord = tuple(keys) - for manipulator in manipulators: - source = manipulator["from"] - inputs = tuple(event.get("key_code") for event in source.get("simultaneous", ())) - if inputs != chord or not modifiers_match(source.get("modifiers", {}), modifiers): + match = first_match(manipulators, keys, BUILT_IN, modifiers) + return [event for event in match.get("to", []) if "key_code" in event] + + +def first_match(manipulators, keys, device, modifiers=(), variables=None, allow_first_key=False): + # Karabiner と同じ順序で条件を照合し、必要に応じて同時押しの先頭キーも候補にする。 + for entry in manipulators: + source = entry["from"] + inputs = tuple(event["key_code"] for event in source.get("simultaneous", ())) + if not inputs: + inputs = (source.get("key_code"),) + if inputs not in (keys, keys[:1] if allow_first_key else keys): continue - return [event for event in manipulator["to"] if "key_code" in event] - return [] + if modifiers_match(source.get("modifiers", {}), modifiers) and conditions_match(entry, device, variables or {}): + return entry + return {} + + +def conditions_match(entry, device, variables): + for condition in entry.get("conditions", []): + kind = condition["type"] + if kind in ("device_if", "device_unless"): + found = any(all(device.get(key) == value for key, value in identifier.items() if key != "description") + for identifier in condition["identifiers"]) + elif kind in ("variable_if", "variable_unless"): + found = variables.get(condition["name"], 0) == condition["value"] + else: + raise AssertionError(f"未対応の条件 {kind}") + if found != kind.endswith("_if"): + return False + return True + + +def key_codes(entry): + return [event["key_code"] for event in entry.get("to", []) if "key_code" in event] + + +def variable_values(entry): + return {item["name"]: item["value"] for event in entry.get("to", []) if (item := event.get("set_variable"))} def modifiers_match(specification, modifiers): diff --git a/tests/karabiner_torabo_hud_test.sh b/tests/karabiner_torabo_hud_test.sh index e45db7b..8a0fad6 100644 --- a/tests/karabiner_torabo_hud_test.sh +++ b/tests/karabiner_torabo_hud_test.sh @@ -84,6 +84,15 @@ assert.match(heading.textContent, /JIS/); assert.equal(layers.children.length, 6, '切断後はJISの base/f/d/v/c/x レイヤーへ戻る'); assert.ok(body.classes.has('jis-keymap-compact'), 'JISに戻ると6層用の寸法に戻る'); +// 外付けでは従来のFレイヤーを描き、次に内蔵を開くと移動後のEレイヤーへ戻る。 +const external = JSON.parse(fs.readFileSync(path.join(process.argv[2], 'keymap-layers-external.json'), 'utf8')); +assert.equal(window.showKeymap('external', external), 'external'); +assert.match(heading.textContent, /外付け/); +assert.equal(layers.children.length, 6); +assert.match(layers.children[1].children[0].children[0].textContent, /f 押し込み中/); +assert.equal(window.showKeymap('jis'), 'jis'); +assert.match(layers.children[1].children[0].children[0].textContent, /e 押し込み中/); + const manyLayers = openKeymap({ ...options, layers: Array.from({ length: 16 }, (_, index) => ({ name: `レイヤー${index}`, bindings: { left: '<設定>', right: 'F12' }, })) }); diff --git a/tests/karabiner_torabo_shortcut_test.sh b/tests/karabiner_torabo_shortcut_test.sh index 5692165..7b4b5e6 100644 --- a/tests/karabiner_torabo_shortcut_test.sh +++ b/tests/karabiner_torabo_shortcut_test.sh @@ -22,9 +22,8 @@ shortcut = external[0] assert shortcut["conditions"] == [{"type": "device_if", "identifiers": [ {"vendor_id": 65261, "product_id": 48301, "is_keyboard": True} ]}], "Torabo 以外にも表示用キーが適用されています。" -assert shortcut["to"][0]["shell_command"].endswith("keymap-hud show'") +assert shortcut["to"][0]["shell_command"].endswith("keymap-hud show torabo'") assert shortcut["to_after_key_up"][0]["shell_command"].endswith("keymap-hud hide'") -assert any(m["from"].get("key_code") == "b" and m.get("to", [{}])[0].get("shell_command", "").endswith("keymap-hud show'") for m in changes) # ZMK ではキー入力とカーソル操作が一つの機器として届くため、両方を Karabiner で受け取る。 torabo_identifiers = { @@ -56,17 +55,31 @@ for manipulator in changes: continue assert excludes_torabo(manipulator), "Torabo 向け以外の Karabiner 変換が Torabo にも掛かっています。" +def applies_to_keyboard(manipulator, built_in): + identifiers = {"is_built_in_keyboard": built_in, "is_keyboard": True} + for condition in manipulator.get("conditions", []): + if condition["type"] not in ("device_if", "device_unless"): + continue + found = any(all(identifiers.get(name) == value for name, value in candidate.items() + if name != "description") for candidate in condition["identifiers"]) + if found != (condition["type"] == "device_if"): + return False + return True + +# 内蔵からは移動後の JIS 配列を開き、外付けからは従来の配列を開く。 +for built_in, chord_key, mode in [(True, "f", "jis"), (False, "b", "external")]: + hud = [m for m in changes if m["from"].get("key_code") == chord_key and applies_to_keyboard(m, built_in) + and any(event.get("shell_command", "").endswith(f"keymap-hud show {mode}'") for event in m.get("to", []))] + assert len(hud) == 1, f"キーボードに対して {mode} の HUD を開くルールが必要です。" + # 右 Shift の左隣のキーは、Torabo ではファームウェアの割り当てをそのまま使う。 assert not any(m["from"].get("key_code") == "international1" for m in active.get("simple_modifications", [])), ( "全キーボードに適用されるハイフン変換が Torabo の INTERNATIONAL_1 を上書きしています。" ) -hyphen = [m for m in changes if m["from"].get("key_code") == "international1"] -assert len(hyphen) == 1 and excludes_torabo(hyphen[0]) and hyphen[0]["to"] == [{"key_code": "hyphen"}], ( - "Torabo 以外で右 Shift の左隣のキーがハイフンに変換されません。" -) -assert not any(c["type"] == "device_if" for c in hyphen[0]["conditions"]), ( - "右 Shift の左隣のキーの変換に追加の機種制限があります。" -) +for built_in, expected in [(True, "vk_none"), (False, "hyphen")]: + outputs = [m["to"] for m in changes if m["from"].get("key_code") == "international1" + and applies_to_keyboard(m, built_in)] + assert outputs == [[{"key_code": expected}]], "右 Shift の左隣のキーがキーボードごとの割り当てと合いません。" fkeys_setting = "system.use_fkeys_as_standard_function_keys" @@ -87,18 +100,27 @@ def check_function_key(manipulators, key, source): and matches_fkeys_setting(event.get("conditions", []), standard_fkeys)] assert outputs == [(key, modifiers)], f"{source}: {key} の出力が macOS の設定 {standard_fkeys} と合いません。" -# Torabo の標準 F キーと、他のキーボードの C レイヤーでの二通りの押し方を確認する。 -c_layer_keys = ["n", "m", "comma", "j", "k", "l", "u", "i", "o", "p", "h", "y"] -for number, c_layer_key in enumerate(c_layer_keys, 1): +# Torabo 本体から送る F キーは、macOS の設定に関わらずそのまま使う。 +for number in range(1, 13): fkey = f"f{number}" check_function_key([m for m in changes if targets_torabo_only(m) and m["from"].get("key_code") == fkey], fkey, "Torabo") - check_function_key([m for m in changes if m["from"].get("key_code") == c_layer_key - and any(c.get("name") == "c_held" and c["type"] == "variable_if" and c["value"] is True - for c in m.get("conditions", []))], fkey, "C を先に長押し") - check_function_key([m for m in changes if m["from"].get("simultaneous") == [ - {"key_code": "c"}, {"key_code": c_layer_key} - ]], fkey, "C と対象キーを続けて押す") + +# 論理 C の位置は内蔵と外付けで異なり、どちらでも長押し・同時押しで標準 F キーを使える。 +for built_in, hold, targets in [ + (True, "s", ["semicolon", "quote", "backslash", "p", "open_bracket", "close_bracket", + "hyphen", "equal_sign", "international3", "return_or_enter", "o", "0"]), + (False, "c", ["n", "m", "comma", "j", "k", "l", "u", "i", "o", "p", "h", "y"]), +]: + scoped = [m for m in changes if applies_to_keyboard(m, built_in)] + for number, target in enumerate(targets, 1): + fkey = f"f{number}" + check_function_key([m for m in scoped if m["from"].get("key_code") == target + and any(c["type"] == "variable_if" and c.get("name", "").endswith("c_held") + for c in m.get("conditions", []))], fkey, "C を先に長押し") + check_function_key([m for m in scoped if m["from"].get("simultaneous") == [ + {"key_code": hold}, {"key_code": target} + ]], fkey, "C と対象キーを続けて押す") print("成功: キー一覧、ハイフン、標準ファンクションキーのキーボード別設定を確認しました。") PY