--- /dev/null
+install:
+ cp com.jacobcasper.pm* /Library/LaunchDaemons
+ ln -s $(shell pwd)/pm.sh /usr/local/bin/pm.sh
+ launchctl load -w /Library/LaunchDaemons/com.jacobcasper.pm.o*
+uninstall:
+ rm -f /Library/LaunchDaemons/com.jacobcasper.pm*
+ rm -f /usr/local/bin/pm.sh
+ launchctl unload -w /Library/LaunchDaemons/com.jacobcasper.pm.o*
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Label</key>
+ <string>com.jacobcasper.pm.off</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/usr/local/bin/pm.sh</string>
+ <string>0</string>
+ </array>
+ <key>StartCalendarInterval</key>
+ <dict>
+ <key>Hour</key>
+ <integer>18</integer>
+ <key>Minute</key>
+ <integer>0</integer>
+ </dict>
+</dict>
+</plist>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>Label</key>
+ <string>com.jacobcasper.pm.on</string>
+ <key>ProgramArguments</key>
+ <array>
+ <string>/usr/local/bin/pm.sh</string>
+ <string>1</string>
+ </array>
+ <key>StartCalendarInterval</key>
+ <dict>
+ <key>Hour</key>
+ <integer>8</integer>
+ <key>Minute</key>
+ <integer>45</integer>
+ </dict>
+</dict>
+</plist>
--- /dev/null
+#!/bin/sh
+echo $1
+pmset -a disablesleep $1