Conky System Monitor
March 17, 2012 — 21:32

Author: silver  Category: linux  Comments: 0

Conky System Monitor

# apt-get install conky

/etc/gnome/conky.sh

#!/bin/sh
(sleep 10 && conky) &
# chmod +x /etc/gnome/conky.sh

Add to System > Preferences > Startup Applications (GNOME):

Name: Conky
Command: /etc/gnome/conky.sh
Comment: Conky System Monitor

/etc/conky/conky.cfg

# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see .
#

#alignment top_right
alignment middle_right
#background yes
background no
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_fgraph_borders yes
draw_outline no
draw_shades no
use_xft yes
#xftfont DejaVu Sans Mono:size=12
xftfont DejaVu Sans Mono:size=8
gap_x 5
gap_y 60
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
#own_window_type desktop
#own_window_type normal
#own_window_type root
own_window_type override
stippled_borders 0
update_interval 1.0
uppercase no
double_buffer yes
use_spacer none
show_graph_scale no
show_graph_range no

TEXT
#${scroll 16 $nodename - $sysname $kernel on $machine | }
${color white}$nodename $sysname $machine
${color white}$kernel
${color grey}Uptime:$color $uptime
$hr
${color grey}Available RAM:${color white} $memmax
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 3}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 3}
$hr
#${color grey}Frequency (in MHz):$color $freq
#${color grey}Frequency (in GHz):$color $freq_g
#${cpugraph 000000 597DB2}
${color grey}CPU History:  ${color white}${cpugraph 20,0 0000ff 00ff00}
#Core 1: ${freq 1} MHz Temprature: $color ${exec sensors|grep ‘Core0′|awk ‘{print $3}’}
1: ${freq 1} MHz ${cpu cpu1}% ${color lightgrey}${cpubar 3 cpu1}$color
#Core 2: ${freq 2} MHz Temprature: $color ${exec sensors|grep ‘Core1′|awk ‘{print $3}’}
2: ${freq 2} MHz ${cpu cpu2}% ${color lightgrey}${cpubar 3 cpu2}$color
#Core 3: ${freq 3} MHz Temprature: $color ${exec sensors|grep ‘Core2′|awk ‘{print $3}’}
3: ${freq 3} MHz ${cpu cpu3}% ${color lightgrey}${cpubar 3 cpu3}$color
#Core 4: ${freq 4} MHz Temprature: $color ${exec sensors|grep ‘Core3′|awk ‘{print $3}’}
4: ${freq 4} MHz ${cpu cpu4}% ${color lightgrey}${cpubar 3 cpu4}$color
#${color grey}CPU Usage:$color $cpu% ${cpubar 3}
$hr
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
#${color grey}Name              PID   CPU%   MEM%
#${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
#${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
#${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
#${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
$alignc${color}(top 5 sorted by CPU usage)
${color grey} NAME              PID    CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color lightgrey} ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
$alignc${color}(top 5 sorted by MEM usage)
#${color grey} NAME              PID    CPU%   MEM%
${color lightgrey} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${color lightgrey} ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color lightgrey} ${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
$hr
${color grey}File systems:
 / $color${fs_free /}/${fs_size /} ${fs_bar 3 /}
 sdb1 $color${fs_free /windows/sdb1}/${fs_size /windows/sdb1} ${fs_bar 3 /windows/sdb1}
 sdg1 $color${fs_free /windows/sdg1}/${fs_size /windows/sdg1} ${fs_bar 3 /windows/sdg1}
$hr
${color grey}Networking:
Down: $color${downspeed eth0} k/s Up: ${upspeed eth0} k/s
${downspeedgraph eth0 10,110 000000 ff0000} ${upspeedgraph eth0 10,110 000000 00ff00}$color
${color grey}Total: ${totaldown eth0} Total: ${totalup eth0}
#${color grey}Logging ${hr 2}$color
#$hr
#${color white}${execi 30 tail -n3 /var/log/messages | fold -w30}$color

Leave a Reply