launched.sleep_more_important_than_task.plist
Edit · Copy to clipboard · View raw · Download
<?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>launched.sleep_more_important_than_task</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>-c</string>
<string>say "You might think that you'll never do the task if you don't stay up to do it. If the task really is that important, you _will_ do it later; if the task isn't, then sleep is more important"</string>
</array>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>22</integer>
<key>Minute</key>
<integer>59</integer>
</dict>
</array>
</dict>
</plist>
To install:
curl https://launched.zerowidth.com/plists/54713e90-72e7-0139-26ac-00b9930cc07e/install | sh
Copy to clipboard ·
View install script
To install manually:
mkdir -p ~/Library/LaunchAgents
curl -o ~/Library/LaunchAgents/launched.sleep_more_important_than_task.plist https://launched.zerowidth.com/plists/54713e90-72e7-0139-26ac-00b9930cc07e.xml
launchctl load -w ~/Library/LaunchAgents/launched.sleep_more_important_than_task.plist
Or, to install as root:
curl -o ~/Downloads/launched.sleep_more_important_than_task.plist https://launched.zerowidth.com/plists/54713e90-72e7-0139-26ac-00b9930cc07e.xml
sudo cp ~/Downloads/launched.sleep_more_important_than_task.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/launched.sleep_more_important_than_task.plist