Lofland bLOG

How to do a screenshot on the Zaurus (and on X in general?)

Filed under Unix Notes on Thursday, June 29th, 2006 @ 9:38am by Christen

This is straight out of the forums at www.oesf.org

Use the following command:
xwd -display :0.0 -root -out screenshot.xwd
this will take a screenshot right away - so often its better to use:
sleep 5;xwd -display :0.0 -root -out screenshot.xwd
then use gimp to convert.

If you install Imagemagick you can convert it directly, I use a simple script I like this to take the screenshot, convert and name it with a unique name. Adjust the sleep command and the location of where the files go to your liking.
CODE

sleep 10

if test -z “$1″; then
let i=1
f=”/mnt/card/screen$i.png”
echo $f
while test -f $f; do
let i=1+$i
f=”/mnt/card/screen$i.png”
done

else
f=”$1″
fi

xwd -display :0.0 -root -out “$f”.xwd
convert “$f”.xwd “$f”
rm “$f”.xwd

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Powered by WordPress