local-bin/bin/scrot.sh
2020-07-01 13:42:14 +03:00

11 lines
178 B
Bash
Executable File

#!/bin/sh
dest="$HOME/Screenshots"
# Check to make sure destination directory exists
if [ -d "$dest" ]; then
mkdir -p "$dest"
fi
scrot "%Y%m%d_$wx$h.png" $@ -e "mv $f $dest"