/pomodoro-sh

A shell script which uses notifications and url blacklisting to help users follow the Pomodoro-Technique.

Primary LanguageShellGNU General Public License v2.0GPL-2.0

###pomodoro.sh

This script will notify the user when to work and when to rest in intervals as specified at http://en.wikipedia.org/wiki/Pomodoro_Technique. It also alters your hosts file to blacklist any distracting sites during work intervals.

notifications are sent out via terminal-notifier http://rubygems.org/gems/terminal-notifier on OS X or pynotify2 on Linux

python-notify2

On Linux you'll need to install this library, on Ubuntu try: sudo apt-get install python-notify2

Install & Run

make

Start it up in the background.... sudo pomodoro start &

Stop it gracefully.... sudo pomodoro stop

Or, just run ./pomodoro.sh (stop|start)

Block Domains While Working

Create/edit a file called .pomodoro.urls.blacklist in your home folder. Each of the domains in the file will be blacklisted during each work session.

> cat ~/.pomodoro.urls.blacklist

facebook.com
news.ycombinator.com
reddit.com