[wmii] slock XID patch

From: Chris King <colanderman_AT_gmail.com>
Date: Mon, 5 Nov 2007 10:19:39 -0400

Hi all,

Here's a silly little patch that allows one to instruct slock to print
its window's XID to stdout by passing it the -w option. I wrote it so
I could use ImageMagick to display an image in it after it starts,
e.g.:

slock -w | ID=`{read} display -window $ID $LOCK_IMG

in rc, or

slock -w | { read ID && display -window $ID $LOCK_IMG; }

in bash. Maybe this will be useful for someone else too.

- Chris

Received on Mon Nov 05 2007 - 15:19:41 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:30:48 UTC