sourcegraph / thyme

Automatically track which applications you use and for how long.
MIT License
2.24k stars 82 forks source link

logo Thyme

Spice up your day-to-day productivity with some free Thyme, courtesy of the team at Sourcegraph (the best way to read and explore code). Automatically track which applications you use and for how long.

Thyme is a work in progress, so please report bugs! Want to see how it works? Dive into the source here.

Want to share what you've learned about your Thyme? Join the discussion on Twitter.

Features

Simple CLI

  1. Record which applications you use every 30 seconds:

    $ while true; do thyme track -o thyme.json; sleep 30s; done;
  2. Create charts showing application usage over time. In a new window:

    $ thyme show -i thyme.json -w stats > thyme.html
  3. Open thyme.html in your browser of choice to see the charts below.

Application usage timeline

Application usage timeline

Detailed application window timeline

Application usage timeline

Aggregate time usage by app

Application usage timeline

Dependencies

Thyme's dependencies vary by system. See thyme dep (mentioned in the installation instructions below).

Install

  1. Install Go (if you have Homebrew on macOS, you can also run brew install go) and run

    $ go get -u github.com/sourcegraph/thyme/cmd/thyme

    Alternatively, if you don't want to install Go, just download the thyme binary here.

  2. Follow the instructions printed by thyme dep.

    $ thyme dep
  3. Verify thyme works with

    $ thyme track

    This should display JSON describing which applications are currently active, visible, and present on your system.

Thyme currently supports Linux, macOS, and Windows.

Usage for Other Shells

Windows Powershell
   > for(1){thyme track -o thyme.json; Start-Sleep -s 5}
   > thyme show -i thyme.json -w stats | Out-File -e utf8 thyme.html
Windows DOS Command Line
   > for /L %n in (0) do @(thyme track -o thyme.json && timeout /t 5 /nobreak)
   > thyme show -i thyme.json -w stats > thyme.html

Use cases

Thyme was designed for developers who want to investigate their application usage to make decisions that boost their day-to-day productivity.

It can also be for other purposes such as:

How is Thyme different from other time trackers?

There are many time tracking products and services on the market. Thyme differs from available offerings in the following ways:

Attribution

The Thyme logo logo by Anthony Bossard is licensed under Creative Commons 3.0.