From ac82514e9ac44afd002cae52e91220f6598aaa1f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 24 Jul 2018 10:44:23 +0200 Subject: upshot: add flameshot comment Signed-off-by: Florian Pritz --- upshot | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/upshot b/upshot index 65c841a..7a4aa92 100755 --- a/upshot +++ b/upshot @@ -2,9 +2,16 @@ set -e -file=$(mktemp --tmpdir screenshot-XXXX.png) +dir=$(mktemp --tmpdir -d) +trap "rm -rf '$dir'" EXIT INT TERM + +file=$(mktemp --tmpdir="$dir" screenshot-XXXX.png) maim -s "$file" +#flameshot gui -r > "$file" #gimp "$file" + +notify-send -t 5000 "Screenshot uploading" + if tty &>/dev/null && ! [[ $1 = "-n" ]]; then fb "$file" else @@ -12,4 +19,3 @@ else output=$(fb "$file") notify-send -t 5000 "Screenshot upload complete: $output" fi -rm "$file" -- cgit v1.2.3-24-g4f1b