#!/bin/sh
# Screenshot script
#
# Author Tómas Edwardsson <tommi@tommi.org>

WHERE="$HOME/screenshots/`date +%Y/%m/%d`"
FILE="$WHERE`date +/screenshot-%H%M`"

mkdir -p $WHERE
  /usr/bin/xwd -display :0.0 -root -out $FILE.xwd

#/usr/bin/convert  $FILE.xwd $FILE.png
#/bin/rm -f $FILE.xwd
