summaryrefslogtreecommitdiffstats
path: root/upshot
diff options
context:
space:
mode:
Diffstat (limited to 'upshot')
-rwxr-xr-xupshot12
1 files changed, 8 insertions, 4 deletions
diff --git a/upshot b/upshot
index ff45c51..43201aa 100755
--- a/upshot
+++ b/upshot
@@ -1,11 +1,15 @@
-#!/bin/sh
-#file=$(scrot -sb -e 'echo $f')
+#!/bin/bash
+
+set -e
+
file=$(mktemp --tmpdir screenshot-XXXX.png)
-maim -s $file
+maim -s "$file"
#gimp "$file"
if tty &>/dev/null; then
fb "$file"
else
- urxvt -geometry 79x1 -e fb "$file"
+ #urxvt -geometry 79x1 -e
+ systemd-cat fb "$file"
+ notify-send -t 5000 "Screenshot upload complete"
fi
rm "$file"