Skip to content

Instantly share code, notes, and snippets.

@dtinth
Created September 29, 2014 05:16
Show Gist options
  • Save dtinth/6a816544d8ce81d5ff6a to your computer and use it in GitHub Desktop.
Save dtinth/6a816544d8ce81d5ff6a to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
sleep 1 until `osascript -e 'text returned of (display dialog "Say you need to take a break" default answer "")'` =~ /I need to take a break/
`osascript -e 'tell application "System Events" to start current screen saver'`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment