diff --git a/bin/screenshot b/bin/screenshot index a03c077..394e02c 100755 --- a/bin/screenshot +++ b/bin/screenshot @@ -1,12 +1,10 @@ #!/bin/sh -YEAR=$(date +%Y) -MONTH_DAY=$(date +%m-%d) -FILENAME=$(date +%R:%S) -mkdir -p ~/pictures/$YEAR/$MONTH_DAY +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/$YEAR/$MONTH_DAY/"$FILENAME".png - notify-send "Screenshot taken" "saved to ~/pictures/$YEAR/$MONTH_DAY/$FILENAME.png" -i : + import -window root ~/pictures/screenshots/"$FILENAME".png + notify-send "Screenshot taken" "saved to ~/pictures/screenshots/$FILENAME.png" -i : fi