diff options
author | Alex Auvolat <alex@adnab.me> | 2024-01-22 11:30:50 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-01-22 11:30:50 +0100 |
commit | 5eadc4463b69de2601886ecb2852336ad326ff2f (patch) | |
tree | 69002a71480fcdda5b8598796c08241f998dad2d | |
parent | 6119d748c68972fac2053c7ff87e4f4a9cbba721 (diff) | |
download | user-config-5eadc4463b69de2601886ecb2852336ad326ff2f.tar.gz user-config-5eadc4463b69de2601886ecb2852336ad326ff2f.zip |
generalize fcitx5
-rw-r--r-- | fcitx5/config | 79 | ||||
-rw-r--r-- | fcitx5/profile | 21 | ||||
-rw-r--r-- | nixos/common.nix | 4 | ||||
-rw-r--r-- | nixos/kusanagi.nix | 5 | ||||
-rw-r--r-- | nixpkgs/common.nix | 1 |
5 files changed, 87 insertions, 23 deletions
diff --git a/fcitx5/config b/fcitx5/config new file mode 100644 index 0000000..cde50f4 --- /dev/null +++ b/fcitx5/config @@ -0,0 +1,79 @@ +[Hotkey] +# Enumerate when press trigger key repeatedly +EnumerateWithTriggerKeys=True +# Enumerate Input Method Forward +EnumerateForwardKeys= +# Enumerate Input Method Backward +EnumerateBackwardKeys= +# Skip first input method while enumerating +EnumerateSkipFirst=False + +[Hotkey/TriggerKeys] +0=Control+space +1=Zenkaku_Hankaku +2=Hangul + +[Hotkey/AltTriggerKeys] +0=Shift_L + +[Hotkey/EnumerateGroupForwardKeys] +0=Control+Alt+space + +[Hotkey/EnumerateGroupBackwardKeys] +0=Control+Alt+Shift+space + +[Hotkey/ActivateKeys] +0=Hangul_Hanja + +[Hotkey/DeactivateKeys] +0=Hangul_Romaja + +[Hotkey/PrevPage] +0=Up + +[Hotkey/NextPage] +0=Down + +[Hotkey/PrevCandidate] +0=Shift+Tab + +[Hotkey/NextCandidate] +0=Tab + +[Hotkey/TogglePreedit] +0=Control+Alt+P + +[Behavior] +# Active By Default +ActiveByDefault=False +# Share Input State +ShareInputState=No +# Show preedit in application +PreeditEnabledByDefault=True +# Show Input Method Information when switch input method +ShowInputMethodInformation=True +# Show Input Method Information when changing focus +showInputMethodInformationWhenFocusIn=False +# Show compact input method information +CompactInputMethodInformation=True +# Show first input method information +ShowFirstInputMethodInformation=True +# Default page size +DefaultPageSize=5 +# Override Xkb Option +OverrideXkbOption=False +# Custom Xkb Option +CustomXkbOption= +# Force Enabled Addons +EnabledAddons= +# Force Disabled Addons +DisabledAddons= +# Preload input method to be used by default +PreloadInputMethod=True +# Allow input method in the password field +AllowInputMethodForPassword=False +# Show preedit text when typing password +ShowPreeditForPassword=False +# Interval of saving user data in minutes +AutoSavePeriod=30 + diff --git a/fcitx5/profile b/fcitx5/profile index 5d6901e..f31b5e7 100644 --- a/fcitx5/profile +++ b/fcitx5/profile @@ -1,6 +1,6 @@ [Groups/0] # Group Name -Name="Group 2" +Name=Japanese # Layout Default Layout=us # Default Input Method @@ -12,27 +12,12 @@ Name=keyboard-us # Layout Layout= -[Groups/1] -# Group Name -Name="Group 1" -# Layout -Default Layout=fr-custom-lx -# Default Input Method -DefaultIM=mozc - -[Groups/1/Items/0] -# Name -Name=keyboard-fr-custom-lx -# Layout -Layout= - -[Groups/1/Items/1] +[Groups/0/Items/1] # Name Name=mozc # Layout Layout= [GroupOrder] -0="Group 1" -1="Group 2" +0=Japanese diff --git a/nixos/common.nix b/nixos/common.nix index d752325..3127abc 100644 --- a/nixos/common.nix +++ b/nixos/common.nix @@ -82,6 +82,10 @@ symbolsFile = ../xkb/symbols/fr-custom-lx; }; + # Input method for japanese + i18n.inputMethod.enabled = "fcitx5"; + i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ]; + # Enable CUPS to print documents. services.printing.enable = true; diff --git a/nixos/kusanagi.nix b/nixos/kusanagi.nix index fbc78a5..d2cd13c 100644 --- a/nixos/kusanagi.nix +++ b/nixos/kusanagi.nix @@ -135,11 +135,6 @@ in services.avahi.nssmdns = true; services.avahi.openFirewall = true; - # ---- input method ---- - - i18n.inputMethod.enabled = "fcitx5"; - i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ]; - # ---- other virtualisation.docker.enable = true; diff --git a/nixpkgs/common.nix b/nixpkgs/common.nix index 21b941d..5ae0602 100644 --- a/nixpkgs/common.nix +++ b/nixpkgs/common.nix @@ -48,6 +48,7 @@ ".config/tmux/tmux.conf".source = ../tmux/tmux.conf; ".config/qutebrowser/config.py".source = ../qutebrowser/config.py; ".config/fcitx5/profile".source = ../fcitx5/profile; + ".config/fcitx5/config".source = ../fcitx5/config; }; services.syncthing.enable = true; |