summaryrefslogtreecommitdiffstats
path: root/upshot
diff options
context:
space:
mode:
Diffstat (limited to 'upshot')
-rwxr-xr-xupshot10
1 files changed, 8 insertions, 2 deletions
diff --git a/upshot b/upshot
index 15b1cd3..ff45c51 100755
--- a/upshot
+++ b/upshot
@@ -1,5 +1,11 @@
#!/bin/sh
-file=$(scrot -sb -e 'echo $f')
+#file=$(scrot -sb -e 'echo $f')
+file=$(mktemp --tmpdir screenshot-XXXX.png)
+maim -s $file
#gimp "$file"
-fb "$file"
+if tty &>/dev/null; then
+ fb "$file"
+else
+ urxvt -geometry 79x1 -e fb "$file"
+fi
rm "$file"