From 7a24319a672c5dc495dfa773584f233e010997d4 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 27 Oct 2026 10:58:32 +0800 Subject: fcitx5: use rime and ctrl-space within to switch lang --- dot-config/fcitx5/config | 7 ++++--- dot-config/fcitx5/profile | 6 ------ dot-local/share/fcitx5/rime/default.custom.yaml | 9 +++++++++ dot-local/share/fcitx5/rime/jyut6ping3.custom.yaml | 7 +++++++ 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/dot-config/fcitx5/config b/dot-config/fcitx5/config index 3c2078a5..a274bbd3 100644 --- a/dot-config/fcitx5/config +++ b/dot-config/fcitx5/config @@ -1,6 +1,10 @@ [Hotkey] +# Toggle Input Method +TriggerKeys= # Enumerate when holding modifier of Toggle key # EnumerateWithTriggerKeys=True +# Consume redundant Activate/Deactivate key +# ConsumeRedundantActivateKeys=False # Temporarily Toggle Input Method AltTriggerKeys= # Enumerate Input Method Forward @@ -16,9 +20,6 @@ EnumerateGroupBackwardKeys= # Time limit in milliseconds for triggering modifier key shortcuts # ModifierOnlyKeyTimeout=250 -[Hotkey/TriggerKeys] -0=Control+space - # [Hotkey/ActivateKeys] # 0=Hangul_Hanja diff --git a/dot-config/fcitx5/profile b/dot-config/fcitx5/profile index 061d916b..66399f56 100644 --- a/dot-config/fcitx5/profile +++ b/dot-config/fcitx5/profile @@ -8,12 +8,6 @@ DefaultIM=rime [Groups/0/Items/0] # Name -Name=keyboard-us-altgr-intl -# Layout -# Layout= - -[Groups/0/Items/1] -# Name Name=rime # Layout # Layout= diff --git a/dot-local/share/fcitx5/rime/default.custom.yaml b/dot-local/share/fcitx5/rime/default.custom.yaml index c4a58a50..70375b47 100644 --- a/dot-local/share/fcitx5/rime/default.custom.yaml +++ b/dot-local/share/fcitx5/rime/default.custom.yaml @@ -1,3 +1,12 @@ patch: schema_list: - schema: jyut6ping3 + ascii_composer/switch_key: + Shift_L: noop + Shift_R: noop + Control_L: noop + Control_R: noop + Caps_Lock: noop + Eisu_toggle: noop + key_binder/bindings/+: + - { when: always, accept: "Control+space", toggle: ascii_mode } diff --git a/dot-local/share/fcitx5/rime/jyut6ping3.custom.yaml b/dot-local/share/fcitx5/rime/jyut6ping3.custom.yaml index 0dbb6165..e7e04f22 100644 --- a/dot-local/share/fcitx5/rime/jyut6ping3.custom.yaml +++ b/dot-local/share/fcitx5/rime/jyut6ping3.custom.yaml @@ -12,8 +12,15 @@ patch: - derive/k$/t/ - derive/m$/ng/ - derive/p$/k/ + - derive/ing$/eng/ + - derive/eng$/ing/ + - derive/im$/em/ + - derive/em$/im/ "key_binder/bindings/+": - { when: has_menu, accept: Control+h, send: Up } - { when: has_menu, accept: Control+l, send: Down } - { when: has_menu, accept: Control+k, send: Page_Up } - { when: has_menu, accept: Control+j, send: Page_Down } + switches/+/0: + name: ascii_mode + reset: 1 -- cgit v1.2.3