#!/bin/sh

opt=`printf "%s\n%s" "full" "select" | dmenu -p "How to screenshot:"`

default="/home/kev/Pictures"
dir=`echo ${default} | dmenu -p "Path:"`

filename=`date '+%Y-%m-%dT%H%M%S_scrot.png'`

if test $opt = "full"; then
  scrot -F ${dir}/${filename}
else
  scrot -s -F ${dir}/${filename}
fi

herbe "Screenshot saved to ${dir}/${filename}" &
