2020-07-12 16:27:45 +00:00
|
|
|
#!/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"
|
|
|
|
|
2020-07-12 16:31:34 +00:00
|
|
|
notify-send -u low "Upload complete"
|
|
|
|
|