get working kde popup

This commit is contained in:
haui 2026-01-30 13:59:20 +01:00
parent 5d20c07a54
commit 2c262a8770

View file

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