16 lines
311 B
Bash
16 lines
311 B
Bash
|
#!/usr/bin/env sh
|
||
|
set -e
|
||
|
|
||
|
SCRIPT=$(readlink -f "$0")
|
||
|
SCRIPTPATH=$(dirname "$SCRIPT")
|
||
|
|
||
|
SCREENSHOT_DIR="$HOME/pictures/screenshots"
|
||
|
|
||
|
screenshotFile=$($SCRIPTPATH/take-screenshot.sh)
|
||
|
|
||
|
mv "$screenshotFile" "$SCREENSHOT_DIR"
|
||
|
rm -rf "$(dirname $screenshotFile)"
|
||
|
|
||
|
printf "$SCREENSHOT_DIR/$(basename $screenshotFile)"
|
||
|
|