Implement a maximum number of rings in the default hook
Signed-off-by: Stacy Harper <contact@stacyharper.net>
This commit is contained in:
parent
d1f4561e66
commit
19453bf4b1
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue