diff options
author | Florian Pritz <bluewind@xinu.at> | 2018-10-27 11:03:11 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2018-10-27 11:03:11 +0200 |
commit | 249f9f917ee4d3fd8761de82585e062567b16351 (patch) | |
tree | c66d038b42cbf3014e0d3b6303b80e567c5915b0 /upshot | |
parent | 37de71d510adc3a3210b04c8b9c9630fe0467f68 (diff) | |
download | bin-249f9f917ee4d3fd8761de82585e062567b16351.tar.gz bin-249f9f917ee4d3fd8761de82585e062567b16351.tar.xz |
upshot: Use flameshot
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'upshot')
-rwxr-xr-x | upshot | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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" |