Skip to content

Notifications

The notify command (aliased n) sends a desktop notification. It shells out to notify-send, so it works with any notification daemon that implements the freedesktop notification spec (for example mako or dunst).

  • notify-send, provided by libnotify.
  • A running notification daemon.

Pass a summary and, optionally, a body:

Terminal window
go-automate notify "Build complete" "Your build finished successfully"

The first argument is the summary (title) and the second is the body. Use the n alias for shortcuts:

Terminal window
go-automate n "Backup finished"

Wrap multi-word arguments in quotes so they are passed as a single value.

Because it is a single command, notify slots into scripts, build steps and keyboard shortcuts:

Terminal window
make build && go-automate notify "Build complete" || go-automate notify "Build failed"