Giter Club home page Giter Club logo

breathe's Introduction

breathe

build-badge Dependency Status

breathe is a command line utility that contains breathing exercises

Installation

Installation is optional, because we can use the dockerized version, as explained later.

However, if you want to install it and run it fully on your own, you'll need the Rust environment, because breathe is written in Rust.

To build and install breate, you have to:

$ git clone [email protected]:pizzamig/breathe.git
$ cd breathe
$ cargo install --path .
$ cp resources/tests/config.toml $HOME/.config/breathe.toml

breathe will be installed in the $HOME/.cargo/bin folder. Optionally, you can customize the configuration file $HOME/.config.breathe.toml.

Dockerized version

A dockerized version of breathe is available on Dockerhub.

You can setup an alias in your shell, for convenience:

$ alias breathe="docker run -it --rm --net=host pizzamig/breathe:0.2.0"
$ breathe -l

Configuration

The configuration file uses the TOML format and specifies the breathing patterns:

[patterns]

[patterns.relax]
description = "This breathing exercise is a natural tranquilizer for the nervous system. The 8 configuration pattern is not suggested for beginners."
breath_in = 4
breath_out = 8
hold_in = 7
counter_type = "Iteration"
duration = 8

Mandatory fields are:

  • description : a string with a description of the pattern
  • breath_in : length (in seconds) of the inhale phase
  • breath_out : length (in seconds) of the exhale phase

Other fields:

  • hold_in : length (in seconds) of the break inhale and exhale [default value: 0]
  • hold_out : length (in seconds) of the break after exhale [default value: 0]

A pattern is usually repeated multiple times, forming a session. A session can be time based, i.e. 5 minutes, or iteration based, i.e. repeat 8 times.

A time based session can be configured in this way (duration in seconds):

counter_type="Time"
duration = 300

An iteration based session can be configured in this way:

counter_type="Iteration"
duration = 8

Where duration is the number of iterations in a session.

breathe's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar pizzamig avatar

Stargazers

 avatar

Watchers

 avatar  avatar

breathe's Issues

Add a new pattern

Reading Biohack your brain, I found a new pattern to lower stress: 6-3-6-0

repetition: 5 to 10 times

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.