#!/bin/sh while /bin/true; do #if json quote list exist if [ -f "./quotes.txt" ]; then CurrentQuote=$(shuf -n 1 ./quotes.txt) #echo ${CurrentQuote} kdialog --passivepopup "${CurrentQuote}" else echo "file does not exist!" fi sleep 300 done