diff --git a/README.md b/README.md index 11b6acc..ec2e9f3 100644 --- a/README.md +++ b/README.md @@ -187,6 +187,28 @@ encode-x265 encode-x265 ``` + + +### Clock timer with notifications +Script: [q3.sh](q3.sh) +Syntax: q3.sh {Number of breaks required.} + +```sh +A popular time management technique uses a timer to break down work into intervals (usually +25 mins) followed by a small break. +The task is to create a BASH script to aid this process. Take a command line argument for the +number of iterations (work + break). Print notifications about the breaks (5 mins) or time to work +(25 mins) in the terminal. Every 4 iterations, include a long break (15 mins). Print notification +when all the cycles are complete. +Example usage: +bash timer.sh 2 +Output structure: +#1 work +#1 break time +#2 work +#2 break time +Finished +``` ### 🎥 Convert video to gif Script: [gif-convert](gif-convert) diff --git a/q3.sh b/q3.sh new file mode 100755 index 0000000..e89083b --- /dev/null +++ b/q3.sh @@ -0,0 +1,24 @@ +#!/bin/bash +read -p "Enter the number of iterations " n +flag=0 + +for (( i=0; i