A small reminder / notifier script for LL - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Development (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=7) +--- Forum: Scripting and Bash (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=32) +--- Thread: A small reminder / notifier script for LL (/showthread.php?tid=5509) |
A small reminder / notifier script for LL - kpanic - 08-02-2018 Hi folks, I was searching for a lightweight package to give me desktop notifications but then I noticed that all the necessary things are already in the LL installation, I just needed a small wrapper script to make things easier. The script is general purpose - it may be launched from basically any application and I use it to send messages to the desktop in case the processor, graphics card or hard-drives are close to their acceptable temperature maximum. Also, I use it in similar kinds of error-related situations and even send me a "time to go to bed" message, since I often forget it I don't know if you find this script useful, but here it is if you want to try it. The installation is as simple as copying the script to some directory and that's it basically - here are the detailed instructions for testing: 1. Copy the script to the clipboard, open an empty text file and paste it there. Save the file into your home directory and give it some name, for example "lite-remind" 2. Make the script executable: Code: chmod 755 ~/lite-remind 3. Create a a small text file, which has 3 short lines in it. The first line will be "Subject" of the message and the following two lines will be the message body - keep it short and simple. Save it as "msg.txt" into your home directory. 4. Try the script: Open the command line and command: Code: ~/lite-remind information ~/msg.txt 6. Try again, but replace the word 'information' with the word 'warning' or 'error' And here is the script: ( The ionice / nice parts from LL update notify script, thanks to [member=2]Jerry[/member] and the LL Team! ) Code: #!/bin/bash |