Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Pomodoro Timer for Terminal
Leo Pfeiffer
Leo Pfeiffer

Posted on

     

Pomodoro Timer for Terminal

ThePomodoro Technique is one of the most popular productivity / time management techniques around.

As programmers, we spend a lot of time in the terminal - and so I decided to build a super simple Pomodoro timer for the terminal.

⬇️ Get ithere.

Screenshot of a terminal running the pomodoro command.

The timer is implemented as a simple shell script, so you can simplysource it to use thepomodoro command.

sourcepomodoro.sh
Enter fullscreen modeExit fullscreen mode

To start the timer, run:

pomodoro
Enter fullscreen modeExit fullscreen mode

Apomodoro consists of four work intervals with intermediate breaks:

Work (25 min) - Short Break (5 min)
Work (25 min) - Short Break (5 min)
Work (25 min) - Short Break (5 min)
Work (25 min) - Long Break (25 min)

You can customize the lengths of the work and break intervals.

For example, a work interval of 10 min (600s) with a 1 min (60s) short break and 2 min (120s) long break could be set like this:

pomodoro-w 600-s 60-l 120
Enter fullscreen modeExit fullscreen mode

Beyond the countdown visible in the terminal, you will also get a notification whenever you start a work or break interval. (Notifications are only supported on Mac OS - sorry).

Screenshot of two notifications on a MacBook screen showing the pomodoro timer intervals

You can turn off the notifications if you want:

pomodoro--quiet
Enter fullscreen modeExit fullscreen mode

Happy working!

⬇️ You can get the scripthere.

Top comments(1)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
andrewbaisden profile image
Andrew Baisden
Software Developer | Content Creator | AI, Tech, Programming
  • Location
    London, UK
  • Education
    Bachelor Degree Computer Science
  • Work
    Software Developer
  • Joined

Cool what a useful tool.

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Hi! I'm an aspiring Software Engineer currently studying at the University of St Andrews in Scotland. I'm mostly interested in full-stack web development and anything that involves lots of data.
  • Location
    St Andrews, Scotland
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp