From 3be764e7ec5e563180cfe63b8f2ccf010ce7820d Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 27 Feb 2026 11:38:16 -0500 Subject: [PATCH] [bin] Backup existing dotfiles to better one-shot --- bin/.local/bin/bootstrap.sh | 5 +++++ bin/.local/bin/hungryroot-notifications | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/.local/bin/bootstrap.sh b/bin/.local/bin/bootstrap.sh index 140b128..24b600f 100755 --- a/bin/.local/bin/bootstrap.sh +++ b/bin/.local/bin/bootstrap.sh @@ -113,6 +113,11 @@ elif [[ "$PLATFORM" == "macos" ]]; then if have gmake; then MAKE_CMD="gmake"; fi fi +log "Backing up existing files" +(cd ~ && mv .zshrc .zshrc.bak) +(cd ~ && mv .bashrc .bashrc.bak) +(cd ~ && mv .config/gtk-3.0 .config/gtk-3.0.bak) + log "Running $MAKE_CMD in dotfiles repo..." (cd "$DOTFILES_DIR" && "$MAKE_CMD") diff --git a/bin/.local/bin/hungryroot-notifications b/bin/.local/bin/hungryroot-notifications index 6beacf1..949b475 100755 --- a/bin/.local/bin/hungryroot-notifications +++ b/bin/.local/bin/hungryroot-notifications @@ -38,7 +38,7 @@ IMAP_PASS = os.environ.get("IMAP_PASS", "") NTFY_BASE = os.environ.get("NTFY_BASE", "https://ntfy.unbl.ink") NTFY_TOPIC = os.environ.get("NTFY_TOPIC", "hroot-notifications") NTFY_ERROR_TOPIC = os.environ.get("NTFY_ERROR_TOPIC", "errors") -POLL_SECONDS = int(os.environ.get("POLL_SECONDS", "20")) +POLL_SECONDS = int(os.environ.get("POLL_SECONDS", "60")) # Optional: if your ntfy needs auth NTFY_USER = os.environ.get("NTFY_USER")