From 845d0ac7fb91e9c4802d0683d318be2f38e7ba66 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Fri, 14 Oct 2022 14:37:16 -0700 Subject: [PATCH] Add more fcitx5 themes --- fcitx5.nix | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/fcitx5.nix b/fcitx5.nix index e22e8ad..9d3408e 100644 --- a/fcitx5.nix +++ b/fcitx5.nix @@ -1,5 +1,20 @@ { pkgs, ... }: +let + themes = ".local/share/fcitx5/themes/"; # fcitx5 theme folder + nord = pkgs.fetchFromGitHub { + owner = "tonyfettes"; + repo = "fcitx5-nord"; + rev = "bdaa8fb723b8d0b22f237c9a60195c5f9c9d74d1"; + sha256 = "qVo/0ivZ5gfUP17G29CAW0MrRFUO0KN1ADl1I/rvchE="; + }; + gruvbox = pkgs.fetchFromGitHub { + owner = "ayamir"; + repo = "fcitx5-gruvbox"; + rev = "80bd3ab4c723fc6fcc4a222b6cede6f8337eedda"; + sha256 = "UZc6UTpodxP3pJ6q58FZsJaHr1Wwl/NLYYmo22QYmNk="; + }; +in { i18n.inputMethod = { enabled = "fcitx5"; @@ -14,12 +29,10 @@ }; home.file = { - ".local/share/fcitx5/themes/Nord-Dark".source = let repo = pkgs.fetchFromGitHub { - owner = "tonyfettes"; - repo = "fcitx5-nord"; - rev = "bdaa8fb723b8d0b22f237c9a60195c5f9c9d74d1"; - sha256 = "qVo/0ivZ5gfUP17G29CAW0MrRFUO0KN1ADl1I/rvchE="; - }; in "${repo}/Nord-Dark"; + "${themes}Nord-Dark".source = "${nord}/Nord-Dark"; + "${themes}Nord-Light".source = "${nord}/Nord-Light"; + "${themes}Gruvbox-Dark".source = "${gruvbox}/Gruvbox-Dark"; + "${themes}Gruvbox-Light".source = "${gruvbox}/Gruvbox-Light"; ".config/fcitx5/conf/classicui.conf".text = "Theme=Nord-Dark"; }; }