elkorn / pomodorojs

hassle-free time tracking with the pomodoro technique
Other
1 stars 0 forks source link

pomodorojs

Build Status Coverage Status

Track your pomodoros from the command line, witout any hassle.

Well, I got fed up with all the solutions available publicly. What I needed was a command line app that does not get in my way. Also, keeping in mind the fact that there is some actual work to be done, I decided to keep it as lean as possible, without any gold-plating or excess.

Features

They are mainly things I actually previously coded up using Bash (:heart:) while using tomato.es (:heart::heart::heart: the best one out there):

The current time-state of the pomodoro is being written to a statefile every second whilepomodorojs is running. I'm cating it to xmobar.

As to tagging and storing pomdoro data, the information is being output to a statsfile. The format is DATE\tTAG1,TAG2,..,TAGN. There can be zero or more tags. It has to be noted that the comma-separated format is not enforced (You can write whatever as tags) but it is the only one currently supported.

Dependencies

Also, I wanted the app to be absolutely hassle free to use (on my Linux and with the packages I had at my disposal at the time).

Consequently, the dependencies are as follows:

I have not yet tested the app on a system without those dependencies - who knows, maybe it will even WORK!?

Usage and management

git clone git@github.com:elkorn/pomodorojs.git
cd pomodorojs && npm install
ln -s /path/to/pomodorojs/index.js /usr/local/bin/pomodorojs

pomodorojs
# GET TO WORK!

The second part of hassle-freedom is delegating the app management to Linux:

Example process mgmt:

kill -STOP $(pidof pomodorojs)
kill -CONT $(pidof pomodorojs)
kill -INT $(pidof pomodorojs)

Command line arguments


(no args)           Start pomodoroing.
-t, -today          Display pomodoros done today.
--t=N, --time=N     Display pomodoros done N days from now. Sensible values are N<=0 e.g.
                    --t=0 - today, 
                    --t=-1 - yesterday.
--tags=a,b,c...     Only show pomodoros having any of the specified tags.
-n,-numberonly      Only show the number of pomodoros.

todo

It works and is stable (I'm using it practically everyday), but is totally unpolished. All the stuff that I'm planning to do to it (sooner or later) is in the issues.

Acknowledgements

Thank You suonho for the incredible laser sound ! :smile: