Crontab for Developer to Rest

As a developer, you need to take care of your health.
Something like Backache, Shoulder pain will catch you if you don’t take care of youself properly.

When I use MacOs, I have TimeOut App to notify me rest every 10 minutes and every 1 hour.

But,

Linux don’t have some app like this.

So we can use crontab and ubuntu notification to nofity us.

Refer to: https://stackoverflow.com/a/53598510/5690644

setup:

1
2
3
4
5
# Rest every 15 mins at 15, 30, 45
10,20,30,40,50 * * * * XDG_RUNTIME_DIR=/run/user/$(id -u) notify-send -i face-wink "Rest every 15 minutes for 15s !!!"

# Rest every hour
0 * * * * XDG_RUNTIME_DIR=/run/user/$(id -u) notify-send -i face-wink "Rest every hour for 10 mins !!!"