Conky on ubuntu 11.04, (Natty Narwhal) netbook

This month, natty narwhal is going to hit the shelves officially, but i grew a little impatient and grabbed a copy anyhow. Its functional for the most parts.. The dropbox needed a little help to get set up (hey- it hasnt been updated for natty yet…)

This version brings a desktop to the Netbook version after, what i  remember as two steps of no desktop versions.  And with a desktop – comes opportunity.. Without further ado… I present to you : My Netbook Conky

First of all, you need to install conky. After you initially run it, you can edit ~/.conkyrc by using:

gedit ~/.conkyrc

Paste in the following code for the right column conky.

#modified by Unhackmee -
background no
font Sans:size=10
xftfont Sans:size=10
use_xft yes
xftalpha 0.9
update_interval 3.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250 5
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color grey90
default_shade_color white
default_outline_color green
alignment top_right
gap_x 12
gap_y 35
no_buffers yes
uppercase no
use_spacer right
# orange
color3 FC8820
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
text_buffer_size 2048
${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}System Information${font}  ${hr}${color}
Name: $alignr$nodename ($machine)
Kernel: $alignr$sysname/$kernel
Uptime: $alignr$uptime
Battery: ${color white}${battery_percent BAT1}%${color} - ${battery_bar BAT1}
 ${alignr}${battery_time BAT1}
Root:${fs_free /} / ${fs_size /} - ${fs_bar 8 /}

${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Processor Details${font}  ${hr}${color}
CPU: ${alignr}${freq} MHz
Processes: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg

${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}System Memory ${font}  ${hr}${color}
CPU1: ${cpu cpu1}% ${tab 5} ${cpubar 8 cpu1}
CPU2: ${cpu cpu2}% ${tab 5} ${cpubar 8 cpu2}
 RAM: $memperc% ${tab 5} ${membar 8}
Swap: $swapperc% ${tab 5} ${swapbar 8}

${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}CPU Loads${font}  ${hr}${color}
${top name 1}$alignr${top cpu 1}${top mem 1}
${top name 2}$alignr${top cpu 2}${top mem 2}
${top name 3}$alignr${top cpu 3}${top mem 3}

${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}WIFI Network${font}  ${hr}${color}
WIFI bitrate: ${wireless_bitrate wlan0} Mbps
WIFI quality: ${wireless_link_bar wlan0}
IP Adress:    ${addr wlan0}
Down ${downspeed wlan0} k/s ${alignr}Up ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,107} ${alignr}${upspeedgraph wlan0 25,107}
Total ${totaldown wlan0} ${alignr}Total ${totalup wlan0}

Before we go on, you need to install conkyforecast from its ppa in launchpad:

Read how to set it up at ubuntuforums. After you have a working setup, continue on.

So the second one, you can name .conky1 and put it in the home folder too.. (ofcourse if you dont like the name, be sure to change the startup script too :P). The weather is set to show Maldives, but ofcourse you should change it to your location before saving.

# conky configuration
# edited by Mark Buck (Kaivalagi)
# modified later-on by unhackmee -
background yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=9
xftalpha 0.8
update_interval 1.0
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop
# Required to be true if you still want to store files on desktop.
own_window yes
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 300 0
maximum_width 275
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
draw_graph_borders yes

# Stippled borders?
stippled_borders 8

# border margins
border_margin 0

# border width
border_width 0

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

# own window options
own_window        yes
own_window_transparent    yes
own_window_type        override
own_window_hints    undecorated,below,sticky,skip_taskbar,skip_pager

alignment top_left

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 465
gap_y 255

# Subtract file system buffers from used memory?
no_buffers yes
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right

# colours
color1 white
# light blue
color2 6892C6
# orange
color3 FC8820
# green
color4 78BF39
# red
color5 CC0000

text_buffer_size 2048

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument

# stuff after 'TEXT' will be formatted on screen

${offset -5}${color3}${font StyleBats:style=CleanCut:size=12}q ${voffset -2}${font Bitstream Vera Sans Mono:style=Bold:size=11}Weather${font}  ${hr}${color1}
${execpi 1800 conkyForecast --location=MVXX0001 --template=/usr/share/conkyforecast/example/conkyForecast.template}

and now open up Compiz (power button>>System Settings>>Search) , go to Window Decorations, and in the “Shadow windows” text box write:

 any & !(class=Conky)

Now when you start conky, if the right column shows up correctly (dont worry about the other one yet) its time to add the thing to startups.
* Make a new file called ~/ or something of the short.. and put :

sleep 3 &&
conky -d -c /home/unhackmee/.conky1 &
sleep 10 &&
conky -d -c /home/unhackmee/.conkyrc &

Now go and add that to startup applications in ubuntu (remember chmod +x )  😀

Note>> Please remember that this is a script made for a netbook and therefore adjusted to fit on the smaller screen.. All other screensizes should expect to have some experimenting to do.
away with ye!


About unhackmee

typical teenager rumbling about everything not worth your time... Mostly about things that would waste precious seconds from your life, stolen- and never to be returned. WARNING: Discontinue use and seek immediate medical attention should rashes or itchiness occur.

Posted on April 7, 2011, in Linux. Bookmark the permalink. 10 Comments.

  1. Hi, I have everything working fine so far, except for the final step the .sh file seems to do nothing both conky -d -c /home/unhackmee/.conky1 & and conky -d -c /home/unhackmee/.conkyrc & work fine but when i run nothing happens. Any ideas?

  2. If the seperate commands work, then the lastscript should infact be a breeze.
    I hope you remembered to make the script executable:

    Chmod x /home/here/there/

    That should just about do it. Now to test the script, drop to the script’s dir:

    cd /home/here/there/

    And execute as below: (the leading dot is important)


  3. thanks man for the effort.

  4. Thanks man.
    But do you have a version for Notebooks?

    • I don’t really have a configuration designed to fit a notebook screen (no notebooks here). But, it shouldn’t be too hard to adjust the config for a notebook . After all, conky is by design, virtually limitless.

      Possibly, @Suhaib Nabiel may have merged the two configurations for use on a bigger screen. Maybe he would let you borrow it. So that you can avoid the starting steps.

      Hint: if you want to experiment, “killall conky” would be your friend in the terminal. As would “gedit ~/.conkyrc”. Just take my first config and add the lines after “TEXT” like shown here: and you should be off to a good start.

      Oh, yeah, feel more than free to copy for your own.

  5. Thanks man.
    I did everything. However in the pic you can see that I do not have the weather panel + there is some kind of a code “&nbsp” you can notice it directly after the system , processor, and wifi headings ? any Idea on how to remove it ?
    p.s: I am using 11.04

    • Please upload your current config to so that i could take a look at it. Though, if you’d rather do it yourself, i could only suggest that you look for a simple &nbsp within the headings of the config file. It is quite possible that some html has creeped into your config as you copied and pasted from here. (hint: use the upper-right buttons when you expand the sourcecode)

      For the weather to function correctly, you need to have conkyforecast installed. Also, you need to have an API key from . The API key is unique for each user and so, I am sorry but it is highly unlikely that you can avoid signing up to if you want it to work.

      • Ok done. I removed the text “&nbps” from the script !! btw What does the do ? I am using alt + F2 to start conky and then I added the name of the app “conky” in the “add startup program” field and everything is working fine without the sh file :-/

      • serves two purposes:

        1. Launch two conky instances automatically.
        2. Delay fetching the forecast till the system is up and network is working.

        Now since you have merged the two configs, I don’t think it would problematic.

  1. Pingback: Installed Conky on Ubuntu « Daniel's Ubuntu

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: