Fix background call hangup and end calls on screen lock or lid close

This commit is contained in:
Luxferre committed 2026-11-04 17:59:19 +02:00
1 parent c7cdde6734
commit 0c352f0a10
55 files changed
+391 -120

No files matched your search

@@ -17,6 +17,16 @@ cur_state=""
printf '1\n' > /tmp/bananarchy_screen_locked
pkill -STOP -x conky 2>/dev/null || true
if ! sxmo_jobs.sh running proximity_lock -q; then
if [ -f /tmp/sxmo_call_ringing ] || [ -f /tmp/sxmo_active_call ] || [ -n "$(ls -A "$XDG_RUNTIME_DIR/sxmo_calls" 2>/dev/null)" ]; then
rm -f /tmp/sxmo_call_ringing /tmp/sxmo_active_call 2>/dev/null || true
if [ -p /tmp/dwm_plugin_callscreen.fifo ]; then
printf 'HANGUP_CLOSE\n' > /tmp/dwm_plugin_callscreen.fifo 2>/dev/null || true
fi
sxmo_modemcall.sh hangup all >/dev/null 2>&1 &
fi
fi
if [ -z "$SXMO_DISABLE_LEDS" ]; then
sxmo_led.sh blink blue &
fi