diff --git a/matugen/configs/pywalfox.toml b/matugen/configs/pywalfox.toml index 89ffd29f..abe5d51e 100644 --- a/matugen/configs/pywalfox.toml +++ b/matugen/configs/pywalfox.toml @@ -1,3 +1,4 @@ [templates.dmspywalfox] input_path = './matugen/templates/pywalfox-colors.json' -output_path = '~/.cache/wal/dank-pywalfox.json' \ No newline at end of file +output_path = '~/.cache/wal/dank-pywalfox.json' +post_hook = 'command -v pywalfox && test -f ~/.cache/wal/colors.json && pywalfox update' diff --git a/scripts/matugen-worker.sh b/scripts/matugen-worker.sh index cd7786e6..84e79f73 100755 --- a/scripts/matugen-worker.sh +++ b/scripts/matugen-worker.sh @@ -413,10 +413,6 @@ EOF set_system_color_scheme "$mode" } -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")"