From 70e13a5b0aeafdf8a113bac17ad97485e2a4588c Mon Sep 17 00:00:00 2001 From: Gardouille Date: Tue, 27 Oct 2015 13:06:31 +0100 Subject: [PATCH] Pomodoro: toggle the sound once the task is complete. --- pomodoro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pomodoro b/pomodoro index f7b3446..e56dd21 100755 --- a/pomodoro +++ b/pomodoro @@ -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}