Pomodoro: toggle the sound once the task is complete.
This commit is contained in:
parent
0fd19a519a
commit
70e13a5b0a
3
pomodoro
3
pomodoro
|
@ -52,6 +52,9 @@ done
|
||||||
# Write logs
|
# Write logs
|
||||||
printf '%b' "$(date +"%A (%F) ${startedTime} → %H:%M") ${TASK_NAME}\n" >> "${LOG_TASK_PATH}"
|
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
|
# Start break
|
||||||
if [ `expr ${num} % 4` -eq 0 ]; then
|
if [ `expr ${num} % 4` -eq 0 ]; then
|
||||||
BREAK_TIME=${LONG_BREAK_TIME}
|
BREAK_TIME=${LONG_BREAK_TIME}
|
||||||
|
|
Loading…
Reference in New Issue