diff --git a/main.sh b/main.sh index 6e62af4..f8c7a5d 100755 --- a/main.sh +++ b/main.sh @@ -1,8 +1,12 @@ #!/bin/sh - +while /bin/true; do #if json quote list exist if [ -f "./quotes.txt" ]; then -shuf -n 1 ./quotes.txt +CurrentQuote=$(shuf -n 1 ./quotes.txt) +#echo ${CurrentQuote} +kdialog --passivepopup "${CurrentQuote}" else echo "file does not exist!" fi +sleep 300 +done