I wrote a python code for getting random text into a .txt file. Now I want to send this random text into notification area via 'notify-send' command. How do we do that?
We can always call notify-send as a subprocess, e.g like that:
Alternatively we could also install python-notify and call the notification through that: