get working kde popup
This commit is contained in:
parent
5d20c07a54
commit
2c262a8770
1 changed files with 6 additions and 2 deletions
8
main.sh
8
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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue