1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

resolve dms-colors dir dynamically in matugen-worker

This commit is contained in:
bbedward
2025-10-05 19:22:17 -04:00
parent fbbf10078f
commit 2b14ef76c9
2 changed files with 7 additions and 6 deletions

View File

@@ -75,9 +75,13 @@ build_once() {
cat "$SHELL_DIR/matugen/configs/base.toml" > "$TMP_CFG"
echo "" >> "$TMP_CFG"
# Always include dank config for dms-colors.json
cat "$SHELL_DIR/matugen/configs/dank.toml" >> "$TMP_CFG"
echo "" >> "$TMP_CFG"
# Generate dank config dynamically with correct state directory
cat >> "$TMP_CFG" << EOF
[templates.dank]
input_path = '$SHELL_DIR/matugen/templates/dank.json'
output_path = '$STATE_DIR/dms-colors.json'
EOF
if command -v niri >/dev/null 2>&1; then
cat "$SHELL_DIR/matugen/configs/niri.toml" >> "$TMP_CFG"