├── .gitignore
├── Makefile
├── README.md
├── SleepDisplay.m
├── SleepDisplay.xcodeproj
├── project.pbxproj
└── xcshareddata
│ └── xcschemes
│ └── SleepDisplay.xcscheme
├── SleepDisplay
└── main.swift
├── SleepDisplay_10.5.xcodeproj
└── project.pbxproj
├── SleepDisplay_objc.xcodeproj
└── project.pbxproj
├── SleepDisplay_objc_Prefix.pch
├── dist
├── 0.1
│ ├── ub
│ │ └── SleepDisplay
│ └── x64
│ │ └── SleepDisplay
├── 0.2
│ ├── ub
│ │ └── SleepDisplay
│ └── x64
│ │ └── SleepDisplay
├── 1.0
│ └── x64
│ │ └── SleepDisplay
└── 1.1
│ ├── x64
│ └── SleepDisplay
│ └── x64swift
│ └── SleepDisplay
└── version
/.gitignore:
--------------------------------------------------------------------------------
1 | build
2 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 |
2 |
3 | LEO_PROJECT=SleepDisplay_10.5.xcodeproj
4 | LION_PROJECT=SleepDisplay_objc.xcodeproj
5 | SWIFT_PROJECT=SleepDisplay.xcodeproj
6 |
7 | VERSION=$(shell cat version)
8 |
9 | swift:
10 | xcodebuild -project $(SWIFT_PROJECT) -configuration Release -derivedDataPath build \
11 | -scheme SleepDisplay
12 |
13 | x64:
14 | xcodebuild -project $(LION_PROJECT) -configuration Release
15 |
16 | ub:
17 | xcodebuild -project $(LEO_PROJECT) -configuration Release
18 |
19 | dist_swift: swift
20 | mkdir -p dist/$(VERSION)/x64swift/
21 | mv build/Build/Products/Release/SleepDisplay dist/$(VERSION)/x64swift/
22 |
23 | dist_x64: x64
24 | mkdir -p dist/$(VERSION)/x64/
25 | mv build/Release/SleepDisplay dist/$(VERSION)/x64/
26 |
27 | dist_ub: ub
28 | mkdir -p dist/$(VERSION)/ub/
29 | mv build/Release/SleepDisplay dist/$(VERSION)/ub/
30 |
31 | all_dist: dist_x64 dist_swift
32 |
33 | install: x64
34 | cp build/Release/SleepDisplay /usr/local/bin/SleepDisplay
35 |
36 | clean:
37 | rm -rf build
38 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | SleepDisplay
2 | ============
3 |
4 | Turns your Mac's display off/on.
5 |
6 | ### To Use:
7 | Turn Off display `$ SleepDisplay`
8 | Turn On display `$ SleepDisplay --wake` (-w)
9 |
10 |
11 | ### Builds
12 | Builds are available in dist/1.0/x64 (x86)
13 |
14 | ### Compile
15 | to build run `make`
16 | to install in `/usr/local/bin/` run `make install`
17 |
--------------------------------------------------------------------------------
/SleepDisplay.m:
--------------------------------------------------------------------------------
1 | /**
2 | * SleepDisplay
3 | *
4 | * This program is free software: you can redistribute it and/or modify
5 | * it under the terms of the GNU General Public License as published by
6 | * the Free Software Foundation, either version 3 of the License, or
7 | * (at your option) any later version.
8 | *
9 | * This program is distributed in the hope that it will be useful,
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | * GNU General Public License for more details.
13 | *
14 | * You should have received a copy of the GNU General Public License
15 | * along with this program. If not, see .
16 | */
17 |
18 | #import
19 | #import
20 |
21 | int main (int argc, const char * argv[]) {
22 | NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
23 | NSArray *params = [[NSProcessInfo processInfo] arguments];
24 | BOOL shouldWake = NO;
25 |
26 | for (NSString *arg in params)
27 | {
28 | if([arg isEqualToString:@"-wake"] || [arg isEqualToString:@"--wake"] || [arg isEqualToString:@"-w"])
29 | {
30 | shouldWake = YES;
31 | }
32 |
33 | if([arg isEqualToString:@"-help"] || [arg isEqualToString:@"--help"] || [arg isEqualToString:@"-h"])
34 | {
35 | printf("usage: SleepDisplay [-w]\n");
36 | printf("Without options, sleeps the display (not system sleep)\n");
37 | printf("use with the -w (--wake) option to wake\n");
38 | // quit.
39 | [pool drain];
40 | return 0;
41 | }
42 | }
43 |
44 | io_registry_entry_t entry = IORegistryEntryFromPath(kIOMasterPortDefault, "IOService:/IOResources/IODisplayWrangler");
45 | if(entry)
46 | {
47 | IORegistryEntrySetCFProperty(entry, CFSTR("IORequestIdle"), shouldWake ? kCFBooleanFalse : kCFBooleanTrue);
48 | IOObjectRelease(entry);
49 | }
50 |
51 | [pool drain];
52 | return 0;
53 | }
54 |
--------------------------------------------------------------------------------
/SleepDisplay.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 46;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 3BF38DC319412EE600E05A83 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3BF38DC219412EE600E05A83 /* main.swift */; };
11 | /* End PBXBuildFile section */
12 |
13 | /* Begin PBXCopyFilesBuildPhase section */
14 | 3BF38DBD19412EE600E05A83 /* CopyFiles */ = {
15 | isa = PBXCopyFilesBuildPhase;
16 | buildActionMask = 2147483647;
17 | dstPath = /usr/share/man/man1/;
18 | dstSubfolderSpec = 0;
19 | files = (
20 | );
21 | runOnlyForDeploymentPostprocessing = 1;
22 | };
23 | /* End PBXCopyFilesBuildPhase section */
24 |
25 | /* Begin PBXFileReference section */
26 | 3BF38DBF19412EE600E05A83 /* SleepDisplay */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = SleepDisplay; sourceTree = BUILT_PRODUCTS_DIR; };
27 | 3BF38DC219412EE600E05A83 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; };
28 | /* End PBXFileReference section */
29 |
30 | /* Begin PBXFrameworksBuildPhase section */
31 | 3BF38DBC19412EE600E05A83 /* Frameworks */ = {
32 | isa = PBXFrameworksBuildPhase;
33 | buildActionMask = 2147483647;
34 | files = (
35 | );
36 | runOnlyForDeploymentPostprocessing = 0;
37 | };
38 | /* End PBXFrameworksBuildPhase section */
39 |
40 | /* Begin PBXGroup section */
41 | 3BF38DB619412EE600E05A83 = {
42 | isa = PBXGroup;
43 | children = (
44 | 3BF38DC119412EE600E05A83 /* SleepDisplay */,
45 | 3BF38DC019412EE600E05A83 /* Products */,
46 | );
47 | sourceTree = "";
48 | };
49 | 3BF38DC019412EE600E05A83 /* Products */ = {
50 | isa = PBXGroup;
51 | children = (
52 | 3BF38DBF19412EE600E05A83 /* SleepDisplay */,
53 | );
54 | name = Products;
55 | sourceTree = "";
56 | };
57 | 3BF38DC119412EE600E05A83 /* SleepDisplay */ = {
58 | isa = PBXGroup;
59 | children = (
60 | 3BF38DC219412EE600E05A83 /* main.swift */,
61 | );
62 | path = SleepDisplay;
63 | sourceTree = "";
64 | };
65 | /* End PBXGroup section */
66 |
67 | /* Begin PBXNativeTarget section */
68 | 3BF38DBE19412EE600E05A83 /* SleepDisplay */ = {
69 | isa = PBXNativeTarget;
70 | buildConfigurationList = 3BF38DC619412EE600E05A83 /* Build configuration list for PBXNativeTarget "SleepDisplay" */;
71 | buildPhases = (
72 | 3BF38DBB19412EE600E05A83 /* Sources */,
73 | 3BF38DBC19412EE600E05A83 /* Frameworks */,
74 | 3BF38DBD19412EE600E05A83 /* CopyFiles */,
75 | );
76 | buildRules = (
77 | );
78 | dependencies = (
79 | );
80 | name = SleepDisplay;
81 | productName = SleepDisplay;
82 | productReference = 3BF38DBF19412EE600E05A83 /* SleepDisplay */;
83 | productType = "com.apple.product-type.tool";
84 | };
85 | /* End PBXNativeTarget section */
86 |
87 | /* Begin PBXProject section */
88 | 3BF38DB719412EE600E05A83 /* Project object */ = {
89 | isa = PBXProject;
90 | attributes = {
91 | LastSwiftMigration = 0730;
92 | LastSwiftUpdateCheck = 0730;
93 | LastUpgradeCheck = 0730;
94 | ORGANIZATIONNAME = "Kim Hunter";
95 | TargetAttributes = {
96 | 3BF38DBE19412EE600E05A83 = {
97 | CreatedOnToolsVersion = 6.0;
98 | };
99 | };
100 | };
101 | buildConfigurationList = 3BF38DBA19412EE600E05A83 /* Build configuration list for PBXProject "SleepDisplay" */;
102 | compatibilityVersion = "Xcode 3.2";
103 | developmentRegion = English;
104 | hasScannedForEncodings = 0;
105 | knownRegions = (
106 | en,
107 | );
108 | mainGroup = 3BF38DB619412EE600E05A83;
109 | productRefGroup = 3BF38DC019412EE600E05A83 /* Products */;
110 | projectDirPath = "";
111 | projectRoot = "";
112 | targets = (
113 | 3BF38DBE19412EE600E05A83 /* SleepDisplay */,
114 | );
115 | };
116 | /* End PBXProject section */
117 |
118 | /* Begin PBXSourcesBuildPhase section */
119 | 3BF38DBB19412EE600E05A83 /* Sources */ = {
120 | isa = PBXSourcesBuildPhase;
121 | buildActionMask = 2147483647;
122 | files = (
123 | 3BF38DC319412EE600E05A83 /* main.swift in Sources */,
124 | );
125 | runOnlyForDeploymentPostprocessing = 0;
126 | };
127 | /* End PBXSourcesBuildPhase section */
128 |
129 | /* Begin XCBuildConfiguration section */
130 | 3BF38DC419412EE600E05A83 /* Debug */ = {
131 | isa = XCBuildConfiguration;
132 | buildSettings = {
133 | ALWAYS_SEARCH_USER_PATHS = NO;
134 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
135 | CLANG_CXX_LIBRARY = "libc++";
136 | CLANG_ENABLE_MODULES = YES;
137 | CLANG_ENABLE_OBJC_ARC = YES;
138 | CLANG_WARN_BOOL_CONVERSION = YES;
139 | CLANG_WARN_CONSTANT_CONVERSION = YES;
140 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
141 | CLANG_WARN_EMPTY_BODY = YES;
142 | CLANG_WARN_ENUM_CONVERSION = YES;
143 | CLANG_WARN_INT_CONVERSION = YES;
144 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
145 | CLANG_WARN_UNREACHABLE_CODE = YES;
146 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
147 | COPY_PHASE_STRIP = NO;
148 | ENABLE_STRICT_OBJC_MSGSEND = YES;
149 | ENABLE_TESTABILITY = YES;
150 | GCC_C_LANGUAGE_STANDARD = gnu99;
151 | GCC_DYNAMIC_NO_PIC = NO;
152 | GCC_OPTIMIZATION_LEVEL = 0;
153 | GCC_PREPROCESSOR_DEFINITIONS = (
154 | "DEBUG=1",
155 | "$(inherited)",
156 | );
157 | GCC_SYMBOLS_PRIVATE_EXTERN = NO;
158 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
159 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
160 | GCC_WARN_UNDECLARED_SELECTOR = YES;
161 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
162 | GCC_WARN_UNUSED_FUNCTION = YES;
163 | GCC_WARN_UNUSED_VARIABLE = YES;
164 | MACOSX_DEPLOYMENT_TARGET = 10.9;
165 | METAL_ENABLE_DEBUG_INFO = YES;
166 | ONLY_ACTIVE_ARCH = YES;
167 | SDKROOT = macosx;
168 | SWIFT_OPTIMIZATION_LEVEL = "-Onone";
169 | };
170 | name = Debug;
171 | };
172 | 3BF38DC519412EE600E05A83 /* Release */ = {
173 | isa = XCBuildConfiguration;
174 | buildSettings = {
175 | ALWAYS_SEARCH_USER_PATHS = NO;
176 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
177 | CLANG_CXX_LIBRARY = "libc++";
178 | CLANG_ENABLE_MODULES = YES;
179 | CLANG_ENABLE_OBJC_ARC = YES;
180 | CLANG_WARN_BOOL_CONVERSION = YES;
181 | CLANG_WARN_CONSTANT_CONVERSION = YES;
182 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
183 | CLANG_WARN_EMPTY_BODY = YES;
184 | CLANG_WARN_ENUM_CONVERSION = YES;
185 | CLANG_WARN_INT_CONVERSION = YES;
186 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
187 | CLANG_WARN_UNREACHABLE_CODE = YES;
188 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
189 | COPY_PHASE_STRIP = YES;
190 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
191 | ENABLE_NS_ASSERTIONS = NO;
192 | ENABLE_STRICT_OBJC_MSGSEND = YES;
193 | GCC_C_LANGUAGE_STANDARD = gnu99;
194 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
195 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
196 | GCC_WARN_UNDECLARED_SELECTOR = YES;
197 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
198 | GCC_WARN_UNUSED_FUNCTION = YES;
199 | GCC_WARN_UNUSED_VARIABLE = YES;
200 | MACOSX_DEPLOYMENT_TARGET = 10.9;
201 | METAL_ENABLE_DEBUG_INFO = NO;
202 | SDKROOT = macosx;
203 | };
204 | name = Release;
205 | };
206 | 3BF38DC719412EE600E05A83 /* Debug */ = {
207 | isa = XCBuildConfiguration;
208 | buildSettings = {
209 | PRODUCT_NAME = "$(TARGET_NAME)";
210 | };
211 | name = Debug;
212 | };
213 | 3BF38DC819412EE600E05A83 /* Release */ = {
214 | isa = XCBuildConfiguration;
215 | buildSettings = {
216 | PRODUCT_NAME = "$(TARGET_NAME)";
217 | };
218 | name = Release;
219 | };
220 | /* End XCBuildConfiguration section */
221 |
222 | /* Begin XCConfigurationList section */
223 | 3BF38DBA19412EE600E05A83 /* Build configuration list for PBXProject "SleepDisplay" */ = {
224 | isa = XCConfigurationList;
225 | buildConfigurations = (
226 | 3BF38DC419412EE600E05A83 /* Debug */,
227 | 3BF38DC519412EE600E05A83 /* Release */,
228 | );
229 | defaultConfigurationIsVisible = 0;
230 | defaultConfigurationName = Release;
231 | };
232 | 3BF38DC619412EE600E05A83 /* Build configuration list for PBXNativeTarget "SleepDisplay" */ = {
233 | isa = XCConfigurationList;
234 | buildConfigurations = (
235 | 3BF38DC719412EE600E05A83 /* Debug */,
236 | 3BF38DC819412EE600E05A83 /* Release */,
237 | );
238 | defaultConfigurationIsVisible = 0;
239 | defaultConfigurationName = Release;
240 | };
241 | /* End XCConfigurationList section */
242 | };
243 | rootObject = 3BF38DB719412EE600E05A83 /* Project object */;
244 | }
245 |
--------------------------------------------------------------------------------
/SleepDisplay.xcodeproj/xcshareddata/xcschemes/SleepDisplay.xcscheme:
--------------------------------------------------------------------------------
1 |
2 |
5 |
8 |
9 |
15 |
21 |
22 |
23 |
24 |
25 |
30 |
31 |
32 |
33 |
39 |
40 |
41 |
42 |
43 |
44 |
54 |
56 |
62 |
63 |
64 |
65 |
68 |
69 |
72 |
73 |
74 |
75 |
76 |
77 |
83 |
85 |
91 |
92 |
93 |
94 |
96 |
97 |
100 |
101 |
102 |
--------------------------------------------------------------------------------
/SleepDisplay/main.swift:
--------------------------------------------------------------------------------
1 | /**
2 | * SleepDisplay
3 | *
4 | * Created by Kim Hunter on 5/6/2014.
5 | *
6 | * This program is free software: you can redistribute it and/or modify
7 | * it under the terms of the GNU General Public License as published by
8 | * the Free Software Foundation, either version 3 of the License, or
9 | * (at your option) any later version.
10 | *
11 | * This program is distributed in the hope that it will be useful,
12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 | * GNU General Public License for more details.
15 | *
16 | * You should have received a copy of the GNU General Public License
17 | * along with this program. If not, see .
18 | */
19 |
20 | import Foundation
21 |
22 | var shouldWake = false
23 |
24 | for arg in Process.arguments {
25 | switch arg {
26 | case "-wake", "--wake", "-w":
27 | shouldWake = true
28 | case "-help", "--help", "-h":
29 | print("usage: SleepDisplay [-w]");
30 | print("Without options, sleeps the display (not system sleep)");
31 | print("use with the -w (--wake) option to wake");
32 | exit(0);
33 | default:
34 | continue
35 | }
36 | }
37 |
38 | let entry = IORegistryEntryFromPath(kIOMasterPortDefault, "IOService:/IOResources/IODisplayWrangler")
39 | IORegistryEntrySetCFProperty(entry, "IORequestIdle", shouldWake ? kCFBooleanFalse : kCFBooleanTrue);
40 | IOObjectRelease(entry);
41 |
--------------------------------------------------------------------------------
/SleepDisplay_10.5.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 45;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 3B1A2DD81430705F00663B38 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B1A2DD71430705F00663B38 /* IOKit.framework */; };
11 | 8DD76F9A0486AA7600D96B5E /* SleepDisplay.m in Sources */ = {isa = PBXBuildFile; fileRef = 08FB7796FE84155DC02AAC07 /* SleepDisplay.m */; settings = {ATTRIBUTES = (); }; };
12 | 8DD76F9C0486AA7600D96B5E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08FB779EFE84155DC02AAC07 /* Foundation.framework */; };
13 | 8DD76F9F0486AA7600D96B5E /* SleepDisplay.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = C6859EA3029092ED04C91782 /* SleepDisplay.1 */; };
14 | /* End PBXBuildFile section */
15 |
16 | /* Begin PBXCopyFilesBuildPhase section */
17 | 8DD76F9E0486AA7600D96B5E /* CopyFiles */ = {
18 | isa = PBXCopyFilesBuildPhase;
19 | buildActionMask = 8;
20 | dstPath = /usr/share/man/man1/;
21 | dstSubfolderSpec = 0;
22 | files = (
23 | 8DD76F9F0486AA7600D96B5E /* SleepDisplay.1 in CopyFiles */,
24 | );
25 | runOnlyForDeploymentPostprocessing = 1;
26 | };
27 | /* End PBXCopyFilesBuildPhase section */
28 |
29 | /* Begin PBXFileReference section */
30 | 08FB7796FE84155DC02AAC07 /* SleepDisplay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SleepDisplay.m; sourceTree = ""; };
31 | 08FB779EFE84155DC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; };
32 | 32A70AAB03705E1F00C91783 /* SleepDisplay_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SleepDisplay_Prefix.pch; sourceTree = ""; };
33 | 3B1A2DD71430705F00663B38 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; };
34 | 8DD76FA10486AA7600D96B5E /* SleepDisplay */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = SleepDisplay; sourceTree = BUILT_PRODUCTS_DIR; };
35 | C6859EA3029092ED04C91782 /* SleepDisplay.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = SleepDisplay.1; sourceTree = ""; };
36 | /* End PBXFileReference section */
37 |
38 | /* Begin PBXFrameworksBuildPhase section */
39 | 8DD76F9B0486AA7600D96B5E /* Frameworks */ = {
40 | isa = PBXFrameworksBuildPhase;
41 | buildActionMask = 2147483647;
42 | files = (
43 | 8DD76F9C0486AA7600D96B5E /* Foundation.framework in Frameworks */,
44 | 3B1A2DD81430705F00663B38 /* IOKit.framework in Frameworks */,
45 | );
46 | runOnlyForDeploymentPostprocessing = 0;
47 | };
48 | /* End PBXFrameworksBuildPhase section */
49 |
50 | /* Begin PBXGroup section */
51 | 08FB7794FE84155DC02AAC07 /* SleepDisplay */ = {
52 | isa = PBXGroup;
53 | children = (
54 | 08FB7795FE84155DC02AAC07 /* Source */,
55 | C6859EA2029092E104C91782 /* Documentation */,
56 | 08FB779DFE84155DC02AAC07 /* External Frameworks and Libraries */,
57 | 1AB674ADFE9D54B511CA2CBB /* Products */,
58 | );
59 | name = SleepDisplay;
60 | sourceTree = "";
61 | };
62 | 08FB7795FE84155DC02AAC07 /* Source */ = {
63 | isa = PBXGroup;
64 | children = (
65 | 32A70AAB03705E1F00C91783 /* SleepDisplay_Prefix.pch */,
66 | 08FB7796FE84155DC02AAC07 /* SleepDisplay.m */,
67 | );
68 | name = Source;
69 | sourceTree = "";
70 | };
71 | 08FB779DFE84155DC02AAC07 /* External Frameworks and Libraries */ = {
72 | isa = PBXGroup;
73 | children = (
74 | 3B1A2DD71430705F00663B38 /* IOKit.framework */,
75 | 08FB779EFE84155DC02AAC07 /* Foundation.framework */,
76 | );
77 | name = "External Frameworks and Libraries";
78 | sourceTree = "";
79 | };
80 | 1AB674ADFE9D54B511CA2CBB /* Products */ = {
81 | isa = PBXGroup;
82 | children = (
83 | 8DD76FA10486AA7600D96B5E /* SleepDisplay */,
84 | );
85 | name = Products;
86 | sourceTree = "";
87 | };
88 | C6859EA2029092E104C91782 /* Documentation */ = {
89 | isa = PBXGroup;
90 | children = (
91 | C6859EA3029092ED04C91782 /* SleepDisplay.1 */,
92 | );
93 | name = Documentation;
94 | sourceTree = "";
95 | };
96 | /* End PBXGroup section */
97 |
98 | /* Begin PBXNativeTarget section */
99 | 8DD76F960486AA7600D96B5E /* SleepDisplay */ = {
100 | isa = PBXNativeTarget;
101 | buildConfigurationList = 1DEB927408733DD40010E9CD /* Build configuration list for PBXNativeTarget "SleepDisplay" */;
102 | buildPhases = (
103 | 8DD76F990486AA7600D96B5E /* Sources */,
104 | 8DD76F9B0486AA7600D96B5E /* Frameworks */,
105 | 8DD76F9E0486AA7600D96B5E /* CopyFiles */,
106 | );
107 | buildRules = (
108 | );
109 | dependencies = (
110 | );
111 | name = SleepDisplay;
112 | productInstallPath = "$(HOME)/bin";
113 | productName = SleepDisplay;
114 | productReference = 8DD76FA10486AA7600D96B5E /* SleepDisplay */;
115 | productType = "com.apple.product-type.tool";
116 | };
117 | /* End PBXNativeTarget section */
118 |
119 | /* Begin PBXProject section */
120 | 08FB7793FE84155DC02AAC07 /* Project object */ = {
121 | isa = PBXProject;
122 | buildConfigurationList = 1DEB927808733DD40010E9CD /* Build configuration list for PBXProject "SleepDisplay_10.5" */;
123 | compatibilityVersion = "Xcode 3.1";
124 | hasScannedForEncodings = 1;
125 | mainGroup = 08FB7794FE84155DC02AAC07 /* SleepDisplay */;
126 | projectDirPath = "";
127 | projectRoot = "";
128 | targets = (
129 | 8DD76F960486AA7600D96B5E /* SleepDisplay */,
130 | );
131 | };
132 | /* End PBXProject section */
133 |
134 | /* Begin PBXSourcesBuildPhase section */
135 | 8DD76F990486AA7600D96B5E /* Sources */ = {
136 | isa = PBXSourcesBuildPhase;
137 | buildActionMask = 2147483647;
138 | files = (
139 | 8DD76F9A0486AA7600D96B5E /* SleepDisplay.m in Sources */,
140 | );
141 | runOnlyForDeploymentPostprocessing = 0;
142 | };
143 | /* End PBXSourcesBuildPhase section */
144 |
145 | /* Begin XCBuildConfiguration section */
146 | 1DEB927508733DD40010E9CD /* Debug */ = {
147 | isa = XCBuildConfiguration;
148 | buildSettings = {
149 | ALWAYS_SEARCH_USER_PATHS = NO;
150 | COPY_PHASE_STRIP = NO;
151 | GCC_DYNAMIC_NO_PIC = NO;
152 | GCC_ENABLE_FIX_AND_CONTINUE = YES;
153 | GCC_MODEL_TUNING = G5;
154 | GCC_OPTIMIZATION_LEVEL = 0;
155 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
156 | GCC_PREFIX_HEADER = SleepDisplay_Prefix.pch;
157 | INSTALL_PATH = /usr/local/bin;
158 | PRODUCT_NAME = SleepDisplay;
159 | };
160 | name = Debug;
161 | };
162 | 1DEB927608733DD40010E9CD /* Release */ = {
163 | isa = XCBuildConfiguration;
164 | buildSettings = {
165 | ALWAYS_SEARCH_USER_PATHS = NO;
166 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
167 | GCC_MODEL_TUNING = G5;
168 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
169 | GCC_PREFIX_HEADER = SleepDisplay_Prefix.pch;
170 | INSTALL_PATH = /usr/local/bin;
171 | PRODUCT_NAME = SleepDisplay;
172 | };
173 | name = Release;
174 | };
175 | 1DEB927908733DD40010E9CD /* Debug */ = {
176 | isa = XCBuildConfiguration;
177 | buildSettings = {
178 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
179 | GCC_C_LANGUAGE_STANDARD = c99;
180 | GCC_OPTIMIZATION_LEVEL = 0;
181 | GCC_VERSION = "";
182 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
183 | GCC_WARN_UNUSED_VARIABLE = YES;
184 | ONLY_ACTIVE_ARCH = YES;
185 | PREBINDING = NO;
186 | SDKROOT = macosx10.5;
187 | };
188 | name = Debug;
189 | };
190 | 1DEB927A08733DD40010E9CD /* Release */ = {
191 | isa = XCBuildConfiguration;
192 | buildSettings = {
193 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
194 | GCC_C_LANGUAGE_STANDARD = c99;
195 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
196 | GCC_WARN_UNUSED_VARIABLE = YES;
197 | PREBINDING = NO;
198 | SDKROOT = macosx10.5;
199 | };
200 | name = Release;
201 | };
202 | /* End XCBuildConfiguration section */
203 |
204 | /* Begin XCConfigurationList section */
205 | 1DEB927408733DD40010E9CD /* Build configuration list for PBXNativeTarget "SleepDisplay" */ = {
206 | isa = XCConfigurationList;
207 | buildConfigurations = (
208 | 1DEB927508733DD40010E9CD /* Debug */,
209 | 1DEB927608733DD40010E9CD /* Release */,
210 | );
211 | defaultConfigurationIsVisible = 0;
212 | defaultConfigurationName = Release;
213 | };
214 | 1DEB927808733DD40010E9CD /* Build configuration list for PBXProject "SleepDisplay_10.5" */ = {
215 | isa = XCConfigurationList;
216 | buildConfigurations = (
217 | 1DEB927908733DD40010E9CD /* Debug */,
218 | 1DEB927A08733DD40010E9CD /* Release */,
219 | );
220 | defaultConfigurationIsVisible = 0;
221 | defaultConfigurationName = Release;
222 | };
223 | /* End XCConfigurationList section */
224 | };
225 | rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
226 | }
227 |
--------------------------------------------------------------------------------
/SleepDisplay_objc.xcodeproj/project.pbxproj:
--------------------------------------------------------------------------------
1 | // !$*UTF8*$!
2 | {
3 | archiveVersion = 1;
4 | classes = {
5 | };
6 | objectVersion = 45;
7 | objects = {
8 |
9 | /* Begin PBXBuildFile section */
10 | 3B1A2DD81430705F00663B38 /* IOKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3B1A2DD71430705F00663B38 /* IOKit.framework */; };
11 | 8DD76F9A0486AA7600D96B5E /* SleepDisplay.m in Sources */ = {isa = PBXBuildFile; fileRef = 08FB7796FE84155DC02AAC07 /* SleepDisplay.m */; settings = {ATTRIBUTES = (); }; };
12 | 8DD76F9C0486AA7600D96B5E /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 08FB779EFE84155DC02AAC07 /* Foundation.framework */; };
13 | 8DD76F9F0486AA7600D96B5E /* SleepDisplay.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = C6859EA3029092ED04C91782 /* SleepDisplay.1 */; };
14 | /* End PBXBuildFile section */
15 |
16 | /* Begin PBXCopyFilesBuildPhase section */
17 | 8DD76F9E0486AA7600D96B5E /* CopyFiles */ = {
18 | isa = PBXCopyFilesBuildPhase;
19 | buildActionMask = 8;
20 | dstPath = /usr/share/man/man1/;
21 | dstSubfolderSpec = 0;
22 | files = (
23 | 8DD76F9F0486AA7600D96B5E /* SleepDisplay.1 in CopyFiles */,
24 | );
25 | runOnlyForDeploymentPostprocessing = 1;
26 | };
27 | /* End PBXCopyFilesBuildPhase section */
28 |
29 | /* Begin PBXFileReference section */
30 | 08FB7796FE84155DC02AAC07 /* SleepDisplay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SleepDisplay.m; sourceTree = ""; };
31 | 08FB779EFE84155DC02AAC07 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = /System/Library/Frameworks/Foundation.framework; sourceTree = ""; };
32 | 32A70AAB03705E1F00C91783 /* SleepDisplay_objc_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SleepDisplay_objc_Prefix.pch; sourceTree = ""; };
33 | 3B1A2DD71430705F00663B38 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = /System/Library/Frameworks/IOKit.framework; sourceTree = ""; };
34 | 8DD76FA10486AA7600D96B5E /* SleepDisplay */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = SleepDisplay; sourceTree = BUILT_PRODUCTS_DIR; };
35 | C6859EA3029092ED04C91782 /* SleepDisplay.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = SleepDisplay.1; sourceTree = ""; };
36 | /* End PBXFileReference section */
37 |
38 | /* Begin PBXFrameworksBuildPhase section */
39 | 8DD76F9B0486AA7600D96B5E /* Frameworks */ = {
40 | isa = PBXFrameworksBuildPhase;
41 | buildActionMask = 2147483647;
42 | files = (
43 | 8DD76F9C0486AA7600D96B5E /* Foundation.framework in Frameworks */,
44 | 3B1A2DD81430705F00663B38 /* IOKit.framework in Frameworks */,
45 | );
46 | runOnlyForDeploymentPostprocessing = 0;
47 | };
48 | /* End PBXFrameworksBuildPhase section */
49 |
50 | /* Begin PBXGroup section */
51 | 08FB7794FE84155DC02AAC07 /* SleepDisplay */ = {
52 | isa = PBXGroup;
53 | children = (
54 | 08FB7795FE84155DC02AAC07 /* Source */,
55 | C6859EA2029092E104C91782 /* Documentation */,
56 | 08FB779DFE84155DC02AAC07 /* External Frameworks and Libraries */,
57 | 1AB674ADFE9D54B511CA2CBB /* Products */,
58 | );
59 | name = SleepDisplay;
60 | sourceTree = "";
61 | };
62 | 08FB7795FE84155DC02AAC07 /* Source */ = {
63 | isa = PBXGroup;
64 | children = (
65 | 32A70AAB03705E1F00C91783 /* SleepDisplay_objc_Prefix.pch */,
66 | 08FB7796FE84155DC02AAC07 /* SleepDisplay.m */,
67 | );
68 | name = Source;
69 | sourceTree = "";
70 | };
71 | 08FB779DFE84155DC02AAC07 /* External Frameworks and Libraries */ = {
72 | isa = PBXGroup;
73 | children = (
74 | 3B1A2DD71430705F00663B38 /* IOKit.framework */,
75 | 08FB779EFE84155DC02AAC07 /* Foundation.framework */,
76 | );
77 | name = "External Frameworks and Libraries";
78 | sourceTree = "";
79 | };
80 | 1AB674ADFE9D54B511CA2CBB /* Products */ = {
81 | isa = PBXGroup;
82 | children = (
83 | 8DD76FA10486AA7600D96B5E /* SleepDisplay */,
84 | );
85 | name = Products;
86 | sourceTree = "";
87 | };
88 | C6859EA2029092E104C91782 /* Documentation */ = {
89 | isa = PBXGroup;
90 | children = (
91 | C6859EA3029092ED04C91782 /* SleepDisplay.1 */,
92 | );
93 | name = Documentation;
94 | sourceTree = "";
95 | };
96 | /* End PBXGroup section */
97 |
98 | /* Begin PBXNativeTarget section */
99 | 8DD76F960486AA7600D96B5E /* SleepDisplay */ = {
100 | isa = PBXNativeTarget;
101 | buildConfigurationList = 1DEB927408733DD40010E9CD /* Build configuration list for PBXNativeTarget "SleepDisplay" */;
102 | buildPhases = (
103 | 8DD76F990486AA7600D96B5E /* Sources */,
104 | 8DD76F9B0486AA7600D96B5E /* Frameworks */,
105 | 8DD76F9E0486AA7600D96B5E /* CopyFiles */,
106 | );
107 | buildRules = (
108 | );
109 | dependencies = (
110 | );
111 | name = SleepDisplay;
112 | productInstallPath = "$(HOME)/bin";
113 | productName = SleepDisplay;
114 | productReference = 8DD76FA10486AA7600D96B5E /* SleepDisplay */;
115 | productType = "com.apple.product-type.tool";
116 | };
117 | /* End PBXNativeTarget section */
118 |
119 | /* Begin PBXProject section */
120 | 08FB7793FE84155DC02AAC07 /* Project object */ = {
121 | isa = PBXProject;
122 | attributes = {
123 | };
124 | buildConfigurationList = 1DEB927808733DD40010E9CD /* Build configuration list for PBXProject "SleepDisplay_objc" */;
125 | compatibilityVersion = "Xcode 3.1";
126 | developmentRegion = English;
127 | hasScannedForEncodings = 1;
128 | knownRegions = (
129 | en,
130 | );
131 | mainGroup = 08FB7794FE84155DC02AAC07 /* SleepDisplay */;
132 | projectDirPath = "";
133 | projectRoot = "";
134 | targets = (
135 | 8DD76F960486AA7600D96B5E /* SleepDisplay */,
136 | );
137 | };
138 | /* End PBXProject section */
139 |
140 | /* Begin PBXSourcesBuildPhase section */
141 | 8DD76F990486AA7600D96B5E /* Sources */ = {
142 | isa = PBXSourcesBuildPhase;
143 | buildActionMask = 2147483647;
144 | files = (
145 | 8DD76F9A0486AA7600D96B5E /* SleepDisplay.m in Sources */,
146 | );
147 | runOnlyForDeploymentPostprocessing = 0;
148 | };
149 | /* End PBXSourcesBuildPhase section */
150 |
151 | /* Begin XCBuildConfiguration section */
152 | 1DEB927508733DD40010E9CD /* Debug */ = {
153 | isa = XCBuildConfiguration;
154 | buildSettings = {
155 | ALWAYS_SEARCH_USER_PATHS = NO;
156 | ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
157 | COPY_PHASE_STRIP = NO;
158 | GCC_DYNAMIC_NO_PIC = NO;
159 | GCC_ENABLE_FIX_AND_CONTINUE = YES;
160 | GCC_MODEL_TUNING = G5;
161 | GCC_OPTIMIZATION_LEVEL = 0;
162 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
163 | GCC_PREFIX_HEADER = SleepDisplay_objc_Prefix.pch;
164 | INSTALL_PATH = /usr/local/bin;
165 | PRODUCT_NAME = SleepDisplay;
166 | SDKROOT = "";
167 | };
168 | name = Debug;
169 | };
170 | 1DEB927608733DD40010E9CD /* Release */ = {
171 | isa = XCBuildConfiguration;
172 | buildSettings = {
173 | ALWAYS_SEARCH_USER_PATHS = NO;
174 | ARCHS = "$(ARCHS_STANDARD_32_64_BIT)";
175 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
176 | GCC_MODEL_TUNING = G5;
177 | GCC_PRECOMPILE_PREFIX_HEADER = YES;
178 | GCC_PREFIX_HEADER = SleepDisplay_objc_Prefix.pch;
179 | INSTALL_PATH = /usr/local/bin;
180 | PRODUCT_NAME = SleepDisplay;
181 | SDKROOT = "";
182 | };
183 | name = Release;
184 | };
185 | 1DEB927908733DD40010E9CD /* Debug */ = {
186 | isa = XCBuildConfiguration;
187 | buildSettings = {
188 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
189 | GCC_C_LANGUAGE_STANDARD = c99;
190 | GCC_OPTIMIZATION_LEVEL = 0;
191 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
192 | GCC_WARN_UNUSED_VARIABLE = YES;
193 | ONLY_ACTIVE_ARCH = YES;
194 | PREBINDING = NO;
195 | SDKROOT = macosx10.5;
196 | };
197 | name = Debug;
198 | };
199 | 1DEB927A08733DD40010E9CD /* Release */ = {
200 | isa = XCBuildConfiguration;
201 | buildSettings = {
202 | ARCHS = "$(ARCHS_STANDARD_32_BIT)";
203 | GCC_C_LANGUAGE_STANDARD = c99;
204 | GCC_WARN_ABOUT_RETURN_TYPE = YES;
205 | GCC_WARN_UNUSED_VARIABLE = YES;
206 | PREBINDING = NO;
207 | SDKROOT = macosx10.5;
208 | };
209 | name = Release;
210 | };
211 | /* End XCBuildConfiguration section */
212 |
213 | /* Begin XCConfigurationList section */
214 | 1DEB927408733DD40010E9CD /* Build configuration list for PBXNativeTarget "SleepDisplay" */ = {
215 | isa = XCConfigurationList;
216 | buildConfigurations = (
217 | 1DEB927508733DD40010E9CD /* Debug */,
218 | 1DEB927608733DD40010E9CD /* Release */,
219 | );
220 | defaultConfigurationIsVisible = 0;
221 | defaultConfigurationName = Release;
222 | };
223 | 1DEB927808733DD40010E9CD /* Build configuration list for PBXProject "SleepDisplay_objc" */ = {
224 | isa = XCConfigurationList;
225 | buildConfigurations = (
226 | 1DEB927908733DD40010E9CD /* Debug */,
227 | 1DEB927A08733DD40010E9CD /* Release */,
228 | );
229 | defaultConfigurationIsVisible = 0;
230 | defaultConfigurationName = Release;
231 | };
232 | /* End XCConfigurationList section */
233 | };
234 | rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
235 | }
236 |
--------------------------------------------------------------------------------
/SleepDisplay_objc_Prefix.pch:
--------------------------------------------------------------------------------
1 | //
2 | // Prefix header for all source files of the 'SleepDisplay' target in the 'SleepDisplay' project.
3 | //
4 |
5 | #ifdef __OBJC__
6 | #import
7 | #endif
8 |
--------------------------------------------------------------------------------
/dist/0.1/ub/SleepDisplay:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kimhunter/SleepDisplay/19e3b9eef332b0fba22d5323829af1e9c2e91991/dist/0.1/ub/SleepDisplay
--------------------------------------------------------------------------------
/dist/0.1/x64/SleepDisplay:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kimhunter/SleepDisplay/19e3b9eef332b0fba22d5323829af1e9c2e91991/dist/0.1/x64/SleepDisplay
--------------------------------------------------------------------------------
/dist/0.2/ub/SleepDisplay:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kimhunter/SleepDisplay/19e3b9eef332b0fba22d5323829af1e9c2e91991/dist/0.2/ub/SleepDisplay
--------------------------------------------------------------------------------
/dist/0.2/x64/SleepDisplay:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kimhunter/SleepDisplay/19e3b9eef332b0fba22d5323829af1e9c2e91991/dist/0.2/x64/SleepDisplay
--------------------------------------------------------------------------------
/dist/1.0/x64/SleepDisplay:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kimhunter/SleepDisplay/19e3b9eef332b0fba22d5323829af1e9c2e91991/dist/1.0/x64/SleepDisplay
--------------------------------------------------------------------------------
/dist/1.1/x64/SleepDisplay:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kimhunter/SleepDisplay/19e3b9eef332b0fba22d5323829af1e9c2e91991/dist/1.1/x64/SleepDisplay
--------------------------------------------------------------------------------
/dist/1.1/x64swift/SleepDisplay:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kimhunter/SleepDisplay/19e3b9eef332b0fba22d5323829af1e9c2e91991/dist/1.1/x64swift/SleepDisplay
--------------------------------------------------------------------------------
/version:
--------------------------------------------------------------------------------
1 | 1.1
2 |
--------------------------------------------------------------------------------