Giter Club home page Giter Club logo

pymodoro's Introduction

Pymodoro logo

Pymodoro

Pomodoro timer for macOS, which turns on the DND (Do Not Disturb) mode for the pomodoro's duration.

Prerequisites

do-not-disturb-cli

This project uses the do-not-disturb-cli node.js program to control the macOS DND mode.

You need to have it installed globally for Pymodoro to work correcty.

$ npm install --global do-not-disturb-cli

Python 3

To run Pymodoro you need to have Python 3 installed.

Usage

Run Pymodoro from the command line, passing in a single argument specifying the duration of the pomodoro.

Pymodoro will enable the DND macOS mode for that time to block all notifications and allow you to work peacefully.

Example use:

$ python3 pymodoro.py 25

Output:

Pomodoro started, you have 25 minutes
DND on
25 minutes left
24 minutes left
(...)
2 minutes left
1 minutes left
Pomodoro finished
DND off

Voice

There will also be a voice reading out loud the start and the end of the pomodoro, as well as when 20% of the time is left.

To turn it off, run Pymodoro with the --no-sound flag:

$ python3 pymodoro.py 25 --no-sound

Popup

At the end of the pomodoro you will also be alerted with a popup:

Pymodoro popup

To turn it off, run Pymodoro with the --no-popup flag:

$ python3 pymodoro.py 25 --no-popup

pymodoro's People

Contributors

sprzedwojski avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.