I love a quote. Now I want every time my computer starts, the quote to be on the screen, like a welcome note.Is there any way to do that in ubuntu 13.04?
I love a quote. Now I want every time my computer starts, the quote to be on the screen, like a welcome note.Is there any way to do that in ubuntu 13.04?
You could pop up a simple zenity dialog on login with the content of your quote.
Put the following code into a script then add that script to your "Startup Applications"
zenity --info --text=$quote --title="A Quote"
fortune
Install the fortune-mod
package (sudo apt-get install fortune-mod
) then you can integrate the fortune
command into your script like this:
zenity --info --text="$(fortune literature)" --title="A Quote" --no-wrap
You can just add that command to your Startup Applications without putting it in a script.
The literature
option is used to specify that you want a quote specifically, otherwise it will give you jokes, riddles and other 'fortunes'.
Note: some of the fortunes are quite long, use --text="$(fortune -s literature)"
instead of --text="$(fortune literature)"
in the command above to print short quotes only.
Screenshot below:
Fortune also has many different options to customize the type of quotes you'll get (literature, riddles, etc.) See the fortune man page for more information. To use those options, just change fortune
in the command above to fortune SOME_OPTION
.
Credits to FreudianSlip for the fortune
command