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

@ -4,8 +4,7 @@
pkgs,
...
}: let
inherit (lib) mkIf mkEnableOption;
inherit (builtins) replaceStrings;
inherit (lib) mkIf mkEnableOption catppuccin;
cfg = config.horseman.wm.hyprland;
colors = config.horseman.catppuccin.colors;
@ -40,7 +39,7 @@ in {
playerctl # Media control
pulsemixer # Audio frontend
wl-clipboard # Clipboard
wofi # Launcher
fuzzel # Launcher
xdg-desktop-portal-hyprland # XDG Portal (needed but idk why)
];
@ -82,8 +81,8 @@ in {
resizeOnBorder = true;
allowTearing = false;
col.activeBorder = replaceStrings [" "] [""] colors."${accent}-rgb";
col.inactiveBorder = replaceStrings [" " ")" "rgb"] ["" ",0.25)" "rgba"] colors."${accent}-rgb"; # Make transparent
col.activeBorder = catppuccin.toRGB colors.${accent};
col.inactiveBorder = catppuccin.toRGBA colors.${accent} 0.25;
layout = "dwindle";
};