From a0eb5541bdca6bef843ad6138d70f7b069d97212 Mon Sep 17 00:00:00 2001 From: Niklas Date: Sun, 12 Jul 2020 18:27:45 +0200 Subject: [PATCH] added share screenshot --- .local/share/scripts/share-screenshot.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 .local/share/scripts/share-screenshot.sh diff --git a/.local/share/scripts/share-screenshot.sh b/.local/share/scripts/share-screenshot.sh new file mode 100755 index 0000000..aae9ff9 --- /dev/null +++ b/.local/share/scripts/share-screenshot.sh @@ -0,0 +1,14 @@ +#!/usr/bin/env sh +# required packages: +# - xclicp + +set -e + +SCRIPT=$(readlink -f "$0") +SCRIPTPATH=$(dirname "$SCRIPT") + +$SCRIPTPATH/take-selected-screenshot.sh \ + | $SCRIPTPATH/nc-share-file.sh \ + | awk '{print $1"/preview"}' \ + | xclip -i -selection "clipboard" +