/countdown

Terminal countdown timer

Primary LanguageGoMIT LicenseMIT

Countdown

Screen shot

Install

go install github.com/antonmedv/countdown@latest

Or download prebuilt binary from releases.

Usage

Specify duration in Go format 1h2m3s.

countdown 25s

Or specify target time: 02:15PM or 14:15. For instance, if the current time would be 11:30, the next example would trigger a 2-minute countdown.

countdown 11:32

Add a command with && to run after the countdown.

countdown 1m30s && say "Hello, world"

Count from up from the zero.

countdown -up 30s

Announce (via macOS say command) last 10 seconds

countdown -say 10s

Key binding

  • p or P: To pause the countdown.
  • c or C: To resume the countdown.
  • Esc or Ctrl+C: To stop the countdown without running next command.

License

MIT