scripts

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

commit b8f7bbdac37deab5cd6fac194664a8b77e35fb83
parent e03dc461221b69a28fc25676bc3e9bbe201e6dd8
Author: Willy Goiffon <w.goiffon@gmail.com>
Date:   Tue Sep 24 13:33:55 +0200

I should have had a V8 this morning.

Diffstat:
instagram | 15++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/instagram b/instagram @@ -1,9 +1,16 @@ #!/bin/bash +# +# 2013 Willy 'z3bra' Goiffon <willy at mailoo dot org> +# +# INSTAGRAM - screenshot taker / manager +# IMAGE_DIR=~/usr/img -UPLOAD_BIN=~/bin/upload +EXEC_UPLOAD=~/bin/upload SSHOT_DIR=${IMAGE_DIR}/wm +source ~/.config/instagram + function usage() { cat <<SHBLAH Usage : instagram [-tmuh] [-g number] [-s screen] [filename.png] @@ -18,15 +25,13 @@ Usage : instagram [-tmuh] [-g number] [-s screen] [filename.png] Remember to add an extension at the end of the command Also, do not give path to shot. They're saved to $SSHOT_DIR by default. SHBLAH - -exit 0 } function upload() { - ~/bin/upload $1 + $EXEC_UPLOAD $1 } -[[ "$1" = "--help" ]] && usage +[[ "$1" = "--help" ]] && usage && exit 0 while getopts ":htmud:g:s:" opt; do case $opt in