From 0abec9994c6aed8c4c0dc3d1ad4685e9aa082fe3 Mon Sep 17 00:00:00 2001 From: Liam Malone Date: Thu, 6 Nov 2025 13:01:19 +0000 Subject: [PATCH] add matugen config for hyprland auto-theming --- configs/matugen/config.toml | 6 ++++++ configs/matugen/hyprland-colors.conf | 4 ++++ hosts/darp8/file.nix | 5 +++++ hosts/desktop/file.nix | 11 +++-------- 4 files changed, 18 insertions(+), 8 deletions(-) create mode 100644 configs/matugen/config.toml create mode 100644 configs/matugen/hyprland-colors.conf diff --git a/configs/matugen/config.toml b/configs/matugen/config.toml new file mode 100644 index 0000000..47b2e2a --- /dev/null +++ b/configs/matugen/config.toml @@ -0,0 +1,6 @@ +[config] + +[templates.hyprland] +input_path = '~/.config/matugen/hyprland-colors.conf' +output_path = '~/.config/hypr/hypr-colors.conf' +post_hook = 'hyprctl reload' diff --git a/configs/matugen/hyprland-colors.conf b/configs/matugen/hyprland-colors.conf new file mode 100644 index 0000000..d7e6821 --- /dev/null +++ b/configs/matugen/hyprland-colors.conf @@ -0,0 +1,4 @@ +<* for name, value in colors *> +$image = {{image}} +${{name}} = rgba({{value.default.hex_stripped}}ff) +<* endfor *> diff --git a/hosts/darp8/file.nix b/hosts/darp8/file.nix index f5189f0..46c6a5d 100644 --- a/hosts/darp8/file.nix +++ b/hosts/darp8/file.nix @@ -36,6 +36,11 @@ in outOfStoreSymlink = true; recursive = false; }; + ".config/matugen" = { + source = ../../configs/matugen; + outOfStoreSymlink = true; + recursive = true; + }; ".config/DankMaterialShell" = { source = ../../configs/dms-darp8; outOfStoreSymlink = true; diff --git a/hosts/desktop/file.nix b/hosts/desktop/file.nix index 2ac5dc2..2b3a15c 100644 --- a/hosts/desktop/file.nix +++ b/hosts/desktop/file.nix @@ -26,15 +26,10 @@ in outOfStoreSymlink = true; recursive = true; }; - ".config/hypr/hypr-monitors.conf" = { - source = ../../configs/hypr-desktop/hypr-monitors.conf; + ".config/matugen" = { + source = ../../configs/matugen; outOfStoreSymlink = true; - recursive = false; - }; - ".config/hypr/hypr-colors.conf" = { - source = ../../configs/hypr-desktop/hypr-colors.conf; - outOfStoreSymlink = true; - recursive = false; + recursive = true; }; ".config/DankMaterialShell" = { source = ../../configs/dms-desktop;