Giter VIP home page Giter VIP logo

pomodoro.sh's Introduction

pomodoro.sh

pomodoro.sh to track your pomodoro session and play a sound, shownotification after pomodoro finished In that case send a USR1 signal to the process if you want to see the elapsed time

The script will update you slack status if slack token set You can set slack token by setting the SLACK_TOKEN env var Or put the token into a gpg encrypted file to $HOME/.secret/slack_token.gpg You can override that path by setting the SLACK_TOKEN_FILE_PATH env var

Options

  • -m minutes Duration of the pomodoro session in minutes (see $DEFAULT_MINUTES in the source for default value)
  • -a alarm_sound_file played after pomodoro finished (see $DEFAULT_SOUND in the source for default value)
  • -q Don't show elapsed time
  • -n feature Turn off feature. Available values:
  • SLACK
  • -h Show help

Signals

Send an USR1 to print elapsed time (useful if -q is used)

Environment variables

Some of the parameters can be configured with environment variables:

  • POMODORO_MINUTES Same as -m option. Duration of the pomodoro session in minutes
  • POMODORO_SOUND Same as -a option. Sound file played after pomodoro finished
  • POMODORO_SLACK_TOKEN_FILE_PATH Path to a gpg encrypted file which content is your slack token
  • POMODORO_SLACK_EMOJI An emoji as text which should be shown when you are doing in a pomodoro session
  • POMODORO_SLACK_STATUS_TEXT Status message shown during pomodoro session

Dependencies

  • aplay to play sound after pomodoro finished
  • date for time related functions
  • gpg if you store your slack token in gpg encrypted file
  • curl to call slack api
  • jq for slack related functions: https://stedolan.github.io/jq/

pomodoro.sh's People

Contributors

ajnasz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  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.