2020-06-30 22:21:39 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
set -e
|
|
|
|
|
|
|
|
SCRIPT=$(readlink -f "$0")
|
|
|
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
|
|
|
|
|
|
|
SCREENSHOT_DIR="$HOME/pictures/screenshots"
|
|
|
|
|
|
|
|
screenshotFile=$($SCRIPTPATH/take-screenshot.sh)
|
|
|
|
|
2020-09-29 13:46:36 +00:00
|
|
|
mkdir -p "$SCREENSHOT_DIR"
|
|
|
|
|
2020-06-30 22:21:39 +00:00
|
|
|
mv "$screenshotFile" "$SCREENSHOT_DIR"
|
|
|
|
rm -rf "$(dirname $screenshotFile)"
|
|
|
|
|
2020-07-14 16:58:37 +00:00
|
|
|
printf "%s\n" "$SCREENSHOT_DIR/$(basename $screenshotFile)"
|
2020-06-30 22:21:39 +00:00
|
|
|
|