mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-29 07:52:50 -05:00
resolve dms-colors dir dynamically in matugen-worker
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
[templates.dank]
|
|
||||||
input_path = './matugen/templates/dank.json'
|
|
||||||
output_path = '~/.cache/quickshell/dankshell/dms-colors.json'
|
|
||||||
@@ -75,9 +75,13 @@ build_once() {
|
|||||||
cat "$SHELL_DIR/matugen/configs/base.toml" > "$TMP_CFG"
|
cat "$SHELL_DIR/matugen/configs/base.toml" > "$TMP_CFG"
|
||||||
echo "" >> "$TMP_CFG"
|
echo "" >> "$TMP_CFG"
|
||||||
|
|
||||||
# Always include dank config for dms-colors.json
|
# Generate dank config dynamically with correct state directory
|
||||||
cat "$SHELL_DIR/matugen/configs/dank.toml" >> "$TMP_CFG"
|
cat >> "$TMP_CFG" << EOF
|
||||||
echo "" >> "$TMP_CFG"
|
[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
|
if command -v niri >/dev/null 2>&1; then
|
||||||
cat "$SHELL_DIR/matugen/configs/niri.toml" >> "$TMP_CFG"
|
cat "$SHELL_DIR/matugen/configs/niri.toml" >> "$TMP_CFG"
|
||||||
|
|||||||
Reference in New Issue
Block a user