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