scripts

various script and utils
git clone git://z3bra.org/scripts
Log | Files | Refs

commit 8bb909ba0498c0f0178b59d05961750c0a5fcbf3
parent ceeaf811397f91c0707117f389deb4e9cf755e02
Author: Willy Goiffon <w.goiffon@gmail.com>
Date:   Tue Sep 24 13:08:04 +0200

Added a few options and fixed things

Diffstat:
instagram | 11+++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/instagram b/instagram @@ -1,15 +1,18 @@ #!/bin/bash IMAGE_DIR=~/usr/img -SSHOT_DIR=$(IMAGE_DIR)/wm +UPLOAD_BIN=~/bin/upload +SSHOT_DIR=${IMAGE_DIR}/wm function usage() { cat <<SHBLAH -Usage : instagram [-tmh] [-g time] [-s screen] [filename.png] +Usage : instagram [-tmuh] [-g number] [-s screen] [filename.png] -t : create thumbnail -m : create one shot per head + -u : upload the file using $UPLOAD_BIN <filename> -h : display this help - -g time : create a gif during <time> seconds + -d path : save the shot in <path> + -g number : create a gif out of <number> shot (0.5 second between shots) -s screen : use only the screen number <screen> for the shot Remember to add an extension at the end of the command @@ -65,7 +68,7 @@ else fi if [[ "$UPLOAD" = "1" ]]; then - cd ${IMAGE_DIR)r} + cd ${IMAGE_DIR} upload wm/${OUTPUT} fi