From c0178f439324b09970346d8495bb358b8e2aa339 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Tue, 19 Dec 2023 03:33:52 +0800 Subject: [PATCH] home: fcitx5: add themes --- .../home-manager/applications/fcitx5/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/users/guanranwang/home-manager/applications/fcitx5/default.nix b/users/guanranwang/home-manager/applications/fcitx5/default.nix index 7e93015..66ec09f 100644 --- a/users/guanranwang/home-manager/applications/fcitx5/default.nix +++ b/users/guanranwang/home-manager/applications/fcitx5/default.nix @@ -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"; };