feat: catppuccin accent color

This commit is contained in:
KoenDR06 2025-12-09 10:02:57 +01:00
parent 18b90d81c6
commit c4648c4a2c
5 changed files with 56 additions and 16 deletions

View file

@ -337,6 +337,39 @@ in {
default = "mocha";
};
accent = mkOption {
type = types.enum [
"rosewater"
"flamingo"
"pink"
"mauve"
"red"
"maroon"
"peach"
"yellow"
"green"
"teal"
"sky"
"sapphire"
"blue"
"lavender"
"text"
"subtext1"
"subtext0"
"overlay2"
"overlay1"
"overlay0"
"surface2"
"surface1"
"surface0"
"base"
"mantle"
"crust"
];
default = "lavender";
};
colors = mkOption {
type = types.attrsOf types.anything;
readOnly = true;

View file

@ -9,6 +9,7 @@
cfg = config.horseman.wm.hyprland;
colors = config.horseman.catppuccin.colors;
accent = config.horseman.catppuccin.accent;
in {
imports = [
./options.nix
@ -82,8 +83,8 @@ in {
resizeOnBorder = true;
allowTearing = false;
col.activeBorder = replaceStrings [" "] [""] colors.lavender-rgb;
col.inactiveBorder = replaceStrings [" " ")" "rgb"] ["" ",0.25)" "rgba"] colors.lavender-rgb; # Make transparent
col.activeBorder = replaceStrings [" "] [""] colors."${accent}-rgb";
col.inactiveBorder = replaceStrings [" " ")" "rgb"] ["" ",0.25)" "rgba"] colors."${accent}-rgb"; # Make transparent
layout = "dwindle";
};