#!/bin/sh
FILENAME=$(date +%m-%d-%Y_%R:%S)
mkdir -p ~/pictures/screenshots
if [ $1 = 1 ]; then
  import clipboard:
  notify-send "Screenshot taken" "copied to clipboard" -i :
else
  import -window root ~/pictures/screenshots/"$FILENAME".png
  notify-send "Screenshot taken" "saved to ~/pictures/screenshots/$FILENAME.png" -i :
fi
