The Perfect Conky Setup

Posted in Gentoo, Linux, Open Source by Rahul on March 8, 2010

EDIT: New Location for post and the blog.

A picture is worth a thousand words, have a look for yourself.

Conky on KDE4

So, how to get this goodness on your computer. Quite easy. Simply follow the following steps and you will have a similarly amazing desktop.

  • Firstly, install conkyForecast.
  • Gentoo users, go here.
  • Ubuntu users, head over to here.

Everyone now head over to and register yourself. Obtain your XML Partner IDย  and License key. Use the following command to search for your location code. Change Zurich to your city name.

$ curl

You can then get the location code from the output of the above command.

Next, copy the conkyForecast configuration file over to your home folder and fill in the Partner ID, Location Code and License Key.

cp /usr/share/conkyforecast/conkyForecast.config ~/.conkyForecast.config
vi ~/.conkyForecast.config

Download the conky configuration file from this link and save it to your home folder as .conkyrc.

Now download Conky Colors from gnome-look. Extract the archive and install all the fonts that are present in the package. Even though not all of the fonts are required for the setup (you can take a quick look at the conky configuration file to see which fonts are actually needed) the fonts are quite nice and having them on your computer won’t hurt at all.

Install conky if you have not already done so. IMP: This theme is tested with conky-1.8.0_rc2 so make sure you are using this or a newer release of conky. If you are on gnome please edit the configuration file to suit your needs (in particular change the location code to get the weather of the city you reside in) and then launch conky. If there are any particular hacks that are needed to integrate conky and gnome, my apologies for not being aware of them. Please feel free to add any such suggestions in the comments section, I will update the post with it.


If you are using KDE4, also install feh, an image loader which will help us to integrate conky seamlessly into the KDE environment. Now create this script, which we will use to launch conky.

$ nano
#! /bin/bash
conky -&
sleep 3
feh --bg-scale `grep 'wallpaper=' ~/.kde4/share/config/plasma-desktop-appletsrc | tail --bytes=+11`

The above script is supposed to read your wallpaper settings and use that to redraw the background of conky. For some reason, it is not working for me so I hard-coded my wallpaper in to the script.

$ nano
#! /bin/bash
conky &
sleep 3
feh --bg-scale /home/rahul/Pictures/Wallpapers/wall_abstract.jpg

Use whatever method suits you. Do remember to make the script executable.

chmod +x

Take a final look at conkyrc. Make sure that you have the right location ID for the weather. Use KDE system settings to add this script at startup and voila! We are done. We now have the perfect conky setup. For immediate testing, launch the script.


P.S. The music part will only work if you use MPD.

Tagged with: , , , ,

58 Responses

Subscribe to comments with RSS.

  1. Jose said, on March 8, 2010 at 7:39 pm

    What theme is that, and I assume it is KDE4, right?

    • rahulthewall said, on March 9, 2010 at 12:38 am

      Theme is Bespin (Widgets and Icons). Plasma theme is Tibanna. And yes, it is KDE4. If you are interested, I could write up another post with all the configs for this theme. ๐Ÿ™‚

  2. solo dolo said, on March 8, 2010 at 9:46 pm

    Post the details to your theme, my nig.

  3. Top Posts — said, on March 9, 2010 at 1:37 am

    […] The Perfect Conky Setup A picture is worth a thousand words, have a look for yourself. […]

  4. wordpress template said, on March 9, 2010 at 4:10 pm

    nice share brother…thanks a lot.. bookmark this page.. ^_^

  5. Frokostordning said, on March 10, 2010 at 2:07 am

    Well… that’s amazing but honestly i have a hard time seeing it… wonder what others have to say..

  6. Ubuntu said, on March 13, 2010 at 2:32 pm

    nice guide, but any clues why I am getting:
    “Conky: MPD error: problems getting a response from “localhost” on port 6600 : Connection refused” ?!


    • rahulthewall said, on March 13, 2010 at 5:59 pm

      MPD should be running – if you do not have MPD running or do not use MPD comment out the music section of the conkyrc file. The provided config uses MPD to get the current playing track info.

  7. globbe said, on March 19, 2010 at 2:51 am

    Very nice wallpaper. Would you mind sharing it?

  8. CafDoummamofE said, on March 22, 2010 at 7:58 am

    i very adore all your posting choice, very useful,
    don’t quit and also keep writing as it just good worth to look through it,
    impatient to look into more and more of your own posts, thankx!

    • rahulthewall said, on March 23, 2010 at 2:25 pm

      Thanks, I post as soon as I get time to write something worthwhile. ๐Ÿ™‚

  9. PiterJankovich said, on March 30, 2010 at 9:34 pm

    My name is Piter Jankovich. oOnly want to tell, that your blog is really cool
    And want to ask you: is this blog your hobby?
    P.S. Sorry for my bad english

  10. […] The Perfect Conky Setup ยซ Muses (tags: conky linux configuration tutorial) […]

  11. Documentary Films said, on April 8, 2010 at 2:18 pm

    I’ve used Mac for my system for years but the more they jail their new products the more disturbed I become. Have been following the Linux community for years as well as running Ubuntu in virtualisation for a hobby.

    I love the infinite possibilities with Linux, and just took possession of my new laptop today which will be converted permanently to Linux tomorrow morning… no partition! Beginning a permanent transition!

    Going for Ubuntu as a start as this is what I already know the best, will be back in the morning to proceed with this great starting point on a new journey ๐Ÿ™‚

  12. Thomas said, on April 8, 2010 at 6:59 pm

    I’m completely new to using Kubuntu, so I’m having extreme difficulty running this. Is there a simple source code for the setup you have on the right with the calendar, music, weather, etc?

    • rahulthewall said, on April 8, 2010 at 10:35 pm

      That is all from conky. Just follow the instructions on the post step by step, you will get there. If you do run into a problem, please post the step on which you got stuck, and I will help you. ๐Ÿ™‚

      • Thomas said, on April 9, 2010 at 6:29 am

        All I get is the default ugly black box when I launch Conky, and it will hide itself when i click anywhere on the desktop. I want to be a Ubuntu user :/

      • rahulthewall said, on April 9, 2010 at 12:36 pm

        This means that you have not configured conky. Read the post again – you have to download the conky configuration file from the link that I have provided (the file is hosted on gnome-look). Follow the guide (as mentioned in the post) on how to configure conky and you should be good to go.

    • rahulthewall said, on April 11, 2010 at 10:42 pm

      Man, did you get it to work?

  13. babbio said, on April 25, 2010 at 1:30 pm

    I love your conky setup but also you theme and icons theme…can u telm what icons are u using and which theme???

    thank u

  14. The Perfect KDE4 Setup « Muses said, on May 12, 2010 at 4:40 pm

    […] For those of you who are interested in the conky configuration, have a look see here. Possibly related posts: (automatically generated)The way KDE4 should lookGirls’ VanityHello […]

  15. SG said, on May 23, 2010 at 6:51 am

    Hey Rahul,

    Nice setup. I had one question. If you have a setup with a wallpaper switcher, which changes your desktop wallpaper every so often, then when it does change the wallpaper does the background behind the conky window also change instantaneously?

    The reason I am asking is that I use Desktop Drapes to change my wallpaper and when it does so conky takes some time before it realises that the wallpaper has changed and then it redraws its background to match the wallpaper.

    Do you know anyway if this can be done instantaneously?


    • rahulthewall said, on May 23, 2010 at 4:39 pm

      The only way I can see this being done is that you script the entire process. As soon as the wallpaper changes – reload conky. Other than that, I do not know of any other way to achieve what you want.

  16. The Perfect KDE4 Setup « Muses said, on May 25, 2010 at 11:23 am

    […] P.S. For those of you who are interested in the conky configuration, have a look see here. […]

  17. SG said, on May 25, 2010 at 11:58 pm

    Hi Guys,

    Anybody know how to escape the “$” in conky (in case you want to print the $ sign)?

  18. SG said, on May 26, 2010 at 5:50 am

    I got another question:

    Is it possible to run more than one conky config file using only one instance of conky? I have tried to search for the answer but I have not seen it done anywhere. All the places I have looked seem to require one conky instance for each conky config file. Am I missing something?


    • rahulthewall said, on May 26, 2010 at 11:17 pm

      I don’t think this is possible at all.

      • Ernesto said, on December 20, 2010 at 8:20 am

        yes it is possible!
        for the second instance you have to name the configuration file, for example:
        conky –config /usr/scripts/weather.conf –daemonize –quiet;

  19. Steffen said, on May 31, 2010 at 7:20 pm

    Got 3 Questions,

    1) Whats the piece of code so i can enable Rhtymbox to work instead of MPD
    2) The mnt/XP don’t work, i got Windows 7 and have tried to get it to display that, but with no luck.
    3) Can i get it to show HDD/CPU/GPU/System temperatures?

    Thank you.

  20. Engels said, on June 14, 2010 at 3:52 pm

    I got it working with rhythmbox ๐Ÿ™‚

  21. KTLawrence said, on June 14, 2010 at 11:06 pm

    Take your “snapshots” f’ing adware and stick it up your *** To view a screenshot even I’m getting these irritating popups. Doesn’t matter how fantastic your post is, with this software running.

    Massive THUMBS DOWN for you in Stumbleupon…..

  22. ramzport said, on June 29, 2010 at 8:33 pm

    A good combination of Conky and wallpapers…

  23. […] The Perfect Conky Setup […]

  24. linuxfever said, on November 7, 2010 at 6:18 pm

    Thanks for the instructions. I have run into a problem where sometimes opening a file on the desktop with “right-click->open with” will make conky disappear. I do not know if it makes a difference on not but I am using “folder view” activity for my desktop.

    Anyone else experiencing this?

  25. swwing17 said, on March 13, 2011 at 1:39 am

    How do I get ConkyForecast if I don’t have my own website or company? These are some of the required fields for the xml sign-up.

    • Rahul said, on March 13, 2011 at 9:01 am

      Just fill in some random stuff in those fields.

  26. HawaiiMike said, on May 12, 2011 at 7:13 pm

    This was great! Thanks for the writeup. I had just gotten conky and this was a great setup to get it looking and displaying nice. I do have one question:

    For this line:

    ${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Root:

    Instead of getting a pie chart I just get a number “7”. I’m on Ubuntu (Unity). Is there a font set I need to install to get right symbol?

    Also I changed the “own_window_type overide” to “own_window_type normal” so that the conky window wouldn’t always be ontop of regular apps and go to the background.

    Great setup and outline on how to get working!

    • HawaiiMike said, on May 12, 2011 at 7:36 pm

      Aha…figured that out too.. Found the font for pie chart and the pizza dude one, installed and now those are working ๐Ÿ˜€

      Only thing not working the the acpitemp command. Found a bug report for this and a reference to using: /sys/class/thermal/thermal_zone0/temp but haven’t figured out how to implement this.

  27. sara said, on March 21, 2012 at 2:17 pm

    Howdy! I simply would like to give you a big thumbs up for the excellent information you’ve got here on this post. I’ll be returning to your site for more soon.

  28. sara said, on March 21, 2012 at 2:18 pm

    thank you very much

  29. conualfy said, on June 17, 2012 at 7:31 pm

    I am trying to install conky with weather applet, but I don’t manage to get the ID’s (XOAP_PARTNER_ID, XOAP_LICENCE_KEY). Is there something I should know?

  30. conualfy said, on June 17, 2012 at 7:46 pm

    I got them from the url and it kind of works, but I would like to make conky widget a lot smaller. Does any of you know how to do that? Thanks!

  31. big brother betting said, on August 10, 2012 at 5:40 am

    Useful information. Lucky me I discovered your website by accident, and I’m surprised why this coincidence did not came about in advance! I bookmarked it.

  32. The Perfect KDE4 Setup | Segfault said, on January 13, 2013 at 10:57 pm

    […] P.S. For those of you who are interested in the conky configuration, have a look see here. […]

  33. energy shots said, on June 20, 2013 at 5:29 am

    Hello! I know this is somewhat off topic but I was wondering
    which blog platform are you using for this site?

    I’m getting tired of WordPress because I’ve had problems with
    hackers and I’m looking at options for another platform. I would be awesome if you could point me in the direction of a good platform.

  34. health said, on June 25, 2013 at 8:21 pm

    Aw, this was a really good post. Taking a few minutes and actual effort
    to create a good articleโ€ฆ but what can I sayโ€ฆ I put things off a whole lot and don’t seem to get anything done.

  35. Daniella said, on June 25, 2013 at 11:37 pm

    Amazing blog! Is your theme custom made or did you download
    it from somewhere? A design like yours with a few simple tweeks
    would really make my blog shine. Please let me know
    where you got your design. Many thanks

  36. winguard windows said, on September 25, 2014 at 4:02 am

    Wow! After all I got a webpage from where I know how to
    truly take helpful data regarding my study and knowledge.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: