dotfiles-remastered/.local/share/scripts/share-screenshot.sh
2020-07-12 18:27:45 +02:00

15 lines
263 B
Bash
Executable File

#!/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"