2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2024-04-10 21:35:22 -07:00
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
|
|
|
|
2024-04-10 21:35:22 -07:00
|
|
|
cfg = config.programs.rofi.catppuccin;
|
|
|
|
enable = cfg.enable && config.programs.rofi.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-06-28 09:29:30 -07:00
|
|
|
options.programs.rofi.catppuccin = lib.ctp.mkCatppuccinOpt { name = "rofi"; };
|
2024-04-10 21:35:22 -07:00
|
|
|
|
|
|
|
config.programs.rofi = lib.mkIf enable {
|
2024-04-18 09:47:33 -07:00
|
|
|
theme = {
|
|
|
|
"@theme" = builtins.path {
|
2024-05-21 17:23:55 -07:00
|
|
|
name = "catppuccin-${cfg.flavor}.rasi";
|
|
|
|
path = "${sources.rofi}/basic/.local/share/rofi/themes/catppuccin-${cfg.flavor}.rasi";
|
2024-04-18 09:47:33 -07:00
|
|
|
};
|
2024-04-10 21:35:22 -07:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|