1 2 3 4 5
#!/bin/sh DIR=/tmp/screenshot mkdir -p $DIR && gnome-screenshot --area --file $DIR/$(date +"%Y-%m-%d.%H:%M:%S.png")