[dwm] building an autolock with sinac

From: Christian Dietrich <stettberger_AT_dokucode.de>
Date: Fri, 28 Dec 2007 17:51:30 +0100

i searched for a replacement for the autolock feature of xscreensaver with
slock. So i worked on an older piece of code, written by a friend of me.
The result is sinac (simple inactive). Which can print out the inactive
time of the X session or wait until the inactive timer has reached an
specific value.

Sinac uses the xscreensaver x extention, so you have to install
libxss-dev. You can compile the attached sinac.c file with:

gcc sinac.c -L/usr/X11R6/lib -lX11 -lXss -lXext -o sinac

And now lets build an autolocker with sinac & slock:

while true; do ./sinac -w 300 && slock; done


No documentation is better than bad documentation

Received on Fri Dec 28 2007 - 17:51:37 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:14:20 UTC