Once I had written a bash script to show a bubble notification on your linux machine after every X minutes, to remind you that you needed to be working. Just like in the hollow man movie.
I had written this script because I used to get distracted a lot while working.