diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-12-02 19:40:49 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2014-12-02 19:40:49 +0100 |
commit | 5fcf0a6b8e48fc95c8f890fe1dee2429960067fa (patch) | |
tree | e7780aff1e0926c4041883d78e65e4234dd9e87d /upshot | |
parent | c23d10167a1db1243e4d090de7248de379aa2b73 (diff) | |
download | bin-5fcf0a6b8e48fc95c8f890fe1dee2429960067fa.tar.gz bin-5fcf0a6b8e48fc95c8f890fe1dee2429960067fa.tar.xz |
upshot: use maim instead of scrot
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'upshot')
-rwxr-xr-x | upshot | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -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" |