local-bin/bin/scrot.sh
2020-07-02 00:34:07 +03:00

12 lines
250 B
Bash
Executable File

#!/bin/sh
dest="$HOME/Screenshots"
# Check to make sure destination directory exists
if [ -d "$dest" ]; then
mkdir -p "$dest"
fi
# Unable to use $dest and still need to figure out why
scrot '%Y%m%d-%H.%M.%S_$wx$h.png' $@ -e 'mv $f ~/Screenshots'