Wednesday, April 8, 2009

Productivity Script

I've seen the productivity script on Lifehacker for both Mac and Windows, so I decided to make a Linux version of it, here it is:

#!/bin/sh
zenity --question --text "Consider if this is really how I need to be spending my time. Continue?" --ok-label=Yes --cancel-label=No

while [ "$?" == "0" ] # while test "$var1" != "end"
do
sleep 12
zenity --question --text "Consider if this is really how I need to be spending my time. Continue?" --ok-label=Yes --cancel-label=No
done


Make sure you make it executable.

I hope you enjoy it.

No comments: