From ccfc0ec854f70d7809f92554a07f7dc59deefab9 Mon Sep 17 00:00:00 2001 From: PiEgg Date: Mon, 20 Apr 2026 21:41:40 +0800 Subject: [PATCH] Add right_control hold for Doubao voice input rule Hold right_control to switch to Doubao IME and activate fn for voice input; on release, switch back to WeChat IME with Chinese mode restored. --- public/groups.json | 3 ++ .../json/right-ctrl-doubao-voice-input.json | 53 +++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 public/json/right-ctrl-doubao-voice-input.json diff --git a/public/groups.json b/public/groups.json index 1a48f7e85..42c2eaf92 100644 --- a/public/groups.json +++ b/public/groups.json @@ -1120,6 +1120,9 @@ { "path": "json/left_option_to_chinese.json" }, + { + "path": "json/right-ctrl-doubao-voice-input.json" + }, { "path": "json/japanese.json" }, diff --git a/public/json/right-ctrl-doubao-voice-input.json b/public/json/right-ctrl-doubao-voice-input.json new file mode 100644 index 000000000..dd787b273 --- /dev/null +++ b/public/json/right-ctrl-doubao-voice-input.json @@ -0,0 +1,53 @@ +{ + "title": "Hold right_control to activate Doubao voice input, switch back to WeChat input on release (rev 1)", + "maintainers": [ + "Molunerfinn" + ], + "rules": [ + { + "description": "Hold right_control: switch to Doubao input + activate fn; release: switch back to WeChat input", + "manipulators": [ + { + "type": "basic", + "from": { + "key_code": "right_control", + "modifiers": { + "optional": [ + "any" + ] + } + }, + "to": [ + { + "select_input_source": { + "input_source_id": "^com\\.bytedance\\.inputmethod\\.doubaoime\\.pinyin$" + }, + "hold_down_milliseconds": 50 + }, + { + "key_code": "fn" + } + ], + "to_after_key_up": [ + { + "set_variable": { + "name": "__delay__", + "value": 1 + }, + "hold_down_milliseconds": 1000 + }, + { + "select_input_source": { + "input_source_id": "^com\\.tencent\\.inputmethod\\.wetype\\.pinyin$" + }, + "hold_down_milliseconds": 50 + }, + { + "key_code": "left_shift" + } + ] + } + ] + } + ] +}