Skip to content

antonmedv/countdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 get github.com/antonmedv/countdown

License

MIT