Repository navigation
Leave Ctrl+Space to tmux and herdr when fcitx5 switches input methods - #14401
Closed
seunghan91 wants to merge 1 commit into
Closed
seunghan91 wants to merge 1 commit into
seunghan91 wants to merge 1 commit into
Conversation
fcitx5 switches input methods on Ctrl+Space by default, which is also the tmux and herdr prefix. Nothing notices while a single input method is configured, but as soon as someone adds a second one, fcitx5 takes the chord before the terminal sees it. Ship a fcitx5 config whose trigger keys are the dedicated 全角/半角 and 한/영 keys. New users get it through /etc/skel. Existing users get it from a migration only when they have no fcitx5 config and a single input method, where the trigger does nothing yet, so nobody's working switching key changes; a running fcitx5 is reloaded so fcitx5-configtool does not write the old keys back. The quattro upgrade leaves this file to the migration. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019giKJAi15aAheoMjWCsizr
This was referenced Oct 7, 2026
|
Thanks for putting a concrete diff behind #14400. Heads-up: #14433 (from @dhh) also adds Also, if this does go forward: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reference implementation of option 3 in #14400, opened as a draft so the discussion has a diff to look at. If you'd rather go another way there, I'll close this or rework it.
fcitx5 switches input methods on Ctrl+Space by default, which is also Omarchy's tmux and herdr prefix (
config/tmux/tmux.conf:2,config/herdr/config.toml:18). Nothing notices while a single input method is configured, because fcitx5's trigger does nothing then. As soon as someone adds a second one, through the manual'sfcitx5-configtoolroute or one of the open one-step setups (#11719, #9634, #12312), fcitx5 takes the chord before the terminal sees it.What changes
config/fcitx5/config[Hotkey/TriggerKeys]isZenkaku_HankakuandHangul, the dedicated 全角/半角 and 한/영 keys, and leaves outControl+space.omarchy-settingsseeds it to/etc/skelfor new users.migrations/1791210803.sh~/.config/fcitx5/configand every group in the profile has a single item. In that state the trigger does nothing today, so no one's working switching key changes. A running fcitx5 is reloaded withfcitx5-remote -r; otherwisefcitx5-configtoolwould save the old in-memory keys back over the file. If the reload fails, the file is removed and the migration stays pending.bin/omarchy-upgrade-to-quattrocopy_missing_config_defaultsskipsfcitx5/config. The upgrade runs migrations afterwards, so the migration's profile check still applies.manual/34-keyboard-mouse-trackpad.mdtest/shell.d/fcitx5-trigger-keys-migration-test.shDeliberately not included: a fallback key for keyboards without 全角/半角 or 한/영. That's the open question in #14400. Until it's settled, those users pick a key in
fcitx5-configtool, as the manual already says.Downstream note
Try Omarchy's guest builds from these packages and seeds its own fcitx5 profile with a second input method (Chewing, plus Korean in omacom/try-omarchy#320). Its README documents Ctrl+Space for them. Existing guests are untouched, because their profiles already have two items. A guest factory built after this lands would need to ship its own trigger keys or update that README. I'm happy to send that change there.
Testing
test/shell.d/fcitx5-trigger-keys-migration-test.shpasses on Arch Linux ARM with bash 5../test/allhas the same failures asquattro(81145eb), all environment-related (nonode,updatedboromarchy-pkgscheckout), plus the 6 new passing tests.C-Spaceprefix, keys sent withwtype. An existing user has fcitx5 running and one input method, then adds hangul the way Add one-step Korean input setup #11719 does (D-Bus group rewrite, triggers untouched):Ctrl+Space,cgksrmf␣after the 한/영 keyquattrocis typed asㅊ한글keyboard-us한글sway stands in for Hyprland, which has no headless backend, and the keyboard is virtual. I'll repeat this on a clean x86 install with a physical Korean keyboard.
Written and tested with help from Claude (an Anthropic AI model).