From 0b7bf04628414a402d255924f65e9a0d1a53d92b Mon Sep 17 00:00:00 2001 From: Armin <159054879+arminius-smh@users.noreply.github.com> Date: Sun, 27 Oct 2024 14:40:20 +0100 Subject: [PATCH] feat(home-manager/fcitx5): add accent support (#343) --- modules/home-manager/fcitx5.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/home-manager/fcitx5.nix b/modules/home-manager/fcitx5.nix index e0947001..bd11c27b 100644 --- a/modules/home-manager/fcitx5.nix +++ b/modules/home-manager/fcitx5.nix @@ -6,6 +6,7 @@ let in { options.i18n.inputMethod.fcitx5.catppuccin = lib.ctp.mkCatppuccinOpt { name = "Fcitx5"; } // { + accent = lib.ctp.mkAccentOpt "Fcitx5"; apply = lib.mkOption { type = lib.types.bool; default = true; @@ -17,14 +18,14 @@ in }; config = lib.mkIf enable { - xdg.dataFile."fcitx5/themes/catppuccin-${cfg.flavor}" = { - source = "${sources.fcitx5}/src/catppuccin-${cfg.flavor}"; + xdg.dataFile."fcitx5/themes/catppuccin-${cfg.flavor}-${cfg.accent}" = { + source = "${sources.fcitx5}/src/catppuccin-${cfg.flavor}-${cfg.accent}"; recursive = true; }; xdg.configFile."fcitx5/conf/classicui.conf" = lib.mkIf cfg.apply { text = lib.generators.toINIWithGlobalSection { } { - globalSection.Theme = "catppuccin-${cfg.flavor}"; + globalSection.Theme = "catppuccin-${cfg.flavor}-${cfg.accent}"; }; }; };