Skip to content

Instantly share code, notes, and snippets.

@dodeja
Created October 21, 2015 04:42
Show Gist options
  • Select an option

  • Save dodeja/23a71385bb6c0f43c521 to your computer and use it in GitHub Desktop.

Select an option

Save dodeja/23a71385bb6c0f43c521 to your computer and use it in GitHub Desktop.
A simple script that pops a notification at 10PM and reminds me to go-to-sleep.
<?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.dodo.gotosleep</string>
<key>KeepAlive</key>
<false/>
<key>RunAtLoad</key>
<false/>
<key>UserName</key>
<string>akshay</string>
<key>Program</key>
<string>/usr/local/bin/terminal-notifier</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/bin/terminal-notifier</string>
<string>-sound</string>
<string>default</string>
<string>-message</string>
<string>"It's sleepy time"</string>
</array>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Hour</key>
<integer>22</integer>
<key>Minute</key>
<integer>00</integer>
</dict>
<dict>
<key>Hour</key>
<integer>22</integer>
<key>Minute</key>
<integer>05</integer>
</dict>
<dict>
<key>Hour</key>
<integer>22</integer>
<key>Minute</key>
<integer>15</integer>
</dict>
<dict>
<key>Hour</key>
<integer>22</integer>
<key>Minute</key>
<integer>30</integer>
</dict>
</array>
</dict>
</plist>%
@dodeja

dodeja commented Oct 21, 2015

Copy link
Copy Markdown
Author

Uses https://github.com/julienXX/terminal-notifier

$ brew install terminal-notifier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment