added share screenshot

This commit is contained in:
Niklas 2020-07-12 18:27:45 +02:00
parent 561b7e58cd
commit a0eb5541bd

View File

@ -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"