make a directory ~/snapshots
you could write a one-liner wrapper as
Code:
xwd | convert - ~/snapshots/$(date -j +%Y%m%d%H%M%s).png
save this line as a file under your ~/bin directory (might need to create a ~/bin , ~/bin is in the search PATH) under any name as, "snapshot"
make this executable
chmod +x snapshot
then, just put the line in your ~/.icewm/menu file as
exec an_icon.png snapshot
date -j is OpenBSD specific (parse date without changing the clock), read man date for other OSes