I want to periodically run a script (with cron, for example) which will parse received notifications (last N notifications), and, if a notification contains the text I need, the script should run an external command.
How can I accomplish that in KDE Plasma 5?
For example:
using notify-send
command to create and send notifications, I can send 2 notifications with:
notify-send test12345
notify-send "VERY_IMPORTANT_MSG!!!!!!"
Now there are 2 unread notification in the system tray. I want to parse them, and if they contain VERY_IMPORTANT_MSG!!!!
, some external command should run.
I know about the notification feature Configure notification events and actions
-> System Services
-> Configure events
-> Run command
but I can't use it since I need to parse various notification from multiple sources.