diff options
-rwxr-xr-x | upshot | 10 | ||||
-rwxr-xr-x | upshot-xbindkeys | 5 |
2 files changed, 9 insertions, 6 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" diff --git a/upshot-xbindkeys b/upshot-xbindkeys index 074a7be..66bd84f 100755 --- a/upshot-xbindkeys +++ b/upshot-xbindkeys @@ -1,6 +1,3 @@ #!/bin/sh sleep 0.1 -file=$(scrot -sb -e 'echo $f') -#gimp "$file" -urxvt -geometry 79x1 -e fb "$file" -rm "$file" +upshot |