From d3406067443ead1839a250aa6f7580a991f3f47d Mon Sep 17 00:00:00 2001 From: Gardouille Date: Thu, 15 Oct 2015 10:07:30 +0200 Subject: [PATCH] Task: Set a specific file path Put the name in the task file Sleep time is now 60s --- pomodoro.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pomodoro.sh b/pomodoro.sh index ba7e7e2..53e044a 100755 --- a/pomodoro.sh +++ b/pomodoro.sh @@ -5,7 +5,7 @@ TIME=0 DELAY=25 # Task information (name, path, …) TASK_NAME="${1}" -TASK_PATH="${HOME}/${TASK_NAME}.todo" +TASK_PATH="${HOME}/task.todo" # Create the task file if [ ! -f "${TASK_PATH}" ]; then @@ -15,11 +15,9 @@ fi # Tiny timer while [ "${TIME}" != "${DELAY}" ] do - #sleep 60 - sleep 1 + sleep 60 TIME=$((TIME+1)) - # Add some colors - printf '%b' "${TIME}" > "${TASK_PATH}" + printf '%b' "${TASK_NAME}\n${TIME}" > "${TASK_PATH}" done exit 0