Conky on EeePC 1024×600

I’m currently testing Ubuntu Karmic Koala Alpha 5 on my 1000H which works pretty nice despite the usual alpha flaws. My .conkyrc consists of:

background yes
use_xft yes
xftfont Liberation Sans:size=7
xftalpha 0.8
update_interval 2.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 150 300
maximum_width 150
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color grey
default_shade_color black
default_outline_color black
alignment top_right
gap_x 5
gap_y 30
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT
${color 73564c}${font Liberation Sans:size=7}SYSTEM ${hr 2}${font}${color}
Time: ${alignr}${time %a %d.%m.%y } ${time %H:%M:%S}
Uptime:${alignr}$uptime
Kernel:${alignr}$kernel ($machine)
APT:${alignr}${execi 1800 aptitude search "~U" | wc -l | tail} updates
${cpu cpu0}% ${acpitemp}C $freq_g${alignr}${cpu cpu1}% ${acpitemp}C $freq_g
${cpugraph cpu0 15,70 73564c 73564c}${alignr}${cpugraph cpu1 15,70 73564c 73564c}
${color 5c5c5c}${membar 10,150}${color}
${voffset -12} RAM: $alignc $mem / $memmax ${alignr}$memperc%
${voffset 3}${color 5c5c5c}${swapbar 10,150}${color}
${voffset -12} Swap: $alignc $swap / $swapmax ${alignr}$swapperc%

${color 73564c}${font Liberation Sans:size=7}PROC CPU ${hr 2}${font}${color}
${top name 1} ${alignr}${top pid 1} ${top cpu 1}%
${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}%

${color 73564c}${font Liberation Sans:size=7}PROC MEM ${hr 2}${font}${color}
${top name 1} ${alignr}${top pid 1} ${top mem 1}%
${top name 2} ${alignr}${top pid 2} ${top mem 2}%
${top name 3} ${alignr}${top pid 3} ${top mem 3}%
${top name 4} ${alignr}${top pid 4} ${top mem 4}%

${color 73564c}${font Liberation Sans:size=7}NETWORK ${hr 2}${font}${color}
ISP: ${alignr}${execi 7200 ~/.conky/publicip.sh}

ra0: ${alignr}${addr ra0}
up ${upspeedf ra0} KiB/s${alignr}down ${downspeedf ra0} KiB/s
${upspeedgraph ra0 15,70 73564c 73564c}${alignr}${downspeedgraph ra0 15,70 73564c 73564c}
${color 5c5c5c}${wireless_link_bar 10 ra0}${color}
${voffset -12} WLAN: ${wireless_bitrate ra0} ${wireless_essid ra0}

${color 73564c}${font Liberation Sans:size=7}FILESYSTEM ${hr 2}${font}${color}
${voffset 3}${color 5c5c5c}${fs_bar 10,150 /}${color}
${voffset -12}${alignr}${fs_used /} / ${fs_size /} (${fs_free_perc /}% free)

${color 73564c}${font Liberation Sans:size=7}BATTERY ${hr 2}${font}${color}
${voffset 3}${color 5c5c5c}${battery_bar 10,150 BAT0}${color}
${voffset -12} ${alignr}${battery} ${battery_time}

${if_up ra0}${color 73564c}${font Liberation Sans:size=7}WEATHER ${hr 2}${font}${color}
${execi 1800 ~/.conky/weather.sh}${endif}

To make things fit you might need TTF-Liberation font installed. Furthermore two small scripts will be utilized and placed in a subfolder named .conky:

publicip.sh

#!/bin/bash
# show provider ip

wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\'

and weather.sh, which will need lynx installed in order to work and can be downloaded from here.

Colours are chosen to match Ubuntu Dusk theme with a dark wallpaper. The result should look like this.

Leave a Reply