 import IOKit
 
 class DisplayManager {
-    let displayID:CGDirectDisplayID, displayInfo:[DisplayInfo], modes:[CGDisplayMode]
+    let displayID:CGDirectDisplayID, displayInfo:[DisplayInfo]
     let modeID:Int32
 
     init(_ displayID:CGDirectDisplayID) {

    }

    func set(with setting: DisplayUserSetting) {
        if let di = displayInfo.first(where: { setting == $0 }) {
            if di.modeID != modeID { _set(di) }
        } else {

    
    private func _set(_ di:DisplayInfo) {
        let mode:CGDisplayMode = di.modeRef
        print(mode.width, mode.pixelWidth, di.scale, di.width, mode)

        print("Setting display mode")

