Code Monkey home page Code Monkey logo

harvest-touchbar's Introduction

Harvest for Touchbar

This is a simple script for BetterTouchTool which allows users to control their currently active timer on Harvest.

Harvest for Touchbar in action

The extension is essentialy a touchbar-based duplicate of Harvest for Mac's menu bar.

Installation

Before getting started, please ensure you have BetterTouchTool, Ruby, and Bundler installed on your on your Mac.

Once you have these packages installed cd into a directory you're not likely to accidentally delete (as that will break the widget) and clone the repository:

$ git clone https://github.com/stevenleeg/harvest-touchbar.git harvest-touchbar

Next you'll need to generate a personal access token from Harvest's developer console for the widget to access your account. Once you've generated your credentials you'll need to create a file, config.yml with the following contents:

harvest_token: [auth token here]
harvest_account_id: [account id here]

We'll also need to install some Ruby dependencies by running:

$ bundle

Finally we'll generate a JSON configuration snippet used to add the widget to BTT and copy it into your system clipboard:

$ ruby harvest.rb | pbcopy

Once copied, you can open BTT's touchbar configuration screen and add the widget by right clicking on the list of widgets and clicking "Paste from JSON in clipboard":

BTT

Voilร ! You should now have a functional Harvest widget in your touchbar. Give it a tap to start/stop your latest timer.

Contributing

Please feel free to open an issue or PR if you've found a bug. If you're looking to implement a feature, please open an issue before creating a PR so I can review it and make sure it's something that should be added.

License

This project is released under the MIT License. See LICENSE.txt for more information.

harvest-touchbar's People

Contributors

stevenleeg avatar

Watchers

James Cloos 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.