summaryrefslogtreecommitdiffstats
path: root/upshot
blob: 65c841ab783fb3e4a225447e692d775791b5d55b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

set -e

file=$(mktemp --tmpdir screenshot-XXXX.png)
maim -s "$file"
#gimp "$file"
if tty &>/dev/null && ! [[ $1 = "-n" ]]; then
	fb "$file"
else
	#urxvt -geometry 79x1 -e
	output=$(fb "$file")
	notify-send -t 5000 "Screenshot upload complete: $output"
fi
rm "$file"