add pywalfox for matugen

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

No files matched your search

+10
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")"