From 4dfee1cc8c349d82d3ca0fe0792d678a247ee5f4 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Tue, 30 Mar 2021 22:55:55 +0200 Subject: [PATCH] default hook updatE: vibrate the phone on ringing (once) --- configs/default_hooks/ring | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configs/default_hooks/ring b/configs/default_hooks/ring index fdb602d..95e1104 100644 --- a/configs/default_hooks/ring +++ b/configs/default_hooks/ring @@ -3,6 +3,9 @@ # This script is executed (asynchronously) when you get an incoming call # You can use it to play a ring tone +#vibrate the phone once +sxmo_vibratepine 2500 & + #we create a temporary trigger file /tmp/ring.trigger #and ring for as long as it exists #the missed_call or pickedup hooks delete @@ -11,6 +14,7 @@ touch /tmp/ring.trigger i=0 while [ -f /tmp/ring.trigger ]; do #play the ring over and over again as long as the trigger persists + #(you may want to replace this with a vibration) mpv --quiet --no-video /usr/share/sxmo/ring.ogg i=$((i+1)) if [ $i -gt 10 ]; then