Task: Set a specific file path
Put the name in the task file Sleep time is now 60s
This commit is contained in:
parent
cddac62814
commit
d340606744
|
@ -5,7 +5,7 @@ TIME=0
|
||||||
DELAY=25
|
DELAY=25
|
||||||
# Task information (name, path, …)
|
# Task information (name, path, …)
|
||||||
TASK_NAME="${1}"
|
TASK_NAME="${1}"
|
||||||
TASK_PATH="${HOME}/${TASK_NAME}.todo"
|
TASK_PATH="${HOME}/task.todo"
|
||||||
|
|
||||||
# Create the task file
|
# Create the task file
|
||||||
if [ ! -f "${TASK_PATH}" ]; then
|
if [ ! -f "${TASK_PATH}" ]; then
|
||||||
|
@ -15,11 +15,9 @@ fi
|
||||||
# Tiny timer
|
# Tiny timer
|
||||||
while [ "${TIME}" != "${DELAY}" ]
|
while [ "${TIME}" != "${DELAY}" ]
|
||||||
do
|
do
|
||||||
#sleep 60
|
sleep 60
|
||||||
sleep 1
|
|
||||||
TIME=$((TIME+1))
|
TIME=$((TIME+1))
|
||||||
# Add some colors
|
printf '%b' "${TASK_NAME}\n${TIME}" > "${TASK_PATH}"
|
||||||
printf '%b' "${TIME}" > "${TASK_PATH}"
|
|
||||||
done
|
done
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in New Issue