Trigger the screenlock daemon on idle screen blanking

This commit is contained in:
Luxferre committed 2026-11-10 12:51:15 +02:00
1 parent 77d95c715c
commit 5d859d7b11
11 files changed
+382 -12

No files matched your search

@@ -2,7 +2,10 @@
# Wake the screen for an external event (incoming call / SMS / notification)
# and reset dwm's idle-blank timer so it cannot blank again immediately.
export DISPLAY="${DISPLAY:-:0}"
/usr/bin/sxmo_wm.sh display on >/dev/null 2>&1 || true
# Cancel a pending idle-blank lock before the panel is powered on, so a wake
# does not race with the screenoff transition started by the blank handler.
"${BANANARCHY_IDLE_LOCK_HELPER:-/usr/bin/bananarchy-idle-lock.sh}" cancel >/dev/null 2>&1 || true
"${BANANARCHY_WM_CMD:-/usr/bin/sxmo_wm.sh}" display on >/dev/null 2>&1 || true
date +%s > /tmp/bananarchy_last_wake 2>/dev/null || true
p="$(pidof -s dwm 2>/dev/null || true)"
[ -n "$p" ] && kill -USR1 "$p" 2>/dev/null || true