3 function blank_and_lock (display
)
5 display
.idle_timeout
= 10
6 --lockscreen will kill current display...
7 screen
.command("lockscreen")
11 display
.idle_timeout
= 2
12 screen
.command("blanker")
17 function reg_blanker(display
)
18 screen
.hook(display
, "onidle", blank_and_lock
)
19 display
.idle_timeout
= 10
22 screen
.hook("onattach", reg_blanker
)
23 reg_blanker(screen
.display())