From 1df5ce85ba736f9844cfdabfec9167c3d424c33b Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 29 Jun 2016 11:58:25 +0200 Subject: upshot: Use maim, send notification, don't open a terminal Signed-off-by: Florian Pritz --- upshot | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'upshot') diff --git a/upshot b/upshot index ff45c51..43201aa 100755 --- a/upshot +++ b/upshot @@ -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" -- cgit v1.2.3-24-g4f1b