You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 lines
421 B

#!/usr/bin/env sh
# 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 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"
# Vibrate while mpv is running
while kill -0 $MPVID; do
sxmo_vibratepine 1500
sleep 0.5
done