Unmute|mute and pause current player
This commit is contained in:
parent
30e19d6970
commit
f46b64defe
|
@ -59,8 +59,10 @@ command task stop "${TASK_ID}"
|
|||
printf '%b' "${TASK_NAME} stopped.\n"
|
||||
|
||||
## Break time
|
||||
# Toggle the sound
|
||||
pulsemixer --toggle-mute
|
||||
# Mute the sound
|
||||
pulsemixer --mute
|
||||
# Pause any running multimedia player
|
||||
~/bin/multimedia.controller.sh --command pause
|
||||
|
||||
BREAK_MSG="Pause"
|
||||
BREAK_TIME="${SHORT_BREAK_TIME}"
|
||||
|
@ -74,7 +76,7 @@ while [ "${BREAK_TIME}" -gt 0 ]; do
|
|||
done
|
||||
|
||||
# Toggle the sound
|
||||
pulsemixer --toggle-mute
|
||||
pulsemixer --unmute
|
||||
|
||||
# Delete the task file
|
||||
rm -f "${TASK_PATH}"
|
||||
|
|
Loading…
Reference in New Issue