Go somewhere.

Home Page About Page Projects Page CV Page Dev Page Journal Page Contact Page Astro for Documentation and a Professional Site Dev Codex anywhere with tmux, Mosh, Termius, and Tailscale Dev Observing Codex MCP Tool Calls with Langfuse Dev Localization in Product Apps Dev MCP as a Safe AI Integration Boundary Dev Zod, OpenAPI, and Swagger for API Contracts Dev pg-boss for Durable Background Jobs Dev pgvector and RAG, Explained Through a Real Knowledge Workflow Dev Pragmatic Drag and Drop for Real Ordering Tasks Dev Prisma and PostgreSQL as the Product Source of Truth Dev Ralph Loop as a Plan Queue Dev React Router for Full-Stack Product Workflows Dev shadcn-Style UI as an Owned Product System Dev Dense Operational UI with Tables and Editors Dev Terminal Spike: a Native Android Terminal Dev Input Chinese pinyin with tones on Linux with fcitx Dev How to configure the DEFT Pro trackball on Linux Dev Use Pocket (read it later) on KOReader Dev Vercel AI SDK with Explicit Tool Boundaries Dev Vertical Slice Architecture with Dependency-Cruiser Dev Testing Product Workflows with Vitest and Playwright Dev Zod Beyond Validation Dev The Brothers Karamazov is the best novel I have ever read Journal Oral history of two Christians in a Chinese labour camp in the 1960s Journal The Word in the Bible Journal We love because He first loved us, not meaningless self-love Journal Mom, let me take the blame for Dad's mistakes Journal My story with God Journal The world is far from God, close to China Journal The Five Love Languages and Extrovert Only Exist in Language Journal Personality types don't exist, life is not a matching game Journal Dangerous words, why psychology is impossible Journal The story of a Shenzhen worker in 2000 Journal A Conversation with a Driver in Ras Al Khaimah Journal Shadian: a 1975 conflict between Communist forces and Muslims in China Journal Documentaries About China Journal
← Dev/Tools

Input Chinese pinyin with tones on Linux with fcitx

A short setup note for typing pinyin with tone marks on Linux using fcitx and Rime.

The goal is to type pinyin with tone marks directly from the Linux input method:

nǐ hǎo

The schema I used is rime-lumen-pinyin. I also keep a double-pinyin Flypy schema enabled for normal Chinese input.

This note assumes fcitx is already installed. ibus or fcitx5 should be similar, but the paths and frontend name may differ.

Install Rime, the input method engine:

yay -S fcitx-rime

Install Plum to configure Rime.

git clone https://github.com/rime/plum.git plum.git
cd plum.git
make

Because this setup uses fcitx, run Plum with the fcitx-rime frontend:

rime_frontend=fcitx-rime bash rime-install
bash rime-install double-pinyin

Copy the pinyin schema from the GitHub repository into:

~/.config/fcitx/rime/

Then edit:

~/.config/fcitx/rime/default.custom.yaml
patch:
  schema_list:
    - schema: double_pinyin_flypy
    - schema: lumen_pinyi

Restart the input system. Switch to Rime, then right-click the input method menu and deploy the configuration.

Use the Rime configuration shortcut to adjust options such as simplified Chinese output:

Ctrl + `