From ad4e4a3f6d09324286fdf3374c3802eabc844792 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 3 Dec 2017 20:48:56 +0100 Subject: upshot: Allow to force notification mode Signed-off-by: Florian Pritz --- upshot | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/upshot b/upshot index 43201aa..65c841a 100755 --- a/upshot +++ b/upshot @@ -5,11 +5,11 @@ set -e file=$(mktemp --tmpdir screenshot-XXXX.png) maim -s "$file" #gimp "$file" -if tty &>/dev/null; then +if tty &>/dev/null && ! [[ $1 = "-n" ]]; then fb "$file" else #urxvt -geometry 79x1 -e - systemd-cat fb "$file" - notify-send -t 5000 "Screenshot upload complete" + output=$(fb "$file") + notify-send -t 5000 "Screenshot upload complete: $output" fi rm "$file" -- cgit v1.2.3-24-g4f1b