snapshot 240 B

12345678910111213
  1. #!/bin/sh
  2. DATE=(`date +%F`)
  3. COUNT=0
  4. FILENAME=~/Pictures/snapshot-${DATE}-${COUNT}.png
  5. until [[ ! -e $FILENAME ]]
  6. do
  7. FILENAME=~/Pictures/snapshot-${DATE}-${COUNT}.png
  8. COUNT=`expr ${COUNT} + 1`
  9. done
  10. import -window root ${FILENAME}