user/eww-wayland: use catppuccin colours

This commit is contained in:
LavaDesu 2025-03-15 20:20:13 +11:00
parent 6d49e2b75d
commit 88196824f6
Signed by: cilly
GPG key ID: 6500251E087653C9
2 changed files with 19 additions and 5 deletions

View file

@ -1,7 +1,21 @@
{ pkgs, ... }: {
{ config, pkgs, ... }:
let
res = pkgs.stdenvNoCC.mkDerivation {
pname = "eww-wayland-config";
version = "1.0.0";
dontUnpack = true;
installPhase = ''
cp -r ${../../res/eww-wayland} $out
substituteInPlace $out/eww.scss \
--replace-warn "EWW_BACKGROUND" "${config.catppuccin.hexcolors.surface0}" \
--replace-warn "EWW_TEXT" "${config.catppuccin.hexcolors.text}" \
--replace-warn "EWW_ACCENT" "${config.catppuccin.hexcolors.pink}"
'';
};
in {
home.packages = with pkgs; [ socat ];
programs.eww = {
enable = true;
configDir = ../../res/eww-wayland;
configDir = res;
};
}