ref: 8e86468505328bbaf268e098b3611b531112b999
parent: 718af5454fa0de80c2707dba2a50074b53114239
author: glenda <[email protected]>
date: Thu Dec 31 18:48:40 EST 2020
added a pomodoro script
--- /dev/null
+++ b/util/pomodoro
@@ -1,0 +1,20 @@
+#!/bin/rc
+# usage pomodoro [worktime] [rest time]
+# defaults to 25 and 5
+wtimesec=25
+rtimesec=5
+if(~ $# 2){
+ wtimesec=$1
+ rtimesec=$2
+}
+
+wtime = {echo $wtimesec * 60 | bc}
+rtime = {echo $rtimesec * 60 | bc}
+
+echo running a pomodoro of $wtime and $rtime
+while( ){
+ echo GET TO WORK
+ sleep $wtime
+ echo You can now rest
+ sleep $rtime
+}