Installing conky in Xubuntu


First of all we can take a look to what it is available in our repositories:

➜  ~  apt-cache search conky
conky-all-dbg - highly configurable system monitor (all features enabled - debug)
conky - highly configurable system monitor (transitional package)
conky-all - highly configurable system monitor (all features enabled)
conky-cli - highly configurable system monitor (basic version)
conky-cli-dbg - highly configurable system monitor (basic version - debug)
conky-std - highly configurable system monitor (default version)
conky-std-dbg - highly configurable system monitor (default version - debug)

So, having that we need to install conky-all:

sudo apt-get install conky-all


conky uses a file called .conkyrc as configuration file. This file needs to be into the user’s home folder. As the this one is our first conky I provide you a simple version of the content of this configuration file (.conkyrc). So, go to the home folder:

cd ~

Create the .configrc file:

touch .conkyrc

Open it with some tool:

mousepad .conkyrc

And fill with this content:

# A simple and comprehensive conky sccript
# Based on default .conkyrc
# ---

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer right
use_xft no

# Update interval in seconds
update_interval 2.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders
stippled_borders 3

# border margins
border_inner_margin 9
border_outer_margin 0

# border width
border_width 10

# Default colors and also border colors (grey90: #e5e5e5)
default_color grey

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 10

# All the content After 'TEXT' will be formatted on screen

${color orange}SYSTEM ${hr 2}$color
$sysname $kernel on $nodename ($machine)

${color orange}CPU ${hr 2}$color
${freq}MHz Load: ${loadavg} Temp: ${acpitemp}

CPU 1: ${alignr}${cpubar cpu0 8,120}
CPU 2: ${alignr}${cpubar cpu1 8,120}
CPU 3: ${alignr}${cpubar cpu2 8,120}
CPU 4: ${alignr}${cpubar cpu3 8,120}

NAME             PID     CPU%   MEM%
${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

${color orange}MEMORY / DISK ${hr 2}$color
RAM: $memperc% ${membar 6}$color
Swap: $swapperc% ${swapbar 6}$color

Root: ${fs_free_perc /}% ${fs_bar 6 /}$color
Home: ${fs_free_perc /home/USERNAME}% ${fs_bar 6 /home/USERNAME}

Take a look to the code we paste into .conkyrc. The last name has, two time, the tag USERNAME, take a while and change it to your user name.

Now the conky must be functional. If you want to see the final result, one a terminal and type:


conkyas a startup application

Now that we have a functional conky, we want it to be run at login process. For that we will create a file to start conky:

touch ~/.conky_start

This file needs to be runnable, so we give to it this mode:

chmod +x ~/.conky_start

And we write in it:

sleep 30 && conky ;

Now, through the menu, we mus access to “Settings”. In that panel we must look for “Session and Startup”:

In the “Session and Startup” panel we move to the third tab, called “Application Autostart”.

In this tab, we press the button “Add” and, in the new dialog, we fill the filed “Name” with “conky” and the field “Command” with /home/USERNAME/ Again, change the tag USERNAME by your user name. And press “OK”.

Close all the windows. Now have a functional conky that will start after the login process.


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: