From 5fcf0a6b8e48fc95c8f890fe1dee2429960067fa Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Tue, 2 Dec 2014 19:40:49 +0100 Subject: upshot: use maim instead of scrot Signed-off-by: Florian Pritz --- upshot | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'upshot') 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" -- cgit v1.2.3-24-g4f1b