nsbin/mk-fensterschuss

18 lines
296 B
Text
Raw Normal View History

2006-07-20 07:54:37 +00:00
#!/bin/sh
#
# Nico Schottelius <nico-linux@schottelius.org>
# Date: 22-Sep-2004
# Last Modified: -
#
if [ $# -lt 1 ]; then
echo "`basename $0` name_of_screenshot"
exit 1
fi
name=$1
file="$name-screenshot-`date +%Y%m%d`.png"
[ -e "$file" ] && return 1
xwd | xwdtopnm | pnmtopng > "$file"