Coder Social home page Coder Social logo

org-clock-statusbar-app's Introduction

org-clock-statusbar-app

Intro

A small box in status bar. It turns red when you do nothing.

I use org-mode to track my time. I used to forget to clock in and org-clock-statusbar.app eliminated this problem. It also helps a bit against procrastination, hurrying me with the reddest color my monitor can display.

You can watch an intro gif.

Setup

Install the app to ~/Applications and run it.

https://github.com/koddo/org-clock-statusbar-app/releases/download/1.0.1/org-clock-statusbar.app.zip

Add these lines to your dotemacs:

(defadvice org-clock-in (after org-clock-statusbar-app-in activate)
  (call-process "/usr/bin/osascript" nil 0 nil "-e" (concat "tell application \"org-clock-statusbar\" to clock in \"" org-clock-current-task "\"")))
(defadvice org-clock-out (after org-clock-statusbar-app-out activate)
  (call-process "/usr/bin/osascript" nil 0 nil "-e" "tell application \"org-clock-statusbar\" to clock out"))

Then track your time as usual.

Notes and todos

There is a checkbox to make it indicate the opposite: red when you work.

I also use this checkbox to avoid closing the app when I don't want to track time, i.e. it's late at night, I'm tired and reading reddit.

The app is controlled by AppleScript:

$ osascript -e 'tell application "org-clock-statusbar" to clock in "some task"'
$ osascript -e 'tell application "org-clock-statusbar" to clock out'
$ osascript -e 'tell application "org-clock-statusbar" to swap red and black'
now checked

You can build it yourself using Xcode 5:

$ xcodebuild -configuration Release
$ cp -r build/Release/org-clock-statusbar.app ~/Applications/

For Mac OS X 10.8 and later.

TODO: maybe add a checkbox to run it at login time if anyone is interested

org-clock-statusbar-app's People

Contributors

koddo avatar

Watchers

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