New upstream version 0.9

parent 3d89d054
## HOW TO CONTRIBUTE TO SCROT DEVELOPMENT
scrot is available at https://github.com/resurrecting-open-source-projects/scrot
If you are interested in contribute to scrot development, please, follow
the following steps:
1. Send a patch that fix an issue or that implement a new feature.
Alternatively, you can do a 'pull request'[1] in GitHub.
[1] https://help.github.com/articles/about-pull-requests
2. Ask for join to the scrot project in GitHub, if you want to work
officially. Note that this second step is not compulsory. However,
to accept you in project, is needed a minimum previous collaboration.
To find issues and bugs to fix, you can check these addresses:
- https://github.com/resurrecting-open-source-projects/scrot
- https://bugs.debian.org/cgi-bin/pkgreport.cgi?dist=unstable;package=scrot
- https://bugs.launchpad.net/ubuntu/+source/scrot/+bugs
- https://apps.fedoraproject.org/packages/scrot/bugs
- https://bugs.gentoo.org/buglist.cgi?quicksearch=scrot
If you want to join, please make a contact.
-- Eriberto, Tue, 12 Feb 2019 22:50:53 -0200.
Tue Feb 12 19:06:11 -03:00 2019 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
Version 0.9
* Added --autoselect rectangle option. Thanks to Stoney Sauce
<stoneysauce@gmail.com>.
* Added --focused option. Thanks to James Cameron <quozl@us.netrek.org>.
* Added an autogen.sh file.
* Added some explanation about how to help the project.
* Character cleanup for UTF-8 compatibility. Thanks to William Vera
<billy@billy.com.mx>.
* Fixed a missing option for beep prevention. Thanks to Ibragimov Rinat
<ibragimovrinat@mail.ru>.
* Fixed spelling errors in final binary. Thanks to William Vera
<billy@billy.com.mx>.
* Improved the autotools (acinclude.m4, configure.ac, Makefile.am and
src/Makefile.am).
* Improved the GCC hardening.
* Prevent arbitrary long file names. Thanks to George Danchev
<danchev@spnet.net>.
* Several fixes in manpage.
Wed Mar 12 13:20:11 GMT 2003 Tom Gilbert <tom@linuxbrit.co.uk>
* Patch from Claes Nasten <pekdon@gmx.net>
......
# Copyright 1999-2000 Tom Gilbert <tom@linuxbrit.co.uk,
# gilbertt@linuxbrit.co.uk,
# scrot_sucks@linuxbrit.co.uk>
# Copyright 2015-2016 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies of the Software and its documentation and acknowledgment shall be
# given in the documentation and software packages that this Software was
# used.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = 1.4 foreign
# A list of all the files in the current directory which can be regenerated
MAINTAINERCLEANFILES = Makefile.in scrot.spec
MAINTAINERCLEANFILES = Makefile.in
LDFLAGS = -L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib
INCLUDES = -I/usr/X11R6/include \
AM_LDFLAGS = -L/usr/X11R6/lib -L/usr/lib -L/usr/local/lib
AM_CPPFLAGS = -I/usr/X11R6/include \
$(X_CFLAGS) -I$(prefix)/include -I$(includedir) -I.
man_MANS = scrot.1
man_MANS = man/scrot.1
docs_DATA = README AUTHORS ChangeLog TODO
docsdir = $(prefix)/doc/scrot
#docs_DATA = README AUTHORS ChangeLog TODO
#docsdir = $(prefix)/doc/scrot
EXTRA_DIST = \
scrot.spec scrot.1 $(docs_DATA)
scrot.spec scrot.1
SUBDIRS = src
distclean-local:
-rm -rf autom4te.cache/
-rm -f *~ \
src/*~ \
aclocal.m4 \
compile \
configure \
depcomp \
install-sh \
Makefile.in \
missing \
src/config.h.in \
src/Makefile.in
This diff is collapsed.
Compile:
SCReenshOT - command line screen capture utility
================================================
scrot (SCReenshOT) is a simple command line screen capture
utility that uses imlib2 to grab and save images. Multiple
image formats are supported through imlib2's dynamic saver
modules.
Some features of the scrot:
- support to multiple image formats (JPG, PNG, GIF, etc.).
- optimization of the screen shots image quality.
- capture a specific window or a rectangular area on the
screen with the help of switch.
scrot also can be used to monitor a desktop PC in admin absent
and register unwanted activities.
BUILD
=====
$ ./autogen.sh
$ ./configure
$ make
$ su -c "make install"
# make install
To return to original source code, you can use '$ make distclean' command.
HELP THIS PROJECT
=================
scrot needs your help. If you are a programmer and if you wants to help a
nice project, this is your opportunity.
scrot was imported from some tarballs (the original homepage and developers
are inactive). After this, all patches found in Debian project and other places
for this program were applied. All initial work was registered in ChangeLog
file (version 0.9 and later releases). scrot is being packaged in Debian[1].
If you are interested to help scrot, read the CONTRIBUTING.md file.
[1] https://tracker.debian.org/pkg/scrot
AUTHOR
======
scrot was originally developed by Tom Gilbert under MIT-advertising license.
(Red hat users, use $ ./configure --prefix=/usr)
Currently, source code and newer versions are available at
https://github.com/resurrecting-open-source-projects/scrot
......@@ -26,7 +26,7 @@ dnl
dnl @author Angus Lees <gusl@cse.unsw.edu.au>
dnl @version $Id: acinclude.m4,v 1.1 2001/08/08 20:23:52 gilbertt Exp $
AC_DEFUN(AC_PATH_GENERIC,
AC_DEFUN([AC_PATH_GENERIC],
[dnl
dnl we're going to need uppercase, lowercase and user-friendly versions of the
dnl string `LIBRARY'
......
This diff is collapsed.
#!/bin/sh
# autogen.sh with clean option, v0.1-scrot
# Copyright 2019 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
#
# This file is under BSD-3-Clause license.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
# notice, this list of conditions and the following disclaimer in the
# documentation and/or other materials provided with the distribution.
# 3. Neither the name of the authors nor the names of its contributors
# may be used to endorse or promote products derived from this software
# without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
# ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# SUCH DAMAGE.
# Use clean option
if [ "$1" = "clean" -a ! -e Makefile ]
then
echo "Vanishing the code"
rm -rf aclocal.m4 autom4te.cache/ compile configure depcomp install-sh \
Makefile.in missing src/config.h.in src/Makefile.in
exit 0
fi
# Do not use clean option
if [ "$1" = "clean" -a -e Makefile ]
then
echo "I can not clean. Use '$ make distclean'."
exit 0
fi
# Do autoreconf
autoreconf -i \
&& { echo " "; \
echo "Done. You can use the 'clean' option to vanish the source code."; \
echo "Example of use: $ ./autogen.sh clean"; \
echo " "; \
echo "Now run ./configure, make, and make install."; \
} \
|| { echo "We have a problem..."; exit 1; }
This diff is collapsed.
dnl Process this file with autoconf to create configure.
AC_INIT
AC_INIT([scrot], [0.9], [https://github.com/resurrecting-open-source-projects/scrot/issues])
AC_CONFIG_SRCDIR([src/main.c])
AM_INIT_AUTOMAKE(scrot, 0.8)
AM_CONFIG_HEADER(src/config.h)
AM_INIT_AUTOMAKE
AC_CONFIG_HEADER([src/config.h])
AC_PROG_CC
AM_PROG_CC_STDC
......@@ -28,8 +28,5 @@ AC_SUBST(GIBLIB_CFLAGS)
AC_CHECK_FUNC(getopt_long,,[LIBOBJS="$LIBOBJS getopt.o getopt1.o"])
AC_SUBST(LIBOBJS)
AC_CONFIG_FILES([Makefile \
scrot.spec \
src/Makefile \
])
AC_CONFIG_FILES([Makefile src/Makefile])
AC_OUTPUT
dnl Process this file with autoconf to create configure.
AC_INIT(src/main.c)
AM_INIT_AUTOMAKE(scrot, 0.8)
AM_CONFIG_HEADER(src/config.h)
AC_PROG_CC
AM_PROG_CC_STDC
AC_C_CONST
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AM_MAINTAINER_MODE
AC_PATH_GENERIC(giblib, 1.2.3, [
AC_SUBST(GIBLIB_LIBS)
AC_SUBST(GIBLIB_CFLAGS) ],
AC_MSG_ERROR(Cannot find giblib: Is giblib-config in the path?) )
LIBS="$LIBS -lm"
GIBLIB_LIBS=`giblib-config --libs`
GIBLIB_CFLAGS=`giblib-config --cflags`
AC_SUBST(GIBLIB_LIBS)
AC_SUBST(GIBLIB_CFLAGS)
AC_CHECK_FUNC(getopt_long,,[LIBOBJS="$LIBOBJS getopt.o getopt1.o"])
AC_SUBST(LIBOBJS)
AC_OUTPUT(Makefile \
scrot.spec \
src/Makefile \
)
When updating, change the following files (if needed):
- ChangeLog
- Check for spelling errors in ChangeLog and manpage.
- configure.ac (VERSION)
- doc/create-man.sh (DATE, version)
- Generate a new manpage.
- README
#!/bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission. M.I.T. makes no representations about the
# suitability of this software for any purpose. It is provided "as is"
# without express or implied warranty.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch. It can only install one file at a time, a restriction
# shared with many OS's install programs.
# set DOITPROG to echo to test this script
# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"
# put in absolute paths if you don't have them in your path; or use env. vars.
mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"
transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""
while [ x"$1" != x ]; do
case $1 in
-c) instcmd="$cpprog"
shift
continue;;
-d) dir_arg=true
shift
continue;;
-m) chmodcmd="$chmodprog $2"
shift
shift
continue;;
-o) chowncmd="$chownprog $2"
shift
shift
continue;;
-g) chgrpcmd="$chgrpprog $2"
shift
shift
continue;;
-s) stripcmd="$stripprog"
shift
continue;;
-t=*) transformarg=`echo $1 | sed 's/-t=//'`
shift
continue;;
-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
shift
continue;;
*) if [ x"$src" = x ]
then
src=$1
else
# this colon is to work around a 386BSD /bin/sh bug
:
dst=$1
fi
shift
continue;;
esac
done
if [ x"$src" = x ]
then
echo "install: no input file specified"
exit 1
else
true
fi
if [ x"$dir_arg" != x ]; then
dst=$src
src=""
if [ -d $dst ]; then
instcmd=:
chmodcmd=""
else
instcmd=mkdir
fi
else
# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad
# if $src (and thus $dsttmp) contains '*'.
if [ -f $src -o -d $src ]
then
true
else
echo "install: $src does not exist"
exit 1
fi
if [ x"$dst" = x ]
then
echo "install: no destination specified"
exit 1
else
true
fi
# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic
if [ -d $dst ]
then
dst="$dst"/`basename $src`
else
true
fi
fi
## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
# Make sure that the destination directory exists.
# this part is taken from Noah Friedman's mkinstalldirs script
# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='
'
IFS="${IFS-${defaultIFS}}"
oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS="${oIFS}"
pathcomp=''
while [ $# -ne 0 ] ; do
pathcomp="${pathcomp}${1}"
shift
if [ ! -d "${pathcomp}" ] ;
then
$mkdirprog "${pathcomp}"
else
true
fi
pathcomp="${pathcomp}/"
done
fi
if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
else
# If we're going to rename the final executable, determine the name now.
if [ x"$transformarg" = x ]
then
dstfile=`basename $dst`
else
dstfile=`basename $dst $transformbasename |
sed $transformarg`$transformbasename
fi
# don't allow the sed command to completely eliminate the filename
if [ x"$dstfile" = x ]
then
dstfile=`basename $dst`
else
true
fi
# Make a temp file name in the proper directory.
dsttmp=$dstdir/#inst.$$#
# Move or copy the file name to the temp name
$doit $instcmd $src $dsttmp &&
trap "rm -f ${dsttmp}" 0 &&
# and set any options; do chmod last to preserve setuid bits
# If any of these fail, we abort the whole thing. If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.
if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
# Now rename the file to the real destination.
$doit $rmcmd -f $dstdir/$dstfile &&
$doit $mvcmd $dsttmp $dstdir/$dstfile
fi &&
exit 0
#!/bin/bash
# Copyright 2015-2019 Joao Eriberto Mota Filho <eriberto@eriberto.pro.br>
# Create a manpage using txt2man command.
#
# This script can be used under BSD-3-Clause license.
TEST=$(txt2man -h 2> /dev/null)
[ "$TEST" ] || { echo -e "\nYou need to install txt2man, from https://github.com/mvertes/txt2man.\n"; exit 1; }
T2M_DATE="12 Feb. 2019"
T2M_NAME=scrot
T2M_VERSION=0.9
T2M_LEVEL=1
T2M_DESC="command line screen capture utility"
# Don't change the following line
txt2man -d "$T2M_DATE" -t $T2M_NAME -r $T2M_NAME-$T2M_VERSION -s $T2M_LEVEL -v "$T2M_DESC" $T2M_NAME.txt > $T2M_NAME.$T2M_LEVEL
.\" Text automatically generated by txt2man
.TH scrot 1 "12 Feb. 2019" "scrot-0.9" "command line screen capture utility"
.SH NAME
\fBscrot \fP- command line screen capture utility
\fB
.SH SYNOPSIS
.nf
.fam C
\fBscrot\fP [\fIoptions\fP] [\fIfile\fP]
.fam T
.fi
.fam T
.fi
.SH DESCRIPTION
\fBscrot\fP (SCReenshOT) is a simple command line screen capture
utility that uses imlib2 to grab and save images. Multiple
image formats are supported through imlib2's dynamic saver
modules.
.PP
Some features of the \fBscrot\fP:
.RS
.IP \(bu 3
support to multiple image formats (JPG, PNG, GIF, etc.).
.IP \(bu 3
optimization of the screen shots image quality.
.IP \(bu 3
capture a specific window or a rectangular area on the
screen with the help of switch.
.RE
.PP
\fBscrot\fP also can be used to monitor a desktop PC in admin absent
and register unwanted activities.
.SH OPTIONS
.TP
.B
\fB-h\fP, \fB--help\fP
Display help output and exit.
.TP
.B
\fB-v\fP, \fB--version\fP
Output version information and exit.
.TP
.B
\fB-a\fP, \fB--autoselect\fP
Non-interactively choose a rectangle of x,y,w,h.
.TP
.B
\fB-b\fP, \fB--border\fP
When selecting a window, grab wm border too.
.TP
.B
\fB-c\fP, \fB--count\fP
Display a countdown when used with delay.
.TP
.B
\fB-d\fP, \fB--delay\fP NUM
Wait NUM seconds before taking a shot.
.TP
.B
\fB-e\fP, \fB--exec\fP APP
Exec APP on the saved image.
.TP
.B
\fB-q\fP, \fB--quality\fP NUM
Image quality (1-100) high value means high size, low
compression. Default: 75. (Effect differs depending on
\fIfile\fP format chosen).
.TP
.B
\fB-m\fP, \fB--multidisp\fP
For multiple heads, grab shot from each and join them
together.
.TP
.B
\fB-s\fP, \fB--select\fP
Interactively select a window or rectangle with the mouse.
.TP
.B
\fB-u\fP, \fB--focused\fP
Use the currently focused window.
.TP
.B
\fB-t\fP, \fB--thumb\fP NUM
Generate thumbnail too. NUM is the percentage of the
original size for the thumbnail to be.
.TP
.B
\fB-z\fP, \fB--silent\fP
Prevent beeping.
.SH SPECIAL STRINGS
Both the \fB--exec\fP and filename parameters can take format specifiers that are
expanded by \fBscrot\fP when encountered. There are two types of format specifier.
Characters preceded by a '%' are interpreted by \fBstrftime\fP(2). See man strftime
for examples. These \fIoptions\fP may be used to refer to the current date and
time. The second kind are internal to \fBscrot\fP and are prefixed by '$' The
following specifiers are recognised:
.PP
.nf
.fam C
$f image path/filename (ignored when used in the filename)
$n image name (ignored when used in the filename)
$s image size (bytes) (ignored when used in the filename)
$p image pixel size
$w image width
$h image height
$t image format
$$ print a literal '$'
\\n print a newline (ignored when used in the filename)
.fam T
.fi
.SH EXAMPLE
.TP
.B
\fBscrot\fP '%Y-%m-%d_$wx$h.png' \fB-e\fP 'mv $f ~/shots/'
This would create a \fIfile\fP called something like 2000-10-30_2560x1024.png
and move it to your shots directory.
.SH AUTHOR
\fBscrot\fP was originally developed by Tom Gilbert under MIT-advertising license.
.PP
Currently, source code and newer versions are available at
https://github.com/resurrecting-open-source-projects/\fBscrot\fP
NAME
scrot - command line screen capture utility
SYNOPSIS
scrot [options] [file]
DESCRIPTION
scrot (SCReenshOT) is a simple command line screen capture
utility that uses imlib2 to grab and save images. Multiple
image formats are supported through imlib2's dynamic saver
modules.
Some features of the scrot:
- support to multiple image formats (JPG, PNG, GIF, etc.).
- optimization of the screen shots image quality.
- capture a specific window or a rectangular area on the
screen with the help of switch.
scrot also can be used to monitor a desktop PC in admin absent
and register unwanted activities.
OPTIONS
-h, --help Display help output and exit.
-v, --version Output version information and exit.
-a, --autoselect Non-interactively choose a rectangle of x,y,w,h.
-b, --border When selecting a window, grab wm border too.
-c, --count Display a countdown when used with delay.
-d, --delay NUM Wait NUM seconds before taking a shot.
-e, --exec APP Exec APP on the saved image.
-q, --quality NUM Image quality (1-100) high value means high size, low
compression. Default: 75. (Effect differs depending on
file format chosen).
-m, --multidisp For multiple heads, grab shot from each and join them
together.
-s, --select Interactively select a window or rectangle with the mouse.
-u, --focused Use the currently focused window.
-t, --thumb NUM Generate thumbnail too. NUM is the percentage of the
original size for the thumbnail to be.
-z, --silent Prevent beeping.
SPECIAL STRINGS
Both the --exec and filename parameters can take format specifiers that are
expanded by scrot when encountered. There are two types of format specifier.
Characters preceded by a '%' are interpreted by strftime(2). See man strftime
for examples. These options may be used to refer to the current date and
time. The second kind are internal to scrot and are prefixed by '$' The
following specifiers are recognised:
$f image path/filename (ignored when used in the filename)
$n image name (ignored when used in the filename)
$s image size (bytes) (ignored when used in the filename)
$p image pixel size
$w image width
$h image height
$t image format
$$ print a literal '$'
\\n print a newline (ignored when used in the filename)
EXAMPLE
scrot '%Y-%m-%d_$wx$h.png' -e 'mv $f ~/shots/'
This would create a file called something like 2000-10-30_2560x1024.png
and move it to your shots directory.
AUTHOR
scrot was originally developed by Tom Gilbert under MIT-advertising license. <