Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/bash
  2. #usage name_script delay_second
  3. if [ $1 ]; then
  4. sleep $1
  5. fi
  6. FILE_NAME="screenshot";
  7. IMG_FORMAT="jpg"; #png, jpg, bmp, gif, tiff
  8. xwd -screen -root > $FILE_NAME.xwd;
  9. convert $FILE_NAME.xwd -type TrueColor $FILE_NAME.$IMG_FORMAT;
  10. rm $FILE_NAME.xwd;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement