 */
 let VERSION = "0.0.1"
 let MAX_WIDTH = 20.0
+
+var HAS_BATTERY = false
+var HAS_SMC     = false
 
 
 // TODO: This should probably be a serial queue



let  smc = SMC()
smc.open()

// TODO check if laptop
let battery = Battery()
let isLaptop = battery.isLaptop()
battery.open()


widgets.append(TMPWidget(win: Window(size: (length: 0, width: 1), pos: (x: 0, y: 0))))
widgets.append(FanWidget(win: Window(size: (length: 0, width: 1), pos: (x: 0, y: 0))))
widgets.append(BatteryWidget(win: Window(size: (length: 0, width: 1), pos: (x: 0, y: 0))))

var widgetLength = computeWidgetLength()




public struct Window {
    var size  : (length : Int32, width : Int32) = (0, 0)
    var pos   : (x : Int32, y : Int32) = (0, 0)
}


