Fcitx5: Difference between revisions
Add configuration |
Add more about configuration |
||
| Line 11: | Line 11: | ||
== Configuration == | == Configuration == | ||
Fcitx5 can be configured using {{nixos:option|i18n.inputMethod.fcitx5.settings}}. | Fcitx5 can be configured using {{nixos:option|i18n.inputMethod.fcitx5.settings}} or [https://home-manager-options.extranix.com/?query=i18n.inputMethod.fcitx5.settings i18n.inputMethod.fcitx5.settings] ([[Home Manager]]). The former generates a config file in {{ic|/etc/xdg/fcitx5}} and the latter in {{ic|~/.config/fcitx5}}. | ||
It would be easier to edit the Fcitx5 profile through GUI tools (i.e. {{nixos:package|kdePackages.fcitx5-configtool}}) [https://wiki.archlinux.org/title/Fcitx5#Configuration_tool as recommended in Arch Wiki], then convert the generated configuration ({{ic|cat ~/.config/fcitx5/ | It would be easier to edit the Fcitx5 profile through GUI tools (i.e. {{nixos:package|kdePackages.fcitx5-configtool}}) [https://wiki.archlinux.org/title/Fcitx5#Configuration_tool as recommended in Arch Wiki], then convert the generated configuration files to Nix configuration; | ||
* {{ic|cat ~/.config/fcitx5/profile}} (if exists) to {{ic|i18n.inputMethod.fcitx5.settings.inputMethod}} | |||
* {{ic|cat ~/.config/fcitx5/config}} (if exists) to {{ic|i18n.inputMethod.fcitx5.settings.globalOptions}} | |||
{{file|configuration.nix or home.nix|nix|3= | |||
i18n.inputMethod.fcitx5.settings.inputMethod = { | |||
GroupOrder."0" = "Default"; | |||
"Groups/0" = { | |||
Name = "Default"; | |||
"Default Layout" = "jp"; | |||
DefaultIM = "mozc"; | |||
}; | |||
"Groups/0/Items/0".Name = "keyboard-jp"; | |||
"Groups/0/Items/1".Name = "mozc"; | |||
}; | |||
# i18n.inputMethod.fcitx5.settings.globalOptions = { }; | |||
# If not using Home Manager, you may want to ignore your local config at ~/.config/fcitx5 using the following option. | |||
# i18n.inputMethod.fcitx5.ignoreUserConfig = true; | |||
}} | |||
== Troubleshooting == | == Troubleshooting == | ||