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