home/fcitx5: force install profile on activation

This commit is contained in:
Oystein Kristoffer Tveit 2024-06-25 20:36:27 +02:00
parent de6e83649e
commit 00a536c457
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 23 additions and 20 deletions

View File

@ -17,26 +17,29 @@ in
xdg.configFile = let xdg.configFile = let
format = pkgs.formats.ini { }; format = pkgs.formats.ini { };
in { in {
"fcitx5/profile".source = format.generate "fcitx5-profile" { "fcitx5/profile" = {
"Groups/0" = { force = true;
Name = "Default"; source = format.generate "fcitx5-profile" {
"Default Layout" = "us"; "Groups/0" = {
DefaultIM = "mozc"; Name = "Default";
}; "Default Layout" = "us";
"Groups/0/Items/0" = { DefaultIM = "mozc";
Name = "keyboard-us"; };
Layout = ""; "Groups/0/Items/0" = {
}; Name = "keyboard-us";
"Groups/0/Items/1" = { Layout = "";
Name = "keyboard-no"; };
Layout = ""; "Groups/0/Items/1" = {
}; Name = "keyboard-no";
"Groups/0/Items/2" = { Layout = "";
Name = "mozc"; };
Layout = ""; "Groups/0/Items/2" = {
}; Name = "mozc";
GroupOrder = { Layout = "";
"0" = "Default"; };
GroupOrder = {
"0" = "Default";
};
}; };
}; };