Add callscreen DWM plugin for incoming and active voice calls
This commit is contained in:
@@ -113,6 +113,9 @@ checkforfinishedcalls() {
|
||||
fi
|
||||
sxmo_jobs.sh stop incall_menu
|
||||
sxmo_jobs.sh stop proximity_lock
|
||||
if command -v xcallscreen >/dev/null 2>&1; then
|
||||
xcallscreen ended >/dev/null 2>&1 || true
|
||||
fi
|
||||
sxmo_hook_statusbar.sh state &
|
||||
|
||||
if ! sxmo_modemaudio.sh reset_audio; then
|
||||
@@ -157,6 +160,15 @@ checkforincomingcalls() {
|
||||
mkdir -p "$SXMO_LOGDIR"
|
||||
printf %b "$TIME\tcall_ring\t$INCOMINGNUMBER\n" >> "$SXMO_LOGDIR/modemlog.tsv"
|
||||
|
||||
if sxmo_state.sh get | grep -qE "screenoff|lock"; then
|
||||
sxmo_wm.sh display on >/dev/null 2>&1 || true
|
||||
sxmo_state.sh set unlock &
|
||||
fi
|
||||
|
||||
if command -v xcallscreen >/dev/null 2>&1; then
|
||||
xcallscreen incoming "$VOICECALLID" "$INCOMINGNUMBER" >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
sxmo_jobs.sh start proximity_lock sxmo_proximitylock.sh
|
||||
sxmo_hook_statusbar.sh state &
|
||||
|
||||
@@ -167,7 +179,7 @@ checkforincomingcalls() {
|
||||
# Refresh the incall menu
|
||||
sxmo_jobs.sh start incall_menu sxmo_modemcall.sh incall_menu
|
||||
else
|
||||
# Or fire the incomming call menu
|
||||
# Or fire the incoming call menu
|
||||
sxmo_jobs.sh start incall_menu sxmo_modemcall.sh incoming_call_menu "$VOICECALLID"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user