Skip to content

Commit

Permalink
cleanup, update readme, ready to ship
Browse files Browse the repository at this point in the history
  • Loading branch information
insanj committed Mar 12, 2021
1 parent 18bf1de commit f728d7a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 34 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
![](whilom/Assets.xcassets/AppIcon.appiconset/icon_128x128@2x.png)

# whilom
🪄 keep big sur awake when the lid is closed
🪄 keep your mac awake even when the lid is closed


## Authors

Expand Down
8 changes: 2 additions & 6 deletions whilom.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
objects = {

/* Begin PBXBuildFile section */
1E396DC225FB4A11008E2122 /* InterfaceStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E396DC125FB4A11008E2122 /* InterfaceStyle.swift */; };
1E396DC525FB4C26008E2122 /* NSImage+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E396DC425FB4C26008E2122 /* NSImage+Extension.swift */; };
1EE4E20E24F97E240097C32C /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EE4E20D24F97E240097C32C /* AppDelegate.swift */; };
1EE4E21224F97E250097C32C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1EE4E21124F97E250097C32C /* Assets.xcassets */; };
Expand All @@ -17,7 +16,6 @@
/* Begin PBXFileReference section */
1E2FA93525FB12FE00D7D123 /* whilom.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = whilom.entitlements; sourceTree = "<group>"; };
1E396DB025FB138C008E2122 /* whilomDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = whilomDebug.entitlements; sourceTree = "<group>"; };
1E396DC125FB4A11008E2122 /* InterfaceStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InterfaceStyle.swift; sourceTree = "<group>"; };
1E396DC425FB4C26008E2122 /* NSImage+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "NSImage+Extension.swift"; sourceTree = "<group>"; };
1EE4E20A24F97E240097C32C /* whilom.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = whilom.app; sourceTree = BUILT_PRODUCTS_DIR; };
1EE4E20D24F97E240097C32C /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -59,7 +57,6 @@
1E396DB025FB138C008E2122 /* whilomDebug.entitlements */,
1E2FA93525FB12FE00D7D123 /* whilom.entitlements */,
1EE4E20D24F97E240097C32C /* AppDelegate.swift */,
1E396DC125FB4A11008E2122 /* InterfaceStyle.swift */,
1E396DC425FB4C26008E2122 /* NSImage+Extension.swift */,
1EE4E21124F97E250097C32C /* Assets.xcassets */,
1EE4E21324F97E250097C32C /* Main.storyboard */,
Expand Down Expand Up @@ -139,7 +136,6 @@
buildActionMask = 2147483647;
files = (
1EE4E20E24F97E240097C32C /* AppDelegate.swift in Sources */,
1E396DC225FB4A11008E2122 /* InterfaceStyle.swift in Sources */,
1E396DC525FB4C26008E2122 /* NSImage+Extension.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -286,7 +282,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 0.1.4;
MARKETING_VERSION = 0.1.5;
PRODUCT_BUNDLE_IDENTIFIER = com.insanj.whilom;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -309,7 +305,7 @@
"$(inherited)",
"@executable_path/../Frameworks",
);
MARKETING_VERSION = 0.1.4;
MARKETING_VERSION = 0.1.5;
PRODUCT_BUNDLE_IDENTIFIER = com.insanj.whilom;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
8 changes: 1 addition & 7 deletions whilom/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class AppDelegate: NSObject, NSApplicationDelegate {

// MARK: scripts, states
var isSleepEnabled = true
private var isJustMessingAround = true
private var isJustMessingAround = false

let enableSleepScript: NSAppleScript? = {
let myAppleScript = """
Expand Down Expand Up @@ -210,15 +210,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
let themeName = effectiveAppearance?.name.rawValue.lowercased()
let containsDark = themeName?.contains("dark")
return containsDark ?? false
// if InterfaceStyle() == .Dark {
}

override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?) {
// guard let item = object as? NSStatusItem, item == whilomStatusItem.button else {
// super.observeValue(forKeyPath: keyPath, of: object, change: change, context: context)
// return
// }
//
themeifyMenuItems()
}

Expand Down
20 changes: 0 additions & 20 deletions whilom/InterfaceStyle.swift

This file was deleted.

0 comments on commit f728d7a

Please sign in to comment.