Logo
Explore Help
Sign In
jab2870
/
sxmo-utils
1
0
Fork
You've already forked sxmo-utils
0
Code Issues Pull Requests Projects Releases Wiki Activity
679 Commits
2 Branches
0 Tags
2.1 MiB
Tree: 8cb2cd43ec
sxmo-utils/configs/default_hooks/missed_call

10 lines
249 B
Raw Normal View History Unescape Escape

Implement default hooks for ringing and incoming texts, playing audio
4 years ago
#!/usr/bin/env sh
# This script is executed (asynchronously) when you missed a call
# You can use it to play a ring tone
Simplify and prevent killing existing mpv instances Instead of the trigger file and killing mpv, we loop the ring indefinitely until killed. Maybe we should still got a guardrail but I still never needed it (modemmonitor would trigger missed_call late or later ?) Signed-off-by: Stacy Harper <contact@stacyharper.net> Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
4 years ago
# kill existing ring playback
MPVID="$(cat "$XDG_RUNTIME_DIR/sxmo.ring.pid")"
kill $MPVID
rm "$XDG_RUNTIME_DIR/sxmo.ring.pid"
Powered by Gitea Version: 1.17.0+rc1 Page: 42ms Template : 2ms
English
Bahasa Indonesia Deutsch English Español Français Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Српски Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API Website