From f302399b709011c065b8a65422508fe35a07c411 Mon Sep 17 00:00:00 2001 From: kenji Date: Sat, 27 Dec 2025 10:48:22 -0600 Subject: [PATCH] add: hyprland colors --- apps/matugen/config.toml | 12 ++++++++++++ apps/matugen/home.nix | 7 +++++++ apps/matugen/templates/ghostty | 6 ++++++ apps/matugen/templates/hyprland-colors.conf | 4 ++++ 4 files changed, 29 insertions(+) create mode 100644 apps/matugen/templates/hyprland-colors.conf diff --git a/apps/matugen/config.toml b/apps/matugen/config.toml index e69de29..5ee5375 100644 --- a/apps/matugen/config.toml +++ b/apps/matugen/config.toml @@ -0,0 +1,12 @@ +[config] +reload_on_change = true + +[templates.ghostty] +input_path = "~/.config/matugen/templates/ghostty" +output_path = "~/.config/ghostty/themes/matugen" +post_hook = "killall -SIGUSR2 .ghostty-wrappe" + +[templates.hyprland] +input_path = "~/.config/matugen/templates/hyprland-colors.conf" +output_path = "~/.config/hypr/hyprland-colors.conf" +post_hook = "hyprctl reload" diff --git a/apps/matugen/home.nix b/apps/matugen/home.nix index 8f10cc3..9f6a15a 100644 --- a/apps/matugen/home.nix +++ b/apps/matugen/home.nix @@ -1,9 +1,16 @@ {pkgs, ...}: { home.packages = with pkgs; [ matugen + psmisc # for killall ]; home.file.".config/matugen/config.toml" = { source = ./config.toml; }; + + home.file.".config/matugen/templates" = { + source = ./templates; + recursive = true; + }; + programs.ghostty.settings.theme = "matugen"; } diff --git a/apps/matugen/templates/ghostty b/apps/matugen/templates/ghostty index e69de29..499cc05 100644 --- a/apps/matugen/templates/ghostty +++ b/apps/matugen/templates/ghostty @@ -0,0 +1,6 @@ +background = {{colors.background.default.hex}} +foreground = {{colors.on_surface.default.hex}} +cursor-color = {{colors.on_surface.default.hex}} +cursor-text = {{colors.on_surface_variant.default.hex}} +selection-background = {{colors.secondary_fixed_dim.default.hex}} +selection-foreground = {{colors.on_secondary.default.hex}} diff --git a/apps/matugen/templates/hyprland-colors.conf b/apps/matugen/templates/hyprland-colors.conf new file mode 100644 index 0000000..5b764ec --- /dev/null +++ b/apps/matugen/templates/hyprland-colors.conf @@ -0,0 +1,4 @@ +<* for name, value in colors *> +$image = {{image}} +${{name}} = rgba({{value.default.hex_stripped}}ff) +* endfor *>