add conversion functions to catppuccin module

This commit is contained in:
KoenDR06 2025-12-24 17:57:24 +01:00
parent 7f5c5b718f
commit 82a11ef821
10 changed files with 663 additions and 391 deletions

View file

@ -0,0 +1,34 @@
{
lib,
config,
...
}: let
inherit (lib) mkIf mkEnableOption catppuccin;
cfg = config.horseman.dots.fuzzel;
username = config.horseman.username;
colors = config.horseman.catppuccin.colors;
accent = config.horseman.catppuccin.accent;
in {
options = {
horseman.dots.fuzzel = {
enable = mkEnableOption "~/.config/fuzzel/fuzzel.ini";
};
};
config = mkIf cfg.enable {
home-manager.users.${username}.xdg.configFile."fuzzel/fuzzel.ini".text = ''
[colors]
background=${catppuccin.toHexNoHash colors.base}dd
text=${catppuccin.toHexNoHash colors.text}ff
prompt=${catppuccin.toHexNoHash colors.subtext1}ff
placeholder=${catppuccin.toHexNoHash colors.overlay1}ff
input=${catppuccin.toHexNoHash colors.text}ff
match=${catppuccin.toHexNoHash colors.${accent}}ff
selection=${catppuccin.toHexNoHash colors.surface2}ff
selection-text=${catppuccin.toHexNoHash colors.text}ff
selection-match=${catppuccin.toHexNoHash colors.${accent}}ff
counter=${catppuccin.toHexNoHash colors.overlay1}ff
border=${catppuccin.toHexNoHash colors.${accent}}ff
'';
};
}