Re: [i3] conky output on i3lock

2014-01-24 Thread Michael Stapelberg
Hi Axel,

Axel Wagner m...@merovius.de writes:
 i3lock-window. Without much testing, any commitment to maintain anything
 and just as a starting point, I provide [2], which is a working proof of
 concept. If someone has interest and the time to further expand upon
 this script and make it more stable and widely usable, I would be very
 glad and appreciate a notice.

 If Michael would be willing to merge something like this, you could
I’m slightly confused. What would I need to merge? Your reference points
to an i3lock-external shell script (which I have attached to this
message, so that it doesn’t get lost when sprunge garbage collects).

-- 
Best regards,
Michael
#!/bin/sh

/home/mero/src/i3lock/i3lock -n -c 00 -i /home/mero/bilder/vista.png 
i3lockpid=$!
sleep 0.5

winid=`xwininfo -name i3lock | grep Window id | grep -oE 0x[0-9a-f]+`
if [ -z $winid ]
then
echo Could not find i3lock window
exit 1
fi

conky -w $winid 
conkypid=$!

wait $i3lockpid
kill $conkypid



Re: [i3] conky output on i3lock

2014-01-24 Thread Axel Wagner
Since I used the wrong mail-address before, again to the mailing-list:

Hi Michael,

Michael Stapelberg mich...@i3wm.org writes:
 I’m slightly confused. What would I need to merge? Your reference points
 to an i3lock-external shell script (which I have attached to this
 message, so that it doesn’t get lost when sprunge garbage collects).

Sorry, I wasn't very clear here. I can see mostly one shortcoming of a
script like this to the mentioned fork: The inability to log and display
failed login-attempts.
Currently the only way to do this would be to run i3lock in debug mode
and grep for Authentication failure, counting the lines, that come up
and show this somehow in conky. I see this as a little bit ugly (but
nevertheless possible, it only occured to me later), so a nicer way 
would be for i3lock to output failed attempts even without debug-mode
(possibly with an additional switch?).

So no, there actually is nothing to merge yet. If someone wants this
functionality, that _might_ be a way to do it, _if_ a change like this
(in some way expose failed login attempts) would be accepted.

As I said, I just wanted to dump some of my thoughts and results of a
bit of discussion, in case someone might be interested in doing such a
thing.

Best,

Axel