2024-05-21 14:53:46 -07:00
|
|
|
{ config, lib, ... }:
|
2023-04-17 19:50:23 -07:00
|
|
|
let
|
2024-05-13 13:33:16 -07:00
|
|
|
inherit (config.catppuccin) sources;
|
2023-04-17 19:50:23 -07:00
|
|
|
cfg = config.wayland.windowManager.sway.catppuccin;
|
2023-07-13 09:17:51 -07:00
|
|
|
enable = cfg.enable && config.wayland.windowManager.sway.enable;
|
2023-11-02 10:55:47 -07:00
|
|
|
theme = "${sources.sway}/themes/catppuccin-${cfg.flavour}";
|
2023-04-17 19:50:23 -07:00
|
|
|
in
|
|
|
|
{
|
2024-05-21 14:53:46 -07:00
|
|
|
options.wayland.windowManager.sway.catppuccin = lib.ctp.mkCatppuccinOpt "sway";
|
2023-04-17 19:50:23 -07:00
|
|
|
|
2024-05-21 14:53:46 -07:00
|
|
|
config.wayland.windowManager.sway.extraConfigEarly = lib.mkIf enable ''
|
|
|
|
include ${theme}
|
|
|
|
'';
|
2023-04-17 19:50:23 -07:00
|
|
|
}
|