yet another pomodoro app
npm install yet-another-pomodoro```
npm i -g yet-another-pomodoro
TODO
Problem to solve:
A productivity pomodoro application that will block messenger apps on MY setup.
Specifically in my case it's enough to block access to one workspace (nr 2) on my i3 setup.
So, an application should allow this:
- a settings file (sensible default would be ~/.tarnas-pomodoro)
- a persistence file (sensible default would be ~/.tarnas-pomodoro.storage)
- standard options to manage productivity time, short and long breaks (default 25/5/15)
- start pomodoro
- stop pomodoro
- next period
- ask for current state (whether we are in pomodoro or not, what type of period we are in, how long till end)
the last affordance is the most critical one!
output should be plaintext, that could be easily managed by bash scripts
in the pseudo-snippet above,
not-in-pomodoro is the simplest possible check we can find to decide if the next command should be executedso if the output is
POMODORO 18:13 or SHORT-BREAK 4:23 or LONG-BREAK 11:22 you can have
`
[[ $(tarnas-pomodoro state) != POMODORO* ]] && i3-msg workspace 2
``^ the above will probably be the interface we go with