Skip to content

Instantly share code, notes, and snippets.

@possibilities
Created January 25, 2026 19:55
Show Gist options
  • Select an option

  • Save possibilities/dbdc8ab361b6784efc0c2747b0a50cee to your computer and use it in GitHub Desktop.

Select an option

Save possibilities/dbdc8ab361b6784efc0c2747b0a50cee to your computer and use it in GitHub Desktop.

Alerter Usage in dotfiles

Installation (bootstrap.sh:130-133)

# Install alerter for macOS notifications
ALERTER_URL=$(curl -sL "https://api.github.com/repos/vjeantet/alerter/releases/latest" | jq -r '.assets[0].browser_download_url')
curl -sL "$ALERTER_URL" | tar xz -C /tmp
sudo mv /tmp/alerter /usr/local/bin/alerter

Keyboard Shortcut to Dismiss (skhd/.config/skhd/skhdrc:40-41)

# Dismiss all notifications (terminal-notifier and alerter)
ctrl + cmd - escape : terminal-notifier -remove ALL; killall alerter 2>/dev/null || true

Backup Monitor Notifications (bin/.local/bin/backup-monitor:15)

/usr/local/bin/alerter -title "$title" -message "$message" -sound default -closeLabel Dismiss

rsnapshot Wrapper Notifications (bin/.local/bin/rsnapshot-notify:2,17,22)

# Wrapper for rsnapshot that sends alerter notifications on completion

# On success (line 17):
/usr/local/bin/alerter -title "Backup Complete" -message "$INTERVAL backup succeeded" -sound default -closeLabel Dismiss

# On failure (line 22):
/usr/local/bin/alerter -title "Backup Failed" -message "$INTERVAL: $error_msg" -sound Basso -closeLabel Dismiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment