Re:Ask HN: Staying focused on your project
by helsinki on Tuesday August 25, 2015 @09:07AM
(#10116139)
How did you enable a popup to appear every thirty minutes on OSX?
[ Parent
| on HN ]
Re:Ask HN: Staying focused on your project
by bentrevor on Tuesday August 25, 2015 @09:49AM
(#10116417)
You can use `osascript` to show a popup. Depending on which shell you're using, it would look something like this:
for i in {1..4}; do
sleep $(expr 60 \* 30)
osascript -e 'tell app "System Events" to display dialog "Are you wasting time?"'
done