Adding H.M.S. to help reduce file overwriting

This commit is contained in:
Siina Mashek 2020-07-02 00:34:07 +03:00
parent 61e92b22e1
commit 61f6c5d47a

View file

@ -7,4 +7,5 @@ if [ -d "$dest" ]; then
mkdir -p "$dest"
fi
scrot "%Y%m%d_$wx$h.png" $@ -e "mv $f $dest"
# 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'