Re: [dev] [slock] [PATCH] Blank the screen with colour 0

From: David Phillips <dbphillipsnz_AT_gmail.com>
Date: Thu, 12 Feb 2015 11:56:35 +1300

Hi,

Markus Teich wrote:
>You can easily tell if someone tried to unlock your computer

Hmm that's actually quite a good point/idea/use of the feature. Three
colours sounds like a good middle ground. Attached is a patch which:

* Adds another colour in config.def.h, COLOR_INIT
* Renames the colours from numerical ones to ones with meaningful
names; COLOUR_INPUT for when there is content in the input buffer and
COLOUR_EMPTY for when the input buffer has been cleared (backspaced or
a failed attempt).
* Ensures XFreeColors frees the right number of colours. This is now
derived from the size of `Lock->colors` rather than being an integer
literal.
* Makes slock exhibit the behaviour described by Markus

The default colours are the same as the ones slock currently uses,
with the exception of the new colour, which I have set to red, as it
indicates someone has either failed an attempt to unlock, or that they
have entered input and erased it all.

Let me know what you think.

Thanks
-- 
Four word witty remark

Received on Wed Feb 11 2015 - 23:56:35 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 12 2015 - 00:00:21 CET