2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2024-04-29 11:15:58 -07:00
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2024-04-29 11:15:58 -07:00
|
|
|
cfg = config.programs.tofi.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.tofi.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-06-04 04:29:28 -07:00
|
|
|
options.programs.tofi.catppuccin = lib.ctp.mkCatppuccinOpt "tofi";
|
2024-04-29 11:15:58 -07:00
|
|
|
|
|
|
|
config.programs.tofi = lib.mkIf enable {
|
2024-06-10 13:38:47 -07:00
|
|
|
settings = lib.ctp.fromINI (sources.tofi + "/themes/catppuccin-${cfg.flavor}");
|
2024-04-29 11:15:58 -07:00
|
|
|
};
|
|
|
|
}
|