Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

TIMER

simple cli timer written in C++

Once a timer is set, the process is supposed to run in the background. Every subsequent call of the program will share information with the first call.

As soon as a timer ends, the system beeps

SYNOPSIS

How to set a timer

timer --set time [name]

time is measured in seconds.

the following shorthands can be used (all case insensitive):

  • H, hours
  • M, minutes
  • pomodoro

for instance:

timer --set 1H next_meeting

A timer named next_meeting will notify you in 1H.

Will default to 25 minutes, then run for 5 minutes again. The name of the timer will have "work" or "rest" appended respectively. See Pomodoro technique for more info.

for instance:

timer --set pomodoro

Stop reading this message and start working. You have 25 minutes to
get your shit done. If you're good you can slack 5 minutes, later.

How to query a timer

timer [countdownname]

for instance:

timer next_meeting

next_meeting: 52:00

with no arguments it will display all of them:

timer

next_meeting: 52:00
pomodoro: 17:23

Examples

displaying timers in i3status

Run the following script as a wrapper for i3status itself (see the official documentation).

i3status | while :
do
        read line
        #xargs will put all the timers in one line
        echo "$(timer | xargs) | $line " || exit 1

done

About

simple cli timer written in C++

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages