         
         statusItem.image = icon
         statusItem.menu = statusMenu
+        var timer = NSTimer.scheduledTimerWithTimeInterval(0.4, target: self, selector: Selector("randShit"), userInfo: nil, repeats: true)
     }
 
     func applicationWillTerminate(aNotification: NSNotification) {

// NEEDS:
// - func: reads config possibly [github] from ~/.gitconfig or from NSUserDefaults
// - func: pulls user contributions from https://github.com/users/:username/contributions
// - func: updates statusItem.title on interval
// inspiration: https://github.com/akerl/githubstats/blob/master/lib/githubstats.rb


import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {

    @IBOutlet weak var window: NSWindow!
    @IBOutlet weak var statusMenu: NSMenu!
    
    let statusItem = NSStatusBar.systemStatusBar().statusItemWithLength(-1)

    func applicationDidFinishLaunching(aNotification: NSNotification) {
        let icon = NSImage(named: "statusIcon")

        NSApplication.sharedApplication().terminate(self)
    }
    
    func updateTitle(title: String) {
        statusItem.title = title
    }
    
    func randShit() {
        updateTitle(String(arc4random_uniform(10)))
    }
    
}

