Pomodoro: toggle the sound once the task is complete.

This commit is contained in:
Jeremy Gardais 2015-10-27 13:06:31 +01:00
parent 0fd19a519a
commit 70e13a5b0a
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ done
# Write logs
printf '%b' "$(date +"%A (%F) ${startedTime} → %H:%M") ${TASK_NAME}\n" >> "${LOG_TASK_PATH}"
# Toggle the sound to (un)mute to
amixer -q set Master toggle
# Start break
if [ `expr ${num} % 4` -eq 0 ]; then
BREAK_TIME=${LONG_BREAK_TIME}