Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #usage name_script delay_second
- if [ $1 ]; then
- sleep $1
- fi
- FILE_NAME="screenshot";
- IMG_FORMAT="jpg"; #png, jpg, bmp, gif, tiff
- xwd -screen -root > $FILE_NAME.xwd;
- convert $FILE_NAME.xwd -type TrueColor $FILE_NAME.$IMG_FORMAT;
- rm $FILE_NAME.xwd;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement