Show me my system performance with conky

Today I would like to show you my conky system-performance meter. I do use it since the old Ubuntu 13.xx days and I still love it. On top I am very well aware that my conky settings are very basic and show just my needs 😉

How to install conky:

# sudo apt-get install aptitude python-keyring ttf-ubuntu-font-family hddtemp curl lm-sensors conky-all
# apt-get install conky apcupsd audacious xmms2 mpd moc

Customize it to your needs by using the following pages


My conky – config file looks like this:

# Conkyrc by Ubuntix @ 
# work on Thinkpad T410 with Xubuntu 14.04 / 14.10 / 15.04 / 15.10

alignment top_right
background yes 
use_xft yes 
xftfont Terminus:size=8
xftalpha 1 
update_interval 2.0 
total_run_times 0
own_window true
own_window_type desktop
own_window_transparent no
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes # Use double buffering (reduces flicker, may not work for everyone)
maximum_width 300
draw_shades no
draw_outline no
draw_borders no
stippled_borders 8
#border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 1
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 4
net_avg_samples 5
override_utf8_locale no
use_spacer right # Add spaces to keep things from moving about?  This only affects certain objects.

${offset 10}${color slate grey}${time %Z}:${color }${time %a, %e %B %G %H:%M:%S}
${offset 10}${color slate grey}UpTime: ${color }$uptime ${color slate grey}Hostname: ${color } $nodename
${offset 10}${color slate grey}Kernel:${color }$kernel ($machine)
${offset 10}${color slate grey}CPU:${color } $cpu% | ${freq} MHz | ${color red} ${platform thinkpad_hwmon temp 1}C${color } | ${platform thinkpad_hwmon fan 1} RPM
${offset 10}${color slate grey}Batt:${color }${battery_percent BAT0}% ${offset 10} ${color slate grey}Power:${color }${acpiacadapter}
${offset 10}${color slate grey}Vol: ${color }${volume 1}

${offset 10}${color orange}CPU1: ${color }${cpu cpu1}%           ${color slate blue}CPU3: ${color }${cpu cpu3}%
${offset 10}${color green}CPU2: ${color }${cpu cpu2}%           ${color red}CPU4: ${color }${cpu cpu4}%
#${offset 10}${color slate blue}CPU3: ${alignr} ${color }${cpu cpu3}%
#${offset 10}${color red}CPU4: ${alignr} ${color }${cpu cpu4}%
${offset 10}${cpugraph 20,200 000055 ff0000}
Name $alignr PID     CPU%
${color red} ${top name 1} $alignr ${top pid 1} ${top cpu 1} $color
 ${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}

Memory usage:$alignr PID	MEM% ${color }
${color #ddaa00} ${top_mem name 1} $alignr ${top_mem pid 1} ${top_mem mem 1}$color
 ${top_mem name 2} $alignr ${top_mem pid 2} ${top_mem mem 2}
 ${top_mem name 3} $alignr ${top_mem pid 3} ${top_mem mem 3}
 ${top_mem name 4} $alignr ${top_mem pid 4} ${top_mem mem 4}

${color slate grey}MEM:  ${color } $memperc% $mem/$memmax
${membar 3}
${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax
${swapbar 3,100}
${color grey}ROOT: $alignr ${color slate grey}Used: ${fs_used /} Total: ${fs_size /}
${color}${fs_bar 3 /}
${color grey}DATA: $alignr ${color slate grey}Used: ${fs_used /blah} Total: ${fs_size /blah}
${color}${fs_bar 3 /blah}

${offset 10}IP : eth0 ${color grey} ${addr eth0} ${color slate grey} wlan0: ${color grey} ${addr wlan0}
${offset 10}${color slate grey}NET: ${color}Up: ${color }${upspeed eth0} k/s ${color}            Down: ${color }${downspeed eth0}k/s
${offset 10}${upspeedgraph eth0 20,130 000000 ffffff} ${downspeedgraph eth0 20,130 000000 ffffff}

${color grey}Your Public IP: ${color green}${execi 1800}
${color slate grey}APT: ${color }${execi 28800 checkUpdates.bash} Packages ready for update!

You might be interested in and checkUpdates.bash as well – so here is what I do.

How to check out your public IP-Address:

# show me my own public IP address

wget -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'

How to check if updates are available:

/usr/bin/aptitude search "~U" | /usr/bin/wc -l

Have Fun!

Leave a Reply

Your email address will not be published. Required fields are marked *