home: fcitx5: add themes

This commit is contained in:
Guanran Wang 2023-12-19 03:33:52 +08:00
parent 610f0eaf16
commit c0178f4393
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -16,6 +16,20 @@
]);
};
# Fcitx5 themes
xdg.configFile."fcitx5/conf/classicui.conf".text = "Theme=Tokyonight-Storm";
xdg.dataFile = let
tokyonight = pkgs.fetchFromGitHub {
owner = "ch3n9w";
repo = "fcitx5-Tokyonight";
rev = "f7454ab387d6b071ee12ff7ee819f0c7030fdf2c";
hash = "sha256-swOy0kDZUdqtC2sPSZEBLnHSs8dpQ/QfFMObI6BARfo=";
};
in {
"fcitx5/themes/Tokyonight-Day".source = "${tokyonight}/Tokyonight-Day";
"fcitx5/themes/Tokyonight-Storm".source = "${tokyonight}/Tokyonight-Storm";
};
home.sessionVariables = {
"FCITX_NO_PREEDIT_APPS" = "gvim.*,wps.*,wpp.*,et.*,cinny,epiphany";
};