From 19453bf4b18374f1c65d3a0e992d5496cb3db58c Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Fri, 23 Jul 2021 00:35:23 +0200 Subject: [PATCH] Implement a maximum number of rings in the default hook Signed-off-by: Stacy Harper --- configs/default_hooks/ring | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/default_hooks/ring b/configs/default_hooks/ring index d67b264..d0129c4 100644 --- a/configs/default_hooks/ring +++ b/configs/default_hooks/ring @@ -3,8 +3,8 @@ # This script is executed (asynchronously) when you get an incoming call # You can use it to play a ring tone -# Start the mpv ring until another hook kill it -mpv --quiet --no-video --loop /usr/share/sxmo/ring.ogg & +# Start the mpv ring until another hook kill it or the max (10) is reached +mpv --quiet --no-video --loop=10 /usr/share/sxmo/ring.ogg & MPVID=$! echo "$MPVID" > "$XDG_RUNTIME_DIR/sxmo.ring.pid"