2023-11-03 08:55:17 -07:00
|
|
|
{ config
|
|
|
|
, lib
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2023-11-03 08:55:17 -07:00
|
|
|
cfg = config.wayland.windowManager.hyprland.catppuccin;
|
|
|
|
enable = cfg.enable && config.wayland.windowManager.hyprland.enable;
|
|
|
|
in
|
|
|
|
{
|
2024-05-07 17:36:12 -07:00
|
|
|
options.wayland.windowManager.hyprland.catppuccin = lib.ctp.mkCatppuccinOpt "hyprland" // {
|
|
|
|
accent = lib.ctp.mkAccentOpt "hyprland";
|
|
|
|
};
|
2023-11-03 08:55:17 -07:00
|
|
|
|
2024-05-07 17:36:12 -07:00
|
|
|
config.wayland.windowManager.hyprland.settings = lib.mkIf enable {
|
|
|
|
source = [
|
|
|
|
"${sources.hyprland}/themes/${cfg.flavour}.conf"
|
|
|
|
(builtins.toFile "hyprland-${cfg.accent}-accent.conf" ''
|
|
|
|
$accent=''$${cfg.accent}
|
|
|
|
$accentAlpha=''$${cfg.accent}Alpha
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
};
|
2023-11-03 08:55:17 -07:00
|
|
|
}
|