All pastes #449177 Raw Edit

Someone

public shellscript v1 · immutable
·published 2007-04-20 02:23 UTC
rendered paste body
#!/bin/bash# Location to save filesWORKINGDIR=$HOME/screenshots# Default delay before taking screenshotsDELAY=3#Prefix to use for images captured. PREFIX=screenshot# Check if the dir to store the screenshots exists, else create it: if [ ! -d "${WORKINGDIR}" ]; then mkdir "${WORKINGDIR}"; fi i=`ls -l $WORKINGDIR/$PREFIX*.png | wc -l` ((i = i+1))sleep $DELAYimport -window root $WORKINGDIR/$PREFIX-$i.png