9 lines
402 B
Bash
9 lines
402 B
Bash
#!/bin/sh
|
|||
|
|
# 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
|
||
|
|
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
|
||
|
|
exit 0
|