dotfiles/.bin/OLD/KAPUTT/shotwell_notify.sh
2024-02-14 07:55:58 +01:00

16 lines
450 B
Bash
Executable File

#!/bin/sh
while true;
do
FILES=$(ls -1 | grep -v shotwell | grep -vi xmp | grep -vi jpg | wc -l | awk '{ print $1 }')
THUMBS=$(ls -1 | grep shotwell | grep -vi "xmp\|jpg\|jpeg" | wc -l | awk '{ print $1 }')
OUT="T: $THUMBS | F: $FILES"
printf "$OUT\n"
if [ "$FILES" == "$THUMBS" ];
then notify-send "Shotwell Import Finished: ${PWD##*/} $OUT"
printf "${PWD##*/}" | xclip -r
exit 0
fi
sleep 5
done