I am trying to display the output of a python file on the login screen of Ubuntu 22.04. For example, say I had a file startup.py that simply prints my IP address. I would like to display that printed output on the login screen so that the user does not have to log in to see their IP address.
My guess is that I have to create a bash script that runs a python3 command. Then, open Ubuntu's "Startup Applications" app and create a new startup application that runs the created bash script.
Not sure how to display it on the login screen without entering a password.
Thanks in advance for your help!