#!/bin/csh -f #H# Snaps a screenshot using xwd. # print usage info if needed if ($1 != "") exec sed -n -e '/^\#H\#/s/^....//p' $0 # -frame includes the wm decorations on the window. # xwd -frame > x.xwd xwd -frame > x.xwd convert -antialias x.xwd x.png && rm -f x.xwd #import -frame x.png