summaryrefslogtreecommitdiffstats
path: root/upshot
diff options
context:
space:
mode:
Diffstat (limited to 'upshot')
-rwxr-xr-xupshot7
1 files 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"