Screenshot - 07172014 - 11:27:13 PM

Hacking XScreensaver to show what you want.

This article was featured on Hack A Day .When i was scrolling around the Xscreensaver browsing screen in Manjaro can be done with any Linux distributions. Well how to install it you may ask well commonly everyone uses Debian based linux so here it is

sudo apt-get install xscreensaver-data-extra xscreensaver-gl-extra
This may not work out of the box in Ubuntu Read this to figure out.

ok now that is done now lets program our screensaver how? what we don’t know is that a screen saver named Apple2 is actually an simulation of a apple2 screen that means you can run a program via this i will demonstrate by running python with the screen saver. Execute and see

/usr/lib/xscreensaver/apple2 -text -program python2

Saw that, it is just awesome isn’t it so lets make something interesting first off i,m just going to write a program in python to show the whether in my country Sri Lanka Colombo . well first find out your whether code like this

 To get weather location code, you simply follow these steps:
1. Visit Yahoo! Weather and search your city/town.
2. Select the appropriate result then go to that page.
3. Find the RSS image link and click it.
4. Find a series of letters and numbers at the end of the page’s URL. For example, this is New York’s:
5. The highlighted code above is the location code.


save this file “” with your replaced whether code to “CEX0001″ to /home/{your username}

and to check out run this command to check your new scrrensaver.

/usr/lib/xscreensaver/apple2 -text -program “python2 /home/{Your username}/”

Now it is ready to be used as a screen saver now go to your XScreensaver settings  -> select Apple2 -> Settings -> Advance Settings and change Command line to

apple2 -root -text -program “python2 /home/{Your username}/”

Now everything is done, have any questions tweet me @UKaveenR or leave a comment.