Install Conky in openSUSE 12.2 Gnome 3.6

I will not go to any details what conky is, but in short “Conky is a program which can display arbitrary information”. Read more about conky here.

In this specific article i will show you how to install conky and use different themes to customize it in openSUSE 12.2 Gnome 3.6. You can try it in other desktops and distributions too.
1st of all lets install conky, become root in terminal by su – and type:

zypper in conky conky-cairo

We are all set to use conky now. By default you will see very basic information while running with minimal theme and customization. We will try this conky theme . As you can see in the screenshot, it’s conky lua. I have did slight modifications for my taste, will post the code if some one want to use the modified version.

Conky with conky lua theme

Download it from the above link. Extract the archive and you will see more archives inside, extract which one suites your taste. Inside every archive there will be these files: conkyrc, conky_ring.lua and image for each distro.
Create a folder in home [/home/username/.conky] dir named .conky and copy the conky_ring.lua file and the image. Rename conkyrc to .conkyrc and copy it to home dir. Change username to your username. We are almost there. Now if you run it in terminal by:

conky -c ~/.conkyrc

You will probably not see anything in Gnome shell 3.6, because of the own_window_type. If that’s the case, open .conkyrc file and look for own_window_type, change override to normal and restart conky. Also make sure that own_window is set to yes.

How to start it upon system boot:
1st of save the following code as .start_conky in your home dir:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”true” lines=”40″ tab_size=”4″]
sleep 10
conky -d -c ~/.conkyrc

It will fire up conky after 10 seconds of delay.

Conky with start script

Now fire up terminal OR Alt+F2, type:


Click add button, give it any name you like, write a comment if you wish to and then click on browse button, go to your home dir and search for .start_conky, Use Ctrl+H to show hidden files. Click Add and done.

If you like to use my modified version. Just open .conkyrc file and paste the following code:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”90″ tab_size=”4″]
# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

temperature_unit fahrenheit

# Window specifications #

own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 250 250
maximum_width 250

alignment tr
gap_x 45
gap_y 55

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius

default_color FFFFFF

# Lua Load  #
lua_load ~/.conky/clock_rings.lua
lua_draw_hook_pre clock_rings

${voffset 8}${color FF6600}${font caviar dreams:size=16}${time %A}${font}${voffset -8}${alignr 50}${color FFFFFF}${font caviar dreams:size=38}${time %e}${font}
${color FFFFFF}${voffset -30}${color FFFFFF}${font caviar dreams:size=18}${time %b}${font}${voffset -3} ${color FFFFFF}${font caviar dreams:size=20}${time %Y}${font}${color FF6600}${hr}
${voffset 140}${font caviar dreams:size=10}${alignr}HOME${font}
${font caviar dreams:size=12}${color FFFFFF}${alignr}${weather WSAP temperature temperature 30} °C${font}

${color FFFFFF}${goto 25}${voffset 35}${cpu cpu0}%
${color FF6600}${goto 25}CPU
${color FFFFFF}${goto 50}${voffset 23}${memperc}%
${color FF6600}${goto 50}RAM
${color FFFFFF}${goto 75}${voffset 23}${swapperc}%
${color FF6600}${goto 75}Swap
${color FFFFFF}${goto 100}${voffset 25}${fs_used_perc /}%
${color FF6600}${goto 100}Disk
${color FFFFFF}${goto 125}${voffset 25}${downspeed wlan0}
${color FFFFFF}${goto 125}${upspeed wlan0}
${color FF6600}${goto 125}Net

${color FF6600}${font caviar dreams:size=9}Linux: ${color FFFFFF}${kernel} kernel
${color FF6600}${font caviar dreams:size=9}Uptime: ${color FFFFFF}${uptime_short}
${color FF6600}${font caviar dreams:size=9}Processes: ${color FFFFFF}${processes}
${color FF6600}${font caviar dreams:size=9}Running: ${color FFFFFF}${running_processes}

One more thing, you would wish to use your city for weather, go to this site and choose your country under International Weather Conditions , get the code and paste in .conkyrc file this line:

[cc lang=”bash” escaped=”true” nowrap=”false” noborder=”true” line_numbers=”false” lines=”90″ tab_size=”4″]
${font caviar dreams:size=12}${color FFFFFF}${alignr}${weather WSAP temperature temperature 30} °C${font}

Weather for conky

I also tried gotham theme, it’s clean and simple.
Setting it up is the same like conky lua. Download it from the link above and extract. There will be only one file .conkyrc. If you wana try it, stop conky {In terminal:[pidof conky, kill pidof]}, rename the conky lua .conkyrc file to some thing else and copy gotham .conkyrc file to home dir. Start it in terminal with: conky -c ~/.conkyrc and you will see the changes.

So that’s it for now, have fun with openSUSE and Conky. 🙂