2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2024-04-18 14:55:19 -07:00
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2024-07-23 18:27:00 -07:00
|
|
|
inherit (lib) ctp mkIf;
|
2024-04-18 14:55:19 -07:00
|
|
|
cfg = config.programs.mpv.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.mpv.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-07-23 18:27:00 -07:00
|
|
|
options.programs.mpv.catppuccin = ctp.mkCatppuccinOpt { name = "mpv"; } // {
|
|
|
|
accent = ctp.mkAccentOpt "mpv";
|
2024-05-21 14:53:46 -07:00
|
|
|
};
|
2024-04-18 14:55:19 -07:00
|
|
|
|
2024-07-23 18:27:00 -07:00
|
|
|
config.programs.mpv = mkIf enable {
|
2024-08-06 18:43:33 -07:00
|
|
|
config.include = sources.mpv + "/themes/${cfg.flavor}/${cfg.accent}.conf";
|
2024-04-18 14:55:19 -07:00
|
|
|
};
|
|
|
|
}
|