diff --git a/bin/screenshot b/bin/screenshot index cb79793..9a506fd 100755 --- a/bin/screenshot +++ b/bin/screenshot @@ -1,7 +1,8 @@ #!/bin/sh +FILENAME=$(date +%m-%d-%Y:%R:%S) if [[ $1 == 1 ]]; then - SELECTION=$(slop) - maim -g $SELECTION ~/pictures/$(date +%m-%d-%Y:%R:%S).png && notify-send "screenshot saved" -i : + import ~/pictures/$FILENAME.png else - maim ~/pictures/$(date +%m-%d-%Y:%R:%S).png && notify-send "screenshot saved" -i : + import -window root ~/pictures/$FILENAME.png fi +notify-send "screenshot taken" -i :