From owner-freebsd-questions@FreeBSD.ORG Wed Nov 10 14:20:39 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73DE916A4CE for ; Wed, 10 Nov 2004 14:20:39 +0000 (GMT) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F82D43D49 for ; Wed, 10 Nov 2004 14:20:39 +0000 (GMT) (envelope-from jester@panix.com) Received: from panix2.panix.com (panix2.panix.com [166.84.1.2]) by mail1.panix.com (Postfix) with ESMTP id 23DD459590 for ; Wed, 10 Nov 2004 09:20:34 -0500 (EST) Received: (from jester@localhost) by panix2.panix.com (8.11.6p2-a/8.8.8/PanixN1.1) id iAAEK6Q18494 for freebsd-questions@freebsd.org; Wed, 10 Nov 2004 09:20:06 -0500 (EST) Date: Wed, 10 Nov 2004 09:20:06 -0500 From: Jesse Sheidlower To: freebsd-questions@freebsd.org Message-ID: <20041110142006.GA5764@panix.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Scripting the lock-screen function in xscreensaver? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Nov 2004 14:20:39 -0000 I'm running xscreensaver as part of Gnome, and would like to be able to control it in a way I can't figure out. Most panel icons can right-click to a "properties" window that gives, among other things, the command that will be executed by clicking on that icon. The "lock" icon does not have this; the properties window just controls the aspects of the display, the timing of the blanking, etc. I'd like to change the action of this icon so that, before locking the screen, it executes (for example) "ssh-add -D" to clear all of my ssh-agent's identities. Similarly, I'd like to know the command for locking so that I can put it elsewhere; for example, into an rc.suspend file, so that if I close my laptop's cover it will automatically lock the screen. This at least I would have expected to find in the man page, but perhaps I missed it. Thanks. Jesse Sheidlower