mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-27 17:02:31 +01:00
Move the Rime data, preferences, and user dictionary into home/base/gui/rime so fcitx5-rime and Squirrel read the same files.
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
# Personal Rime customisation for the flypy (小鹤音形) schema, layered on top of
|
||
# the shared rime-data by Rime's <schema>.custom.yaml mechanism. See README.md.
|
||
patch:
|
||
# Right Shift switches CN/EN; left Shift stays a plain modifier. The stock
|
||
# flypy schema switches on Shift_L, so keep the explicit noop. Ctrl+Space also
|
||
# switches (fcitx5 on Linux; the system input-source shortcut on macOS).
|
||
ascii_composer/switch_key/Shift_L: noop
|
||
ascii_composer/switch_key/Shift_R: commit_code
|
||
|
||
# Disable the stock `Shift+space -> toggle full_shape` binding. flypy declares
|
||
# its own copy after the one imported from `default`, so the override must be a
|
||
# schema-level `bindings/+` (appended last, highest priority) with `unset_option`.
|
||
key_binder/bindings/+:
|
||
- { when: always, accept: "Shift+space", unset_option: full_shape }
|
||
|
||
# Prefer corner brackets over the upstream `【】{}` for [ ] { }.
|
||
"punctuator/full_shape/[":
|
||
- 「
|
||
- 【
|
||
- 〔
|
||
- [
|
||
"punctuator/full_shape/]":
|
||
- 」
|
||
- 】
|
||
- 〕
|
||
- ]
|
||
"punctuator/full_shape/{":
|
||
- 『
|
||
- 〖
|
||
- {
|
||
"punctuator/full_shape/}":
|
||
- 』
|
||
- 〗
|
||
- }
|
||
"punctuator/half_shape/[":
|
||
- 「
|
||
- 【
|
||
- 〔
|
||
- [
|
||
"punctuator/half_shape/]":
|
||
- 」
|
||
- 】
|
||
- 〕
|
||
- ]
|
||
"punctuator/half_shape/{":
|
||
- 『
|
||
- 〖
|
||
- {
|
||
"punctuator/half_shape/}":
|
||
- 』
|
||
- 〗
|
||
- }
|