Im looking for a configurable nice Solution pop-up desktop notification.. Im trying notify-send command with plasma desktop, but i cant read the whole text, I dont see scrolls-bars with the square notification popup.
What Im doing is to read a txt random file within a folder, a send output text to notifications system desktop. im using crontab.hourly to schedule the random file to show.
The script Im using, to send randoms text's files to notifications system:
Code: Select all
ETQ1=/home/user/ETIQUETAS/
ETQ2=/home/user/ETIQUETAS/TODOS/
DIR=/home/user/ETIQUETAS/FICHAS/.random
cd $DIR && cd ..
rm -rf .random && mkdir .random
cd $DIR
find $ETQ1 -maxdepth 1 -name "*.odt" -exec ln -s {} \;
find $ETQ2 -maxdepth 1 -name "*.odt" -exec ln -s {} \;
if [[ -d "${DIR}" ]]
then
# Runs ls on the given dir, and dumps the output into a matrix,
# it uses the new lines character as a field delimiter, as explained above.
file_matrix=($(ls "${DIR}"))
num_files=${#file_matrix[*]}
# This is the command you want to run on a random file.
# Change "ls -l" by anything you want, it's just an example.
#ls -s "${DIR}/${file_matrix[$((RANDOM%num_files))]}"
clear
echo "${file_matrix[$((RANDOM%num_files))]}"
soffice --headless --convert-to txt "${file_matrix[$((RANDOM%num_files))]}"
fi
notify-send -i kalarm -u critical -t 120000 "$(cat *.txt)"
exit 0
Do you happen to know any other way to get this?, perhaps another third notification app (I was thinking about Mint pop-up notification app or other one i can set full size) to send the message to??