Re: [dev] [ANNOUNCE] slock-1.3

From: Markus Teich <markus.teich_AT_stusta.mhn.de>
Date: Mon, 15 Feb 2016 10:50:36 +0100

Martin Kühne wrote:
> stdout could print an api secret "[locked]" and the calling script could act upon that.
>
> slock | {
>   read
>   if [[ "$REPLY" = "[locked]" ]]; then
>     suspend
>   else
>     yell at user or power off for added security
>   fi
> }

Heyho Martin,

thats basically the same solution. It just uses another channel to signal the
"locked" event from slock. I don't think any one is more powerful than the other
and the fork exec solution seems to be cleaner.

--Markus
Received on Mon Feb 15 2016 - 10:50:36 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 15 2016 - 11:00:13 CET