conkyrc
# Use Xft?
use_xft yes
font snap-7
#xftfont snap.se:size=6.5
#xftfont Freemono:size=7:bold
#xftfont cure.se:size=8
xftfont Freesans:pixelsize=9
xftalpha 1
text_buffer_size 2048
# Update interval in seconds
update_interval 1
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 175
maximum_width 200
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_margin 5
# border width
border_width 1
# Default colors and also border colors
default_color e0e0e0
#default_shade_color white
#default_outline_color black
#own_window_colour 000000
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 35
gap_y 175
# Subtract file system buffers from used memory?
no_buffers yes
# set to yes if you want all text to be in uppercase
uppercase no
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
TEXT
FECHA ${hr 1}
${alignc 18}${font Freesans:pixelsize=23:bold}${time %H:%M}${font}
${alignc}${font Freesans:pixelsize=10}${time %a %d %b %Y}${font}
SISTEMA ${hr 1}
${alignc}Ubuntu Linux 9.10 Karmic Koala
Kernel ${alignr}${kernel}
CPU1 ${freq_g 1} GHz ${alignr}${cpu cpu1}% ${cpubar cpu1 4,60}
CPU2 ${freq_g 2} GHz ${alignr}${cpu cpu2}% ${cpubar cpu2 4,60}
RAM ${alignr}$memperc% ${membar 4,60}
SWAP ${alignr}$swapperc% ${swapbar 4,60}
DISCO ${hr 1}
Root ${alignr}${fs_used_perc /}% ${fs_bar 4,60 /}
Home ${alignr}${fs_used_perc /home/cristian}% ${fs_bar 4,60 /home/cristian}
RED ${hr 1}
Up ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 4,60 000000 000000}
Down ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 4,60 000000 000000}
Local Ip ${alignr}${addr eth1}
Public Ip ${alignr}${execi 1 ~/.conky/ip.sh}
ip.sh
#!/bin/bash
# bacardi 07
wget http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'