Simple conky system monitor configuration
By Leo Gaggl
Just a quick note on install and configuration of Conky.
Installation
sudo apt-get install conky conky-all hddtemp curl lm-sensors<br></br>sudo chmod u+s /usr/sbin/hddtemp<br></br>sudo sensors-detect
vim ~/.conkyrc
This is the content of my config file.
use_xft yes<br></br>xftfont Ubuntu Condensed:size=9<br></br>xftalpha 0.8<br></br>override_utf8_locale yes<br></br>update_interval 5.0<br></br>total_run_times 0<br></br>own_window yes<br></br>own_window_transparent no<br></br>own_window_argb_visual yes<br></br>own_window_argb_value 155<br></br>own_window_colour 081100<br></br>own_window_type normal<br></br>own_window_class conky-lgaggl<br></br>own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager<br></br>#background yes<br></br>#out_to_console no<br></br>double_buffer yes<br></br>#max_user_text 32768<br></br>minimum_size 300<br></br>draw_shades no<br></br>draw_outline no<br></br>draw_borders no<br></br>draw_graph_borders yes<br></br>default_shade_color black<br></br>default_outline_color white<br></br>default_bar_size 150 5<br></br>default_gauge_size 20 20<br></br>imlib_cache_size 0<br></br>draw_shades no<br></br>alignment middle_right<br></br>gap_x 15<br></br>gap_y 15<br></br>border_inner_margin 10<br></br>no_buffers yes<br></br>uppercase no<br></br>cpu_avg_samples 2<br></br>override_utf8_locale no<br></br>default_color ffffff<br></br>color1 ffffff<br></br>color2 cccccc<br></br>color3 000000<br></br>color4 FFAA00
TEXT<br></br>${font UbuntuBold:bold:size=11}${color4}Info ${color2}${hr 2}${font}<br></br>${color1}Date ${alignr}${color2}${time %a,}${color}${time %e %B %G}<br></br>${color1}Time ${alignr}${color}${time %T}
${font UbuntuBold:bold:size=11}${color4}System ${color2}${hr 2}${font}<br></br>${color1}Hostname ${alignr}${color}${nodename}<br></br>${color1}${sysname} ${alignr}${color}${kernel}-${machine}<br></br>${color1}CPU ${alignr}${color}${freq_g}GHz<br></br>${color1}Loadaverage ${alignr}${color}${loadavg 1} ${loadavg 2} ${loadavg 3}<br></br>${color1}Uptime ${alignr}${color}${uptime}<br></br>${color1}Cpu Temperature ${alignr}${color}${acpitemp}C
${font UbuntuBold:bold:size=11}${color4}Processors ${color2}${hr 2}${font}<br></br>${color1}Core 1 ${alignr}${color}${cpu cpu1}% ${cpubar cpu1}<br></br>${color1}Core 2 ${alignr}${color}${cpu cpu2}% ${cpubar cpu2}<br></br>${color1}Core 3 ${alignr}${color}${cpu cpu3}% ${cpubar cpu3}<br></br>${color1}Core 4 ${alignr}${color}${cpu cpu4}% ${cpubar cpu4}
${font UbuntuBold:bold:size=11}${color4}Memory ${color2}${hr 2}${font}
${color1}Memory ${color}${alignr}${memeasyfree} / ${memmax}
${color1}Currently ${color}${alignr}${memperc}% ${membar}
${font UbuntuBold:bold:size=11}${color4}Filesystem ${color2}${hr 2}${font}
${color1}/ ${color}${alignc}${fs_used /} / ${fs_size /} ${color}${alignr}${fs_free_perc /} %
${color}${fs_bar 5,300 /}
${font UbuntuBold:bold:size=11}${color4}Networking ${color2}${hr 2}${font}
${if\_existing /proc/net/route wlan0}${color1}Ip ${color}${alignr}${addr wlan0}
${color1}AP ${color}${alignr}${wireless\_essid wlan0}
${color1}Signal ${color}${alignr}${wireless\_link\_qual\_perc wlan0}${wireless\_link\_bar 10,100 wlan0}
${color1}Download ${alignr}${color}${downspeed wlan0}${downspeedgraph wlan0 10,100}
${color1}Upload ${alignr}${color}${upspeed wlan0}${upspeedgraph wlan0 10,100}
${color1}Total Down/Up ${alignr}${color}${totaldown wlan0}${color1}/${color}${totalup wlan0}
${else}${if\_existing /proc/net/route eth0}${color1}Ip ${color}${alignr}${addr eth0}
${color1}Download ${alignr}${color}${downspeed eth0}${downspeedgraph eth0 10,100}
${color1}Upload ${alignr}${color}${upspeed eth0}${upspeedgraph eth0 10,100}
${color1}Total Down/Up ${alignr}${color}${totaldown eth0}${color1}/${color}${totalup eth0}${endif}${endif}
${font UbuntuBold:bold:size=11}${color4}Weather ${color2}${hr 2}${font}
${color1}Temperature ${alignr}${color}${weather https://tgftp.nws.noaa.gov/data/observations/metar/stations/ YPAD temperature} C
${color1}Humidity ${alignr}${color}${weather https://tgftp.nws.noaa.gov/data/observations/metar/stations/ YPAD humidity} %
${color1}Weather ${alignr}${color}${weather https://tgftp.nws.noaa.gov/data/observations/metar/stations/ YPAD weather}
<br></br>
```${font UbuntuBold:bold:size=11}${color4}Top Processes ${color2}${hr 2}${font}${color1}${top name 1} ${alignr}${color}${top cpu 1} ${top mem 1}${color1}${top name 2} ${alignr}${color}${top cpu 2} ${top mem 2}${color1}${top name 3} ${alignr}${color}${top cpu 3} ${top mem 3}${color1}${top name 4} ${alignr}${color}${top cpu 4} ${top mem 4}${color1}${top name 5} ${alignr}${color}${top cpu 5} ${top mem 5}`
Note: if you want to use this config file you want to at least change the METAR code (YPAD in my case) with one closer to you – see http://www.rap.ucar.edu/weather/surface/stations.txt.
Autostart config
vim ~/.config/autostart/conky.desktop
This is the content of my config file.
[Desktop Entry]<br></br>Type=Application<br></br>Exec=/usr/bin/conky<br></br>Hidden=false<br></br>NoDisplay=false<br></br>X-GNOME-Autostart-enabled=true<br></br>Name[en_AU]=Conky<br></br>Name=Conky<br></br>Comment[en_AU]=Conky System Monitor<br></br>Comment=Conky System Monitor
Edits
2015-06-13: Update for Ubuntu 15.04 – startup location
2019-06-09: Update for Ubuntu 19.04 – weather data location