1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

add pywalfox for matugen

This commit is contained in:
bbedward
2025-09-22 09:10:44 -04:00
parent 0bfaf2a8f8
commit 3edfff388c
5 changed files with 51 additions and 1 deletions

View File

@@ -89,6 +89,11 @@ build_once() {
cat "$SHELL_DIR/matugen/configs/firefox.toml" >> "$TMP_CFG"
echo "" >> "$TMP_CFG"
fi
if command -v pywalfox >/dev/null 2>&1; then
cat "$SHELL_DIR/matugen/configs/pywalfox.toml" >> "$TMP_CFG"
echo "" >> "$TMP_CFG"
fi
# GTK3 colors based on colloid
COLLOID_TEMPLATE="$SHELL_DIR/matugen/templates/gtk3-colors.css"
@@ -193,6 +198,11 @@ build_once() {
fi
}
# if pywalfox is installed and ~/.cache/wal/colors.json exists, run update
if command -v pywalfox >/dev/null 2>&1 && [[ -f "$HOME/.cache/wal/colors.json" ]]; then
pywalfox update >/dev/null 2>&1 || true
fi
while :; do
DESIRED="$(read_desired)"
WANT_KEY="$(key_of "$DESIRED")"