diff options
| author | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-09-11 18:42:23 +0530 |
|---|---|---|
| committer | Saiyed Shizain <saiyedshizain@gmail.com> | 2026-09-11 18:42:23 +0530 |
| commit | 15d9d2e8946a235c2c17ebb2048c20658a44cd68 (patch) | |
| tree | 058d433ba491a5b904a30b53842fc3d0faf65640 /assets/noctalia/templates.toml | |
| parent | 978bdc8d8a1a4dd50e1f539d89764a44d995a2d2 (diff) | |
| download | pomoru-15d9d2e8946a235c2c17ebb2048c20658a44cd68.tar.xz pomoru-15d9d2e8946a235c2c17ebb2048c20658a44cd68.zip | |
feat: add matugen/noctalia v5 color template support
- Add MatugenColors struct reading from ~/.cache/pomoru/colors.json
using flat snake_case keys rendered by noctalia v5's template engine
- Rename old struct to LegacyNoctaliaColors (kept for backward compat)
- Implement priority chain: matugen cache > legacy colors.json > defaults
- Fix parse_hex_color to use trim_start_matches instead of fixed-length
check, accepting both '#RRGGBB' and 'RRGGBB' formats
- Add assets/noctalia/colors-template.json: noctalia template file using
{{colors.<role>.default.hex}} token syntax
- Add assets/noctalia/templates.toml: drop-in user-template config
snippet for ~/.config/noctalia/templates.toml
Diffstat (limited to 'assets/noctalia/templates.toml')
| -rw-r--r-- | assets/noctalia/templates.toml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/assets/noctalia/templates.toml b/assets/noctalia/templates.toml new file mode 100644 index 0000000..51d3f41 --- /dev/null +++ b/assets/noctalia/templates.toml @@ -0,0 +1,28 @@ +# Noctalia v5 user-template for pomoru +# +# This template tells noctalia to render pomoru's theme colors whenever +# the palette changes, so pomoru always matches your wallpaper-derived scheme. +# +# SETUP +# ----- +# Option A – Drop this file into your noctalia config directory: +# +# cp ~/.config/noctalia/templates.toml ~/.config/noctalia/templates.toml.bak # optional backup +# cat assets/noctalia/templates.toml >> ~/.config/noctalia/templates.toml +# +# Option B – Add the block below to ~/.config/noctalia/templates.toml manually. +# +# After adding it, noctalia will render the colors on the next palette change, +# or immediately via: noctalia theme --render-templates + +[theme.templates.user.pomoru] +input_path = "$XDG_CONFIG_HOME/noctalia/templates/pomoru-colors.json" +output_path = "$XDG_CACHE_HOME/pomoru/colors.json" + +# TEMPLATE FILE +# ------------- +# Copy the template to the input_path above: +# +# mkdir -p ~/.config/noctalia/templates +# cp assets/noctalia/colors-template.json \ +# ~/.config/noctalia/templates/pomoru-colors.json |