From 12240fb74c0c6f2768e1070f849cd265ea3dd181 Mon Sep 17 00:00:00 2001 From: VG Date: Wed, 28 Jan 2015 18:45:29 +0100 Subject: First commit --- scripts/shareit-scrot | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 scripts/shareit-scrot (limited to 'scripts/shareit-scrot') diff --git a/scripts/shareit-scrot b/scripts/shareit-scrot new file mode 100755 index 0000000..9588de6 --- /dev/null +++ b/scripts/shareit-scrot @@ -0,0 +1,14 @@ +#!/bin/bash +set -e + +file= + +cleanup_cb() { [ -n "$file" ] && rm $file; } + +trap cleanup_cb EXIT + +file=$(mktemp --suffix=.png) + +scrot -s $file + +shareit $file -- cgit v1.2.3