Unmute|mute and pause current player

This commit is contained in:
Jeremy Gardais 2023-05-10 11:20:08 +02:00
parent 30e19d6970
commit f46b64defe
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 5 additions and 3 deletions

View File

@ -59,8 +59,10 @@ command task stop "${TASK_ID}"
printf '%b' "${TASK_NAME} stopped.\n" printf '%b' "${TASK_NAME} stopped.\n"
## Break time ## Break time
# Toggle the sound # Mute the sound
pulsemixer --toggle-mute pulsemixer --mute
# Pause any running multimedia player
~/bin/multimedia.controller.sh --command pause
BREAK_MSG="Pause" BREAK_MSG="Pause"
BREAK_TIME="${SHORT_BREAK_TIME}" BREAK_TIME="${SHORT_BREAK_TIME}"
@ -74,7 +76,7 @@ while [ "${BREAK_TIME}" -gt 0 ]; do
done done
# Toggle the sound # Toggle the sound
pulsemixer --toggle-mute pulsemixer --unmute
# Delete the task file # Delete the task file
rm -f "${TASK_PATH}" rm -f "${TASK_PATH}"