From 9378530a1bed89dedc50dadf51cad75df7822f4f Mon Sep 17 00:00:00 2001 From: Dmytro Date: Thu, 2 Jul 2020 18:21:33 +0200 Subject: [PATCH] Ringing sound configurable Signed-off-by: Miles Alan --- scripts/modem/sxmo_modemmonitor.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/modem/sxmo_modemmonitor.sh b/scripts/modem/sxmo_modemmonitor.sh index d515d36..f10cda4 100755 --- a/scripts/modem/sxmo_modemmonitor.sh +++ b/scripts/modem/sxmo_modemmonitor.sh @@ -20,6 +20,12 @@ modem_n() { echo "$MODEMS" | grep -oE 'Modem\/([0-9]+)' | cut -d'/' -f2 } +ring() { + action="sxmo_vibratepine 2000 & sxmo_setpineled green 1" + [[ -x "$XDG_CONFIG_HOME/sxmo/ringing" ]] && action="$XDG_CONFIG_HOME/sxmo/ringing" + ${action} +} + checkforincomingcalls() { VOICECALLID="$( mmcli -m "$(modem_n)" --voice-list-calls -a | @@ -32,7 +38,7 @@ checkforincomingcalls() { return fi - sxmo_vibratepine 2000 & sxmo_setpineled green 1 + ring # Delete all previous calls which have been terminated calls for CALLID in $(