Commit 738f0532 by Fred Smith

only upload if maim succeeds

parent 0f7f5ba9
......@@ -4,6 +4,5 @@ hostname=$(hostname -s)
sleep .3
randstring=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 8 | head -n 1)
filename=~/Pictures/Screenshots/$hostname-$(date +'%Y-%m-%d-%H-%M-%S')-$randstring.png
maim -s -c 1,0,0,0.6 -p 10 $filename
~/bin/screenshot_upload $filename
maim -s -c 1,0,0,0.6 -p 10 $filename && ~/bin/screenshot_upload $filename
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment