pomodoro: Also toggle the sound after the break

This commit is contained in:
gardouille 2015-11-25 16:27:01 +01:00
parent 2fbb5a8d21
commit 05b08f4247
1 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,7 @@ done
# Write logs
printf '%b' "$(date +"%A (%F) ${startedTime} → %H:%M") ${TASK_NAME}\n" >> "${LOG_TASK_PATH}"
# Toggle the sound to (un)mute to
# Toggle the sound
amixer -q set Master toggle
# Start break
@ -72,6 +72,9 @@ while [ "${BREAK_TIME}" -gt 0 ]; do
printf '%b' "${BREAK_MSG}\n${BREAK_TIME}" > "${TASK_PATH}"
done
# Toggle the sound
amixer -q set Master toggle
# Delete the task file
rm -f "${TASK_PATH}"