Conky – my default performance meter

My conky version is configured like this on my Ubuntu 14.04.X

Conky 1.9.0 compiled Wed Feb 19 18:44:57 UTC 2014 for Linux 3.2.0-37-generic (x86_64)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

 X11:
 * Xdamage extension
 * XDBE (double buffer extension)
 * Xft
 * ARGB visual

 Music detection:
 * Audacious
 * MPD
 * MOC
 * XMMS2

 General:
 * math
 * hddtemp
 * portmon
 * Curl
 * RSS
 * Weather (METAR)
 * Weather (XOAP)
 * wireless
 * support for IBM/Lenovo notebooks
 * nvidia
 * eve-online
 * config-output
 * Imlib2
 * apcupsd
 * iostats
 * ncurses
 * Lua

 Lua bindings:
 * Cairo
 * Imlib2

my auto-config:

# Conkyrc by devnull @ leibrock.eu
# worked on a Thinkpad T410/T440 as well on Asus V60 and Acer 5005

alignment top_left
background yes # Usage ?
use_xft yes # Use Xft?
xftfont Terminus:size=8
xftalpha 1 # Text alpha when using Xft
update_interval 2.0 # Update interval in seconds
total_run_times 0
own_window true # pre-requisite for use of nautilus and conky
own_window_type normal # override means no use of windowmanager - use of conky and nautilus
own_window_transparent no
own_window_hints decorated,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
#window.border_inner_margin
#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.

TEXT
${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-unsupported}

${offset 10}${color orange}CPU1: ${color }${cpu cpu1}% ${color slate blue}CPU3: ${color }${cpu cpu3}%
${offset 10}${color green}CPU2: ${color }${cpu cpu2}% ${color slate red}CPU4: ${color }${cpu cpu4}%
#${offset 10}${color slate blue}CPU3: ${alignr} ${color }${cpu cpu3}%
#${offset 10}${color slate 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}

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 /data} Total: ${fs_size /data}
${color}${fs_bar 3 /data}
#${color grey}Backup: $alignr ${color slate grey}Used: ${fs_used /backup} Total: ${fs_size /backup}
#${color}${fs_bar 3 /backup}

${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 ~/.conky/publicip.sh}

${offset 10}${color slate grey}APT: ${color }${execi 28800 ~/.conky/checkUpdates.bash} Packages ready for update!

Before anyone is asking – here are the scripts 😉

publicip.sh

#!/bin/bash
# show your own public IP
wget http://www.myipaddress.com/ -q -O - | grep -Eo '<[[:digit:]]{1,3}(.[[:digit:]]{1,3}){3}>'

checkUpdates.bash

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

Leave a Reply

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