From 88196824f658eaf422a3ba7fc3a1bdec93082d1a Mon Sep 17 00:00:00 2001 From: LavaDesu Date: Sat, 15 Mar 2025 20:20:13 +1100 Subject: [PATCH] user/eww-wayland: use catppuccin colours --- modules/user/eww-wayland.nix | 18 ++++++++++++++++-- res/eww-wayland/eww.scss | 6 +++--- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/modules/user/eww-wayland.nix b/modules/user/eww-wayland.nix index e939a1f..245fe55 100644 --- a/modules/user/eww-wayland.nix +++ b/modules/user/eww-wayland.nix @@ -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; }; } diff --git a/res/eww-wayland/eww.scss b/res/eww-wayland/eww.scss index 08b2270..abbfd3a 100644 --- a/res/eww-wayland/eww.scss +++ b/res/eww-wayland/eww.scss @@ -1,6 +1,6 @@ -$background: #1a1b26; -$accent: #9d7cd8; -$foreground: #c0caf5; +$background: EWW_BACKGROUND; +$accent: EWW_ACCENT; +$foreground: EWW_TEXT; * { all: unset;