diff options
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" |