Skip to content

Instantly share code, notes, and snippets.

@amiel
Created May 17, 2013 00:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amiel/5596194 to your computer and use it in GitHub Desktop.
Save amiel/5596194 to your computer and use it in GitHub Desktop.
import sublime_plugin
import os
class PomodoroStatus(sublime_plugin.EventListener):
# TODO: set up an interval callback on_activated
def update_pomodoro_status(self, view):
f = os.popen('~/Dropbox/dotfiles/bin/pomodoro time')
view.set_status("0_pomodoro_status", f.read())
def on_activated(self, view):
self.update_pomodoro_status(view)
def on_modified(self, view):
self.update_pomodoro_status(view)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment