Conky! It’s awesome!!

I was talking about conky about being a light-weight system monitor but it is much more than that! It makes you feel much more cool than you actually are. Believe me, I know how it feels;-)

So this is my first Conky and I admit it is not entirely mine. It is basically a cut-and-paste job with some tweaking of other good Conkies. I ‘stole’ from so many places that I actually do not remember where from but three people who need to be credited are
Kaivalagi and VastOne from Ubuntuforum and Kevin Purdy of lifehacker for an old post on Conkies.

#uncomment the following line if you want to show the name of the sender

#print ‘ ${color2}%s’ % atom.entries[i].author

if len(atom.entries) > maxlen:

print ‘ ${color}more…’

if __name__ == “__main__”:

f = auth() # Do auth and then get the feed

readmail(f, int(maxlen)) # Let the feed be chewed by feedparser

Also make sure you install feedparser: sudo apt-get install python-feedparser

Now create a directory in your home directory called .conky and save the two conky scripts there.

Important: Make sure you also have a copy of the conkyForecast.config on your home directory with all your details on it and also enter your details in the conkyForecast.config in /usr/share/conkyforecast/conkyForecast.config.

Now, test the two conky scripts by calling them, from terminal. (Assuming you have Conky or else install by sudo apt-get install conky)

conky -c /home/HOMEDIRECTORYNAME/.conky/.conkyrc_system &

conky -c /home/HOMEDIRECTORYNAME/.conky/.conkyrc_misc

Make sure everything works. Now write a bash script as below:

#!/bin/bash

conky -c /home/senthil/.conky/.conkyrc_system &

conky -c /home/senthil/.conky/.conkyrc_misc

And save it as conky_start.sh

Make it executable:

>chmod u+x ./conky_start.sh

Enter it on to your $PATH variable:

>PATH=$PATH:/home/HOMEDIRECTORYNAME/conky_start.sh

Now, make an alias entry by opening your .bashrc file in your home directory. Inside the .bashrc file add the following line:

alias conky_start=’conky_start.sh’

And save the file.

Now entering conky_start inside the terminal should start the conky scripts. If you want you can make the script run at start-up by adding to start-up applications.