Implement a maximum number of rings in the default hook

Signed-off-by: Stacy Harper <contact@stacyharper.net>
master
Maarten van Gompel 3 years ago committed by Stacy Harper
parent d1f4561e66
commit 19453bf4b1
No known key found for this signature in database
GPG Key ID: 5BAC92328B7C5D65
  1. 4
      configs/default_hooks/ring

@ -3,8 +3,8 @@
# This script is executed (asynchronously) when you get an incoming call # This script is executed (asynchronously) when you get an incoming call
# You can use it to play a ring tone # You can use it to play a ring tone
# Start the mpv ring until another hook kill it # Start the mpv ring until another hook kill it or the max (10) is reached
mpv --quiet --no-video --loop /usr/share/sxmo/ring.ogg & mpv --quiet --no-video --loop=10 /usr/share/sxmo/ring.ogg &
MPVID=$! MPVID=$!
echo "$MPVID" > "$XDG_RUNTIME_DIR/sxmo.ring.pid" echo "$MPVID" > "$XDG_RUNTIME_DIR/sxmo.ring.pid"

Loading…
Cancel
Save