local-bin/bin/scrot.sh

13 lines
252 B
Bash
Raw Normal View History

2020-07-01 13:42:14 +03:00
#!/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'
2020-11-10 01:04:20 +02:00