Created
May 17, 2013 00:36
-
-
Save amiel/5596194 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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