bin sh sleep xwd -root convert xwd screenshot_ date png

1
2
3
4
#!/bin/sh
sleep 5
xwd -root | convert xwd:- screenshot_`date +%s`.png