diff --git a/nix/homeModules/common/fcitx5/default.nix b/nix/homeModules/common/fcitx5/default.nix index 6d698fbd..1b4f1bd4 100644 --- a/nix/homeModules/common/fcitx5/default.nix +++ b/nix/homeModules/common/fcitx5/default.nix @@ -11,6 +11,12 @@ ]; }; + # Note: + # fcitx5, when wrapped with nix, will keep pointing to the configuration in the nix store. + # In order to change the configuration, you need to: + # - kill the existing fcitx5 process because the configtool kinda talks to it (?) + # - unlink the configuration file linked by home-manager (or copy it) so fcitx5-configtool can write to it + # - use fcitx5-configtool from a nix shell so that it doesn't get stuck with the nix store configuration xdg.configFile = lib.mkIf config.i18n.inputMethod.enable { "fcitx5".source = "${./fcitx}"; }; diff --git a/nix/homeModules/common/fcitx5/fcitx/profile b/nix/homeModules/common/fcitx5/fcitx/profile index ff04302c..9f258564 100644 --- a/nix/homeModules/common/fcitx5/fcitx/profile +++ b/nix/homeModules/common/fcitx5/fcitx/profile @@ -2,32 +2,22 @@ [GroupOrder] 0=gDvorak -1=gDvorakFrench -2=gCangjie +1=gCangjie [Groups/0] +Default Layout=us-dvorak +DefaultIM=keyboard-us-dvorak +Name=gDvorak + +[Groups/0/Items/0] +Layout= +Name=keyboard-us-dvorak + +[Groups/1] Default Layout=us DefaultIM=cangjie3 Name=gCangjie -[Groups/0/Items/0] -Layout= -Name=cangjie3 - -[Groups/1] -Default Layout=myDvorak -DefaultIM=keyboard-myDvorak -Name=gDvorak - [Groups/1/Items/0] Layout= -Name=keyboard-myDvorak - -[Groups/2] -Default Layout=myDvorakFrench -DefaultIM=keyboard-myDvorakFrench -Name=gDvorakFrench - -[Groups/2/Items/0] -Layout= -Name=keyboard-myDvorakFrench +Name=cangjie3