Perfect configuration for Conky

Okay, this one’s about some eye candy. One thing I regretted while parting my ways with Ubuntu was the good looking themes and applets it had. But no more, as they say, ‘thou shall seek, thou shall find’ and I’ve found whatever I needed in Arch Linux. After configuring everything, from kernel modules to gnome, I finally came to peace with the last missing piece in my puzzle – the Conky system monitor. Configuring it to suit the looks of my desktop was a hell of a task but I finally succeeded thanks to numerous tutorials on the internet and needless to say, google. For starters, Conky is just a system monitor that can be configured to monitor everything from your CPU’s temperature to internet speed to processes and hard disk space. You can even configure it to monitor your email or some RSS feeds you like. And the best part, is the looks, okay, take a look :

You like it ? You can have it for yourself. If you’re in Arch Linux like me, just do

pacman -S conky

For any other distro, use the appropriate command. For Ubuntu,

sudo apt-get install conky

For Fedora,

sudo yum install conky

Finally, when you’ve done that. Its time to configure it. Below, I’m posting the perfect configuration which should run out-of-the-box in your system with no dependencies. Copy the below code to a file named “.conkyrc” and put it in your home folder. Final path should be : ~/.conkyrc

Once you’ve done that. Simply type “conky &” in the shell 🙂

Conky configuration :

# Conky configuration  by Abhishek Shrivastava []
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

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

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

# Minimum size of text area
minimum_size 150 0

#maximum_width 150

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 5

# border width
border_width 1

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

# 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
# same thing as passing -x at command line
gap_x 40
gap_y 40

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
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 none


${voffset 2}${font OpenLogos:size=16}u${font}   Kernel:  ${alignr}${kernel}
${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime}
${font StyleBats:size=16}A${font}   CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}A${font}   CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
${font Webdings:size=16}~${font}  Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}
${font StyleBats:size=16}q${font}   Uptime: ${alignr}${uptime}

${color white}Cpu: ${color white}${alignr}$cpu%
${color white}${cpugraph 20,170 white white}

${color white}Ram:  ${color white}$memperc%  ${alignr 4}$mem/$memmax
${color white}${membar 3,170}

${color white}Disk IO:${color white} ${alignr 4}$diskio
${color white}${diskiograph 20,170 white white}
${color white}Root:  ${color white}${alignr 4}${fs_free /}
${color white}${fs_bar 3,170 /}

${if_existing /proc/net/route ppp0}
${voffset 4}${font PizzaDude Bullets:size=14}O${font}${color white}Up:${color white}${alignr 4}${upspeed ppp0}k/s
${color white}${upspeedgraph ppp0 20,170 white white}
${voffset 4}${font PizzaDude Bullets:size=14}N${font}${color white}Total:${color white} ${totalup ppp0}
${voffset 4}${font PizzaDude Bullets:size=14}U${font}${color white}Down:${color white}${alignr 4}${downspeed ppp0}k/s
${color white}${downspeedgraph ppp0 20,170 white white}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}${color white}Total: ${color white}${totaldown ppp0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font}${color white}Local Ip: ${color white}${addr ppp0}
${else}${if_existing /proc/net/route eth0}
${voffset 4}${font PizzaDude Bullets:size=14}O${font}${color 776241}Up:${color 707070}${alignr 4}${upspeed eth0}k/s
${color 3E3629}${upspeedgraph eth0 20,85 3E3629 776241}
${voffset 4}${font PizzaDude Bullets:size=14}N${color 776241}Total:${color 707070} ${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}U${color 776241}Down:${color 707070}${alignr 4}${downspeed eth0}k/s
${color 3E3629}${downspeedgraph eth0 20,85 3E3629 776241}
${voffset 4}${font PizzaDude Bullets:size=14}T${color 776241}Total: ${color 707070}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${color white}Local Ip: ${color white}${addr eth0}

NAME $alignr PID    CPU
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
${top name 6} $alignr ${top pid 6} ${top cpu 6}

Hope you liked it and appreciated it. You’re free to change the above configuration to suit your needs and distribute it. 🙂

3 comments on “Perfect configuration for Conky

    • Sorry for the late reply, I’ve been busy. The configuration should work out-of-the-box, if the fonts are screwed up its probably because something you missed out while installing your Arch. I’ll suggest you to install the Ubuntu common fonts. You can find all information about it in the “Fonts” page of ArchWiki.

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