home/fcitx5: install material icons theme
This commit is contained in:
parent
e372398ca0
commit
1ae9c8c75e
|
@ -15,11 +15,12 @@ in
|
|||
};
|
||||
|
||||
xdg.configFile = let
|
||||
format = pkgs.formats.ini { };
|
||||
format = pkgs.formats.iniWithGlobalSection { };
|
||||
in {
|
||||
"fcitx5/profile" = {
|
||||
force = true;
|
||||
source = format.generate "fcitx5-profile" {
|
||||
sections = {
|
||||
"Groups/0" = {
|
||||
Name = "Default";
|
||||
"Default Layout" = "us";
|
||||
|
@ -42,8 +43,10 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
"fcitx5/config".source = format.generate "fcitx5-config" {
|
||||
sections = {
|
||||
Hotkey = {
|
||||
# Enumerate when press trigger key repeatedly
|
||||
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 = {
|
||||
Service.Restart="on-failure";
|
||||
Service.ExecStart = lib.mkForce "${fcitx5Package}/bin/fcitx5";
|
||||
|
|
Loading…
Reference in New Issue