Git Product home page Git Product logo

thymer's Introduction

thymer

Console Pomodoro Timer written in golang. It prints a countdown with progress bar.

Best fit using conky or your terminal.

Installation and Startup

go get github.com/blang/thymer
$GOPATH/bin/thymer -duration="25m" -interval="1s" -bar=30  

Usage

Usage of ./thymer:
-bar=20: Length of progressbar
-duration=25m0s: Pomodoro duration
-interval=1s: Update interval

My Conky

{"full_text": " Thymer ${exec tail -n 1 ~/.thymerlog} ", "color":"\#268BD2"},
{"full_text": " Doros: ${exec cat ~/.thymerlog | grep "Stopped" | wc -l} / ${exec cat ~/.thymerlog | grep "Interrupted" | wc -l}", "color":"\#268BD2"},

Start - Stop

Primitive Stop: killall thymer
Start: $HOME/bin/thymer -duration="25m" -bar=30 >> $HOME/.thymerlog 2>&1

Workflow

  • Start thymer in background (in my case shortcut on i3)
  • tail the last log line to print current pomodoro status
  • Use grep to determine completed and interrupted pomodoros
  • Stop thymer via killall
  • Clear log every day

Contribution

Feel free to make a pull request. For bigger changes create a issue first to discuss about it.

License

See LICENSE file.

thymer's People

Contributors

blang avatar

Watchers

James Cloos avatar Michael Pettigrew 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.