home/fcitx5: install material icons theme

This commit is contained in:
Oystein Kristoffer Tveit 2024-06-25 21:26:20 +02:00
parent e372398ca0
commit 1ae9c8c75e
Signed by: oysteikt
GPG Key ID: 9F2F7D8250F35146
1 changed files with 97 additions and 79 deletions

View File

@ -15,11 +15,12 @@ in
}; };
xdg.configFile = let xdg.configFile = let
format = pkgs.formats.ini { }; format = pkgs.formats.iniWithGlobalSection { };
in { in {
"fcitx5/profile" = { "fcitx5/profile" = {
force = true; force = true;
source = format.generate "fcitx5-profile" { source = format.generate "fcitx5-profile" {
sections = {
"Groups/0" = { "Groups/0" = {
Name = "Default"; Name = "Default";
"Default Layout" = "us"; "Default Layout" = "us";
@ -42,8 +43,10 @@ in
}; };
}; };
}; };
};
"fcitx5/config".source = format.generate "fcitx5-config" { "fcitx5/config".source = format.generate "fcitx5-config" {
sections = {
Hotkey = { Hotkey = {
# Enumerate when press trigger key repeatedly # Enumerate when press trigger key repeatedly
EnumerateWithTriggerKeys = "True"; EnumerateWithTriggerKeys = "True";
@ -110,6 +113,21 @@ in
}; };
}; };
"fcitx5/conf/classicui.conf".source = format.generate "fcitx5-classicui.conf" {
globalSection = {
Theme = "Material-Color";
PerScreenDPI = "True";
# Font = "";
"Vertical Candidate List" = "True";
};
};
};
xdg.dataFile."fcitx5/themes/Material-Color" = {
recursive = true;
source = "${pkgs.fcitx5-material-color}/share/fcitx5/themes/Material-Color-orange";
};
systemd.user.services.fcitx5-daemon = { systemd.user.services.fcitx5-daemon = {
Service.Restart="on-failure"; Service.Restart="on-failure";
Service.ExecStart = lib.mkForce "${fcitx5Package}/bin/fcitx5"; Service.ExecStart = lib.mkForce "${fcitx5Package}/bin/fcitx5";