Skip navigation

Harald Markus Wirth


Page Content:

Conky Monitor Desklet

Screenshot

conky is a small tool that displays system information on the desktop. Install the software with

sudo apt-get install conky

then create a config file ~/.conkyrc with the following content:

background yes
update_interval 1.0
total_run_times 0

own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 220
maximum_width 220
alignment top_right

use_xft yes
xftfont lucida:size=8
xftalpha 0.1
uppercase no
override_utf8_locale yes
use_spacer no

default_color orange
default_shade_color 333333
default_outline_color 00ff00

draw_shades yes
draw_outline no
draw_borders no

no_buffers yes
cpu_avg_samples 2
net_avg_samples 2

TEXT
CPU Core 1: Clock: ${freq 1}MHz
${cpu cpu1}% ${color yellow}${cpubar cpu1}${color}

CPU Core 2: Clock: ${freq 2}MHz
${cpu cpu2}% ${color yellow}${cpubar cpu2}${color}

Total CPU Usage Graph
${color yellow}${cpugraph 000000 ff0000}$color

TARGET NAME    ${alignr}         CPU %        MEM%
${color yellow}${top name 1} ${alignr}${top pid 1}   ${top cpu 1}    ${top mem 1}
${color yellow}${top name 2} ${alignr}${top pid 2}   ${top cpu 2}    ${top mem 2}
${color yellow}${top name 3} ${alignr}${top pid 3}   ${top cpu 3}    ${top mem 3}
${color yellow}${top name 4} ${alignr}${top pid 4}   ${top cpu 4}    ${top mem 4}
${color yellow}${top name 5} ${alignr}${top pid 5}   ${top cpu 5}    ${top mem 5}

${color}RAM ${color yellow}$mem ${color}/ $memmax${color yellow}
$memperc% ${color yellow}${membar}${color}

/dev/sda5 ${color yellow}${fs_used /media/Daten} ${color}/ ${fs_size /media/Daten}
${color yellow}${fs_used_perc /media/Daten}% ${fs_bar /media/Daten}${color}

/dev/sda6 ${color yellow}${fs_used /} ${color}/ ${fs_size /}
${color yellow}${fs_used_perc /}% ${fs_bar /}${color}

/dev/sdg1 ${color yellow}${fs_used /media/harald-hd1} ${color}/ ${fs_size /media/harald-hd1}
${color yellow}${fs_used_perc /media/harald-hd1}% ${fs_bar /media/harald-hd1}${color}

HDD I/O usage Graph: ${color yellow} $diskio
${color yellow}${diskiograph 0000ff 00ff00}$color

LOGGING ${hr 2}
${color yellow}${execi 30 tail -n5 /var/log/messages | fold -w50}$color

NETWORK ${hr 2}
Local IP: ${color yellow}${addr eth0}

Down: ${color yellow}${downspeed eth0} k/s ${color}${alignr}Up: ${color yellow}${upspeed eth0} k/s$color
${color yellow}${downspeedgraph eth0 20,100 000000 ff0000} ${alignr}${upspeedgraph eth0 20,100 000000 00ff00}$color
Total: ${color yellow}${totaldown eth0}${color} ${alignr}Total: ${color yellow}${totalup eth0}$color

UPTIME: ${color yellow}$uptime

You will probably have to adjust the settings file, man conky will explain how to make your own config. Test your config by starting the progam with:

conky &

Stop it with:

killall conky

Once you are happy with your config, create an autostart by selecting System / Preferences / Startup Applications, click "Add" and enter "conky" as command. Give it a nice description, done.



Content Management:

μCMS α1.6