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"
|
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}"
|
||||||
|
|
Loading…
Reference in New Issue