diff options
Diffstat (limited to 'upshot')
-rwxr-xr-x | upshot | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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" |