Sha256: 52cf2855dbde7e552d55eb5617792e7b7fb03d1b49ddb7a05d604b29390ccac5

Contents?: true

Size: 494 Bytes

Versions: 4

Compression:

Stored size: 494 Bytes

Contents

#!/usr/bin/env bash

# Location to save files
WORKINGDIR=$HOME/screenshots
# Default delay before taking screenshots
DELAY=3
#Prefix to use for images captured. 
PREFIX=screenshot

# Check if the dir to store the screenshots exists, else create it: 
if [ ! -d "${WORKINGDIR}" ]; then mkdir "${WORKINGDIR}"; fi 

i=`ls -l $WORKINGDIR/$PREFIX*.png | wc -l` 
((i = i+1))

sleep $DELAY
import -window root $WORKINGDIR/$PREFIX-$i.png
zenity --info --text=`imagebin -p -f $WORKINGDIR/$PREFIX-$i.png`

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
dougsko-imagebin-0.2.3 bin/takeScreenshot.sh
dougsko-imagebin-0.3.0 bin/takeScreenshot.sh
dougsko-imagebin-0.3.2 bin/takeScreenshot.sh
imagebin-0.3.2 bin/takeScreenshot.sh