Skip to main content

Conky inspires

For quite sometime, I had been trying to make my ubuntu desktop more and more cool. First I stumbled upon macubuntu script. This is single no-hassle script that will make a Mac blush. And now, I found something more interesting - Conky. I was aware of conky earlier but not in the same incarnation. See the attached screenshot of my desktop. Isn't cool?



In case you are wondering, conky provides the nice looking sidebar on the desktop. This sidebar is heavily customizable in terms of what you fit in there. The desktop is inspired by this link. I did some customizations of my own and made a few things working. In doing so, I realized how easy it is build upon this nifty utility called conky.

Here is How:
Install the programs

 sudo apt-get install conky hddtemp lm-sensors python-feedparser

Download Scripts
Download the scripts that I used from here. Extract these files into ~/bin/conky directory. I generally keep my programs in ~/bin but feel free to customize the location. You would need to change in couple of files. So, watch for gotchas. I modified these files from the original link as some of the stuff was not working for me.

Scripts folder

.Conkyrc
Use the .conkyrc file from this zip and save it in your home directory as .conkyrc. Then you can run conky on the command line and should be able to get the basic conky stuff. Use ALT+F2 or terminal to fire conky.

Gmail
Change the username and password in .conkyrc file. Of course, do not do if you are concerned about security as the password in this file is plaintext.



Weather
This is the coolest part. In file "pogodynka.sh", look for "kod=USWI0254" and replace the USWI0254 part with your location code from weather.yahoo.com. Here is how .. head to weather.yahoo.com and search for your city. View the page source in html and look for your code in a string looking like below at the top of the page...

title="Franklin - Wisconsin Weather"  
href="http://weather.yahooapis.com/forecastrss?p=USWI0254&u=f">


Battery
My laptop required me to use "BAT1" instead of "BAT0". This change should be done in .conkyrc file.

Startup
Conky created unnecessary borders and remained on top of the windows when it is added to start on login. This is fixed by using this small script instead of directly calling conky binary. Add the script "conky_on_startup.sh" to session startup. This is done from the menu System --> Preferences --> Startup Programs.

That is it. Happy working.

Credits to below blog where from I took the base for my customization.
http://www.quicktweaks.com/2008/09/27/gmail-weather-beauty-right-on-your-ubuntu-desktop/

Comments

Popular posts from this blog

Connecting Ubuntu to Belkin N+ router USB drive

I recently purchased Belkin's N+ Wireless router. It worked great. Easy to set up and comes up LEDs that should help troubleshoot where the problem is. One of the other features is that it comes with a mount point for USB drive. This is good since it just provides an easy way to create a local NAS. You keep the drive in one place and access it from any of your laptops. Connecting it from Windows is easy. The usual \\belkin N+\Drive Name works. However, on linux, it did not work out of box. Looked like trouble with space in the name at first. But when I tried with IP address and it did work. I inferred space may not be the issue. I tried few suggestions from ... http://alittlecharm.blogspot.com/2009/06/connecting-ubuntu-to-belkin-n-usb-drive.html .. this did not work for me. Not as it is, at least. One reason i avoided to implement these suggestion as is that it required to install smb4k which would have also installed base kde and I wasn't in big favor of installing the whole t...

CoLinux - Setting it up on Windows XP

About this article I wanted to write an article thats quick and simple get colinux working on a Windows Host. I have skipped details that can be referred elsewhere in the spirit of keeping this article simple. The infrastructure used: Laptop: Toshiba Portege A 200 Host OS: Windows XP Guest OS: Ubuntu 8.04 (alpha 6) What is Colinux Colinux or Cooperative linux is an easy way to run Windows and Linux simultaneously on the same machine without the hassle of partitioning. More at ... http://colinux.org/ Preparing Setup Space Requirements Ensure you have ample space on your drive depending on how full you want to enjoy linux. Below numbers may help you decide if you have enough space to set up colinux: Bare minimum non-gui colinux: 2G Gnome/Kde based colinux: 5G For use as full time OS: 10G+ Software needed Qemu QEMU Accelerator Module Colinux Wincap Ubuntu or any linux distribution of your choice. I used ubuntu for this article. And you should download the .iso file f...

VirtualBox to KVM Migration

What: Virtualbox is a nice desktop virtualization software from erstwhile Sun Inc.  I used the personal use as well as open edition of it for quite sometime. However, could not resist the temptation to migrate to KVM, given its increasing roars in the virtualization space - both for desktop as well as server side. Not having a good tool to manage the VMs was a shortcoming of KVM for sometime. However, with Virt-Manger, this seems to have changed quite a lot. And so I started to migrate my windows image to KVM based. Source: Host OS: Ubuntu 10.04 Virtualization tool: VirtualBox Guest OS: Windows XP Sp3 Target:  Host OS: Ubuntu 10.04 Virtualization tool: KVM Guest OS: Windows XP Sp3 objective is migrate this guest image to KVM so that the migration is seemless. How: Pre-planning: Shut off windows XP gracefully. It probably might make a difference. But in anycase, will be a good idea rather than land up in surprise You need reasonable space. nearly 3 times of ...