From: tdphette@mke.ab.com (Thad Phetteplace x4461)
Subject: Re: Auto screen lock for OpenWin
Organization: Allen-Bradley Co.
X-Newsreader: Tin 1.1 PL4
Date: Thu, 1 Oct 1992 19:54:42 GMT

At the request of numerous people, I have made my auto screen locker
available for download.  The compressed tar file Xlockup.tar.Z can be
retreived via anonymous FTP from tinman.mke.ab.com.  It is in the
/software directory.  A copy of the README file follows.

-------------- cut here ---------------
XLOCKUP Version 1.1 README File

Copyright (c) February 1992, Thad Phetteplace
Last modified: 9/30/92


DISCLAIMER
----------
This software may be redistributed freely as long as the following
conditions are met:  This copyright notice and warranty disclaimer are
kept intact in all source code and documentation.  You do not attempt to
sell this software or charge for its redistribution.  

This software is NOT an Allen-Bradley Co. product and Allen-Bradley Co.
accepts no responsibility for any loss of data or productivity that may
occur as a result of using this program.  This software is provided without
any expressed or implied warranties, including, without limitation, the
implied warranty of merchantibility and fitness for a particular purpose.


What is Xlockup?
----------------
Xlockup is a xview based program which monitors the keyboard and mouse 
devices and invokes the screen locking program of your choice when a 
specified inactivity timeout has been reached.  Version 1.1 accepts 
standard OpenWindows arguments for placement of windows and icons so if you 
do a 'Save Workspace' while it is running it will position itself correctly
next time you start OpenWindows (version 1.0 didn't).  There is a slidebar 
for adjusting the timeout which can be set from 0 to 120 minutes.  Setting 
the timeout to zero turns off inactivity checking completely.


Installation
------------
The compressed tar file Xlockup.tar.Z is available via anonymous FTP from 
tinman.mke.ab.com in the /software directory.  The tar file creates an 
Xlockup directory containing the following files:

Makefile ......... The makefile (of course)
README ........... This file
Xlockup.c ........ The source code
lockup.icon ...... The Xlockup icon file

Just type make and press return and your compiler will do the rest.  The 
makefile assumes that the environment variable OPENWINHOME is set to the 
location of your OpenWindows software and that the X library and include 
files are located there.  If you have moved your X libraries and include 
files to someplace else you will have to hack the Makefile some.

I have only compiled this on a Sun IPX running SunOS 4.1.2 and OpenWindows 
3.0.  I suspect it will compile under OpenWindows 2.0 with no revisions and 
it probably wouldn't be tough to port to other platforms.  If anyone 
succeeds in porting it tell me what you did and I will incorporate it into 
the next release.  I will be attempting to port it to X386 on 386BSD.

Sorry, I haven't completed a man page for it yet.


The .Xlockuprc file
-------------------
The default screen locking program invoked when the inactivity threshold is 
reached is xlock.  You can define a custom set of screen locking programs 
to invoke by listing them in a file called .Xlockuprc located in your home 
directory.  If a .Xlockuprc file is found when the program starts, a row of 
toggle switches will be added to the Xlockup window.  Each line in the 
.Xlockuprc file will define the name and function of a toggle switch.  The 
following example is what I have in my home directory.
 
# Sample .Xlockuprc file
# Place this in your home directory 
Life    xlock -mode life
Qix     xlock -mode qix
Logo    xlock -mode image
Swarm   xlock -mode swarm
Rotor   xlock -mode rotor
Pyro    xlock -mode pyro
Flame   xlock -mode flame
Fractal xlock -mode hop
Random  xlock -mode random
# End Of File

Blank lines or lines starting with a # are ignored.  The first word on a 
line is used as the label of the toggle switch for that option.  All 
characters after the first word will be interpreted as the command to 
assign to that toggle switch.


Suggestions, Comments, and Bug Reports
--------------------------------------
Mail any comments or complaints to following email address, or call me if
you are not on the net.

Thad Phetteplace
Network Systems Analyst, Allen-Bradley Co.
Phone: (414)382-4461
Email: tdphette@mke.ab.com
-------------- cut here ---------------


I would like to thank the following people who sent me email with many helpful
suggestions and comments.

 lvirden@cas.org (Larry W. Virden)
 Pravin.Hathi@West.Sun.COM (Pravin Hathi - EDA (IC) District SE)
 sacks@panther.mot.com (Dennis Sacks)
 doug@northern.med.ge.com (Doug Curtis 5-4240)
 jaa@SU59D.ess.harris.com (John Auer)
 jh@cadre.com (Joe Hartley)
 Erik.Veit@EBay.Sun.COM (D.O.A.)
 danw@hspice.portal.com (Dan Weisenstein)
 corson@infodyn.COM (Tom Corson)
 Rodney Campbell <rodney@cssc-syd.tansu.com.au>
 Volker Siebelink <volker@nvs-01.uni-paderborn.de>
 peteg@seismo.CSS.GOV (Pete Geenhuizen)
 Ronny.Bergstrom@eua.ericsson.se (Ronny Bergstrom)
 mlg@cadillac.siemens.com (Michael Greenberg)
 adh@petrel.att.com (Andrew D Hay)
 S J Collins <sjc@seg.npl.co.uk>
 meekj@pt.Cyanamid.COM (Jon Meek)
 bloeser@tron.kom.tuwien.ac.at (Friedrich Bloeser)
 "Peter (P.M.) McNally" <GALPMN01@nt.com>
 ijj@informatics.rutherford.ac.uk
 David Twinam <dtwi@gp_sparc48.gwl.com>

--
Thad Phetteplace
Network Systems Analyst, Allen-Bradley Co.
Phone: (414)382-4461
Email: tdphette@mke.ab.com

The opinions expressed here are entirely my own and not that of my employer...
I am not a slob, I am simply doing an experiment in domestic entropy!

Newsgroups: comp.sys.sun.apps