Coder Social home page Coder Social logo

tmuxodoro's Introduction

Tmuxodoro Build Status

Tmuxodoro is a minimalistic pomodoro timer designed for tmux.

It can display how many pomodoros remain

screen shot 2017-04-12 at 01 55 05

How much time remains until the end of a pomodoro

screen shot 2017-04-12 at 01 55 40

And how much time remains for a rest

screen shot 2017-04-12 at 01 56 04

tmuxodoro doesn't have any stupid notifications or other distraction sounds.

Installation

Check that you have Ruby >= 2.0 installed, then install tmuxodoro:

$ gem install tmuxodoro

Usage

You can run tmuxodoro with default configurations (8 tomatoes, 25 minutes per tomato and 5 minutes for a rest):

$ tmuxodoro

Or you can set configurations with ENV variables:

$ env TOMATOES=8 TOMATO_TIME=25 REST_TIME=5 tmuxodoro

Actually tmuxodoro is a pomodoro timer with HTTP interface, so you need to configure tmux to make requests via curl and display output to a statusbar. Add the following line to ~/.tmux.conf:

set -g status-left ' #(curl localhost:3080) '

You can select another port with ENV['PORT'], don't forget to change requests in this case.

To start a new pomodoro you need to send the following request:

$ curl localhost:3080/start

Also you can start it from tmux itself. For example, I've bind it to prefix + p (p is mnemonic to pomodoro). Add the following line to ~/.tmux.conf:

bind p run-shell "curl localhost:3080/start"

To reset pomodoros you need to send the following request:

$ curl localhost:3080/restart

Similarly to the previous command, you can bind it to an any key and run from tmux.

Don't forget ro reload tmux config or restart tmux.

Contributing

Bug reports and pull requests are welcome on GitHub at

https://github.com/mendab1e/tmuxodoro.

License

The gem is available as open source under the terms of the MIT License.

tmuxodoro's People

Contributors

mendab1e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tmuxodoro's Issues

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.