summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xupshot6
1 files changed, 3 insertions, 3 deletions
diff --git a/upshot b/upshot
index 43201aa..65c841a 100755
--- a/upshot
+++ b/upshot
@@ -5,11 +5,11 @@ set -e
file=$(mktemp --tmpdir screenshot-XXXX.png)
maim -s "$file"
#gimp "$file"
-if tty &>/dev/null; then
+if tty &>/dev/null && ! [[ $1 = "-n" ]]; then
fb "$file"
else
#urxvt -geometry 79x1 -e
- systemd-cat fb "$file"
- notify-send -t 5000 "Screenshot upload complete"
+ output=$(fb "$file")
+ notify-send -t 5000 "Screenshot upload complete: $output"
fi
rm "$file"