From 249f9f917ee4d3fd8761de82585e062567b16351 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 27 Oct 2018 11:03:11 +0200 Subject: upshot: Use flameshot Signed-off-by: Florian Pritz --- upshot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/upshot b/upshot index 7a4aa92..6a1d73e 100755 --- a/upshot +++ b/upshot @@ -6,8 +6,11 @@ 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" +#maim -s "$file" +flameshot gui -r > "$file" +if grep -q '^screenshot aborted$' "$file"; then + exit 0; +fi #gimp "$file" notify-send -t 5000 "Screenshot uploading" -- cgit v1.2.3-24-g4f1b