Omahub
← All plugins
C

Chinese Input

by Community contributors

English and Chinese Fcitx5/Rime status, switching, and startup settings for the Omarchy bar.

Security review

No obvious issues detected

Deterministic scan — not a security guarantee

None
Risk level
None
Analyzed commit
10aa3cc
Scanned
1 month ago

No potentially dangerous behavior detected in the analyzed commit.

Automated analysis only — not a security guarantee.

AI advisory review

No obvious issues detected

Language-model assessment · ~deepseek/deepseek-v4-flash-latest — advisory only

None
AI risk level
None
Recommendation
install
Model
~deepseek/deepseek-v4-flash-latest
Analyzed commit
10aa3cc
Reviewed
1 month ago

This is a well-structured Fcitx5/Rime input-method bar widget for Omarchy. The code is transparent, includes tests, creates backups before modifying config files, and performs no hidden network, persistence, or destructive operations. The only elevated action is an explicit, user-initiated package installation (fcitx5-rime, rime-ice-pinyin-git via yay) that is clearly documented in the README and triggered by the user choosing "Install Chinese input".

  • The setup script installs an AUR package (rime-ice-pinyin-git) via yay, which builds from source and is a supply-chain consideration, but this is transparent, documented, and user-initiated.
  • The plugin edits user config files (~/.config/fcitx5/config, Rime YAML), but does so atomically with backups and preserves existing content.
How this check works

This review combines the deterministic scan (the rule-based results above) with an independent look at the plugin's code by a language model. The model reads a trimmed sample of the repository's files, the manifest, and the README, then gives a plain-language risk level and a recommendation: install (no notable danger), review (look closer first), or avoid (clearly dangerous).

It runs on the same analyzed commit as the deterministic scan and is strictly advisory — it is not a security guarantee and never blocks a plugin by itself. A human moderator still reviews plugins before they are listed.

AI advisory only — automated analysis, not a security guarantee.

Install
$ omarchy plugin add https://github.com/gohlihan/omarchy-cn-input-plugin --enable
Productivity #bar

Chinese Input for Omarchy

chinese-input

An Omarchy 4 Quattro bar plugin for English and Simplified Chinese input with Fcitx5 and Rime Ice.

The bar shows en or cn. Left click the label—or press Ctrl+Space—to switch the focused app. Right click opens a small panel where you can choose whether new apps start in English or Chinese.

Install

One line install in your terminal:

omarchy plugin add https://github.com/gohlihan/omarchy-cn-input-plugin.git --enable

The widget initially shows --. Right click it and choose Install Chinese input. A terminal opens for the guided setup because installing packages requires confirmation and may request your password.

The setup installs:

  • fcitx5-rime from the Arch repositories, through omarchy pkg add
  • rime-ice-pinyin-git from the AUR, through yay

An existing rime-ice-git installation is also supported. Setup then enables only the Rime Ice full-pinyin schema and adds Rime to the current Fcitx5 input-method group.

Fresh installations start new apps in English. Right click the widget to change that preference.

What it changes

The plugin relies on the Fcitx5 service and input-method environment already provided by Omarchy 4. It does not modify /etc/security/pam_env.conf or replace Omarchy's system files.

User configuration changes are deliberately narrow:

  • ~/.config/fcitx5/config: sets Behavior/ActiveByDefault; adds Ctrl+Space only when a custom trigger-key section exists and lacks it.
  • ~/.local/share/fcitx5/rime/default.custom.yaml: adds the rime_ice schema while preserving existing customizations.
  • The current Fcitx5 group: appends rime while preserving its keyboard/layout entries.

Before editing an existing file, the controller copies it to:

~/.local/state/community.cn-input/backups/

If an existing Rime YAML file uses a form that cannot be amended safely, setup stops and explains what needs manual attention; it does not overwrite the file.

Commands

The panel normally runs these for you. They are also available from the installed plugin directory:

scripts/cn-inputctl status
scripts/cn-inputctl toggle
scripts/cn-inputctl set-mode en
scripts/cn-inputctl set-mode cn
scripts/cn-inputctl set-startup en
scripts/cn-inputctl set-startup cn
scripts/setup

status emits JSON for the widget. The startup choice controls the default state of new input contexts; it does not forcibly change text fields that are already open.

Update and repair

Update through Omarchy:

omarchy plugin update community.cn-input

To repair the Fcitx/Rime setup, right click the widget and choose Repair setup. The operation is idempotent: it does not intentionally duplicate schemas, hotkeys, or group entries.

If the shell ever fails to hot-reload the plugin, run:

omarchy restart shell

Remove

Remove the widget and its plugin files with:

omarchy plugin remove community.cn-input

Removal leaves Fcitx5, Rime Ice, your user configuration, and backups intact. This avoids breaking another input-method setup that uses them. Remove those separately only if you know they are no longer needed.

Development

Validate and test from the repository root:

omarchy plugin validate .
qmllint -I /usr/share/omarchy/shell BarWidget.qml Panel.qml
./tests/cn-inputctl-test.sh

The implementation follows the Omarchy plugin guide, updates the older manual Chinese-input approach for Omarchy 4, and uses the Rime Ice full-pinyin schema.

Reference

雾凇拼音 | 长期维护的简体词库 https://github.com/iDvel/rime-ice

License

MIT