The Perfect Conky Setup

Posted by Rahul on March 8, 2010 | 57 Comments

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.

Posted in Gentoo, Linux, Open Source | Tagged , , , , |

57 responses to “The Perfect Conky Setup”

  1. Jose says:

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

    • rahulthewall says:

      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 says:

    Post the details to your theme, my nig.

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

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

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

  6. Ubuntu says:

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


    • rahulthewall says:

      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 says:

    Very nice wallpaper. Would you mind sharing it?

  8. 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!

  9. 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. 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 says:

    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 says:

      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 says:

        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 says:

          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 says:

      Man, did you get it to work?

  13. babbio says:

    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. […] 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 says:

    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 says:

      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. […] P.S. For those of you who are interested in the conky configuration, have a look see here. […]

  17. SG says:

    Hi Guys,

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

  18. SG says:

    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?


  19. Steffen says:

    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 says:

    I got it working with rhythmbox 🙂

  21. KTLawrence says:

    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 says:

    A good combination of Conky and wallpapers…

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

  24. linuxfever says:

    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 says:

    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.

  26. HawaiiMike says:

    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 says:

      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 says:

    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 says:

    thank you very much

  29. conualfy says:

    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 says:

    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. 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. […] P.S. For those of you who are interested in the conky configuration, have a look see here. […]

  33. Crunchy says:

    An “image not found” is also worth a thousand words.

  34. […] cool conky configurations. For my conky configuration, I used conky-colors and some parts of segfault’s configuration. You can download the entire confirmation file along with the modified scripts from […]

Leave a Reply to sara Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.