From 1d3e59b5dd1ee30e5058e29e7e16d4600adce965 Mon Sep 17 00:00:00 2001 From: ffoebel <8129090+ffoebel@users.noreply.github.com> Date: Mon, 3 Nov 2025 22:00:26 +0100 Subject: [PATCH] matugen: pywalfox update via post_hook (#619) --- matugen/configs/pywalfox.toml | 3 ++- scripts/matugen-worker.sh | 4 ---- 2 files changed, 2 insertions(+), 5 deletions(-) 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")"