countdown icon indicating copy to clipboard operation
countdown copied to clipboard

Terminal countdown timer

Countdown

Screen shot

Usage

Specify duration in go format 1h2m3s.

countdown 25s

Or specify target time in Kitchen time format. This starts a countdown to the matching time within the next 24 hours. For instance, if the current time would be 11:30AM,

countdown 11:32AM

would trigger a 2 minute countdown.

Add command with && to run after countdown.

countdown 1m30s && say "Hello, world"

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.

Install

go install github.com/antonmedv/countdown

License

MIT