GithubHelp home page GithubHelp logo

erikjms / meditation-timer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from enormandeau/meditation-timer

0.0 2.0 0.0 808 KB

Simple meditation timer for Linux in Python

License: GNU General Public License v3.0

Makefile 7.34% Python 92.66%

meditation-timer's Introduction

ABOUT THIS PROGRAM

Meditation timer (v0.4.0) is a simple program to assist in the practice of mindfulness. It provides a meditation timer that plays chimes at the start and the end of the meditation session and, optionally, at regular intervals.

It has been tested under Linux with python3.6+.

FEATURES

  • Set preparation and meditation periods duration
  • Choose the number of bells before and after the meditation period
  • Add optional bells at intervals during meditation
  • Use as a pomodoro timer! (see details in the Pomodoro section)

DEPENDENCIES

Meditation timer depends on:

  • Python 3.6+
  • pygame (pip install pygame)
  • Linux (possibly works under MacOS)

INSTALLING

In Linux, you have two options in order to use Meditation-timer:

1) No installation

Simply put the program directory anywhere on your system. When you want to launch the program, open a terminal and move into the directory (using 'cd'). Make sure the file meditation_timer.py executable. In the console, type:

 chmod +x meditation_timer.py

Launch the program:

./meditation_timer.py -h

Alternatively, add the meditation-timer directory to your PATH variable, then launch with:

meditation_timer.py -h

2) Installing

You can install meditation-timer via the 'install.sh' script. This will install the Python program file ('meditation_timer.py') in the '/usr/local/bin' directory and the data in '/usr/share/meditation-timer/'. In order to install the program, you will need to have admnistrative rights on the computer you are using. To proceed with the installation, launch the installation script (use 'sudo' to gain administrative rights):

sudo make install

The program is now installed. If there is a previous installation of meditation_timer on your computer, run the following command to remove it before doing the install:

sudo make uninstall

USING THE PROGRAM

  • Launch the program with the -h option information about available options. Open a terminal and lauch the following command:
meditation_timer.py -h

(Note: add './' before the command if the program was not installed)

You can also create a bash alias with your favorite settings. For example:

# No print, 5 minutes with 1 bell every minute
alias med='meditation_timer.py -n -p 5 -d 10 -i -I 1 >/dev/null'

Pomodoro

If you like the pomodoro system (15 minutes of work and 5 minute breaks), you can use the following alias to reproduct this:

alias pomodoro='while true; do meditation_timer.py -n -p 15 -d 3 -s 1 -e 2 >/dev/null; sleep 5m; done'

This will start a 15 minutes working session with one bell and then end it with two bells. The session will be followed by a 5 minute break an then loop again until you stop it with CTRL-C.

You can save this alias by adding it to your ~/.bashrc or ~/.bash_profile file, prefixing the line with export , like this:

export alias pomodoro='while true; do meditation_timer.py -n -p 15 -d 3 -s 1 -e 2 >/dev/null; sleep 5m; done'

CONTACTING THE AUTHOR

You can send comments to the author at:

eric [dot] normandeau [dot] qc at gmail [dot] com

meditation-timer's People

Contributors

enormandeau avatar crantok avatar eug48 avatar

Watchers

James Cloos avatar Erik JM Schneider 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.