Skip to content

Commit

Permalink
Add a optional delay to playerpauseforce
Browse files Browse the repository at this point in the history
Needed for Hardwarehack MiczFlor#62
  • Loading branch information
BerniPi authored May 3, 2020
1 parent 3691c42 commit 157c218
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/playout_controls.sh
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,13 @@ case $COMMAND in
mpc toggle
;;
playerpauseforce)
# pause current track
# pause current track with additional delay
if [ -z ${VALUE} ];
then
:
else
/bin/sleep $VALUE
fi
mpc pause
;;
playerplay)
Expand Down

0 comments on commit 157c218

Please sign in to comment.