#!/bin/sh

# -s : Interactively select a window or rectangle with the mouse.
# -e : Directly open the screenshot with Gimp then delete it

scrot -s -m -e 'gimp $f ; mv $f /tmp/'