summaryrefslogtreecommitdiffstats
path: root/upshot
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-10-27 11:03:11 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-10-27 11:03:11 +0200
commit249f9f917ee4d3fd8761de82585e062567b16351 (patch)
treec66d038b42cbf3014e0d3b6303b80e567c5915b0 /upshot
parent37de71d510adc3a3210b04c8b9c9630fe0467f68 (diff)
downloadbin-249f9f917ee4d3fd8761de82585e062567b16351.tar.gz
bin-249f9f917ee4d3fd8761de82585e062567b16351.tar.xz
upshot: Use flameshot
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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"