jospalau /.conky

# ElSanto Conky configuracion
#
# Un script de conky, configurado para su uso en
# Debian o Ubuntu.
# Si deseas conocer mas sobre conky por favor visita
# el website oficial http://conky.sf.net

#----------------------------
# Configurando la ventana
#----------------------------

# Ejecutarlo en su propia ventana en lugar de usar el escritorio (requerido con nautilus)
# Con valor no funciona bien en awesome, xmonad y openbox. Si pongo no, el valor de own_window_hints
# y own_window_ẗype no importa
# Valor yes para que funcione bien con gnome y los siguientes valores para own_window_hints y own_window_type:
# own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 
# own_window_type normal
own_window yes

# Si pusiste yes en own_window, entonces estos hints del gestor de ventana puede ser tilizado
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Si pusiste own_window en yes, tu puedes definir el tipo de ventana: normal, desktop o override
own_window_type normal

# Use pseudo transparency con own_window?
own_window_transparent yes

# Si pusiste no en own_window_transparent, tu puedes poner
# el color del background con la siguiente variable
#own_window_colour hotpink

# set to yes if you want Conky to be forked in the background
background no

# Usar doble buffering (reduce el parpadeo, a lo mejor no trabaje para todos)
double_buffer yes

#---------------------------------------
# Borde de la ventana
#---------------------------------------
# Dibujar sombras?
draw_shades no

# Draw outlines?
draw_outline no

# Dibujar bordes alrededor del texto
draw_borders no

# Draw bordes alrededor del grafico
draw_graph_borders yes

# Stippled borders?
stippled_borders 10

# Margenes del borde
border_margin 4

# ancho del borde
border_width 1

#--------------------------------------------
# Definiendo los colores por defecto y
# tambien los colores del borde
# -------------------------------------------

# Default colors and also border colors
default_color white
default_shade_color #fffefd
default_outline_color white


#--------------------------------------------
# Formateando el texto
#--------------------------------------------

# pon yes si quieres que todo el text este en minuscula
uppercase no

# Deseas usar fuente Xft?
use_xft yes

# Definiendo el tipo de fuente y el tamaño (solo si xft esta activado)
xftfont Bitstream Vera Sans Mono:size=8

# Transparencia del texto con Xft
xftalpha 0.8

# Force UTF8? nota el suporte UTF8 requiere XFT
override_utf8_locale yes

# X font cuando Xft esta deshabilitado, tu puedes escoger con el programa xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*

# Alineamiento del texto, otros posibles valores estan comentado
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none

# Separación entre los bordes de la pantalla y el texto
# same thing as passing -x at command line
gap_x 5
gap_y 35

# Minima size del area del texto
#minimum_size 280 5

#-----------------------------------
# Configurando Conky
# ----------------------------------

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Intervalo de actualizacion (segundos)
update_interval 1.0

# 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

# Subtract file system buffers from used memory?
no_buffers yes

# Print everything to console?
# out_to_console no

# mail spool
mail_spool $MAIL

# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer no

# Allow each port monitor to track at most this many connections (if 0 or not set, default is 256)
# max_port_monitor_connections 256

# Maximum number of special things, e.g. fonts, offsets, aligns, etc.
# max_specials 512

# Maximum size of buffer for user text, i.e. below TEXT line.
# max_user_text 16384

# Anchura máxima
maximum_width 540

# Si deseas conocer mas sobre las variables por favor visita
# http://conky.sourceforge.net/variables.html

# Todo lo que aparece partir de 'TEXT' se mostrara en la pantalla

TEXT
Sistema:
${color 729FCF}${time %H:%M:%S %b %d %G} 
${color 729FCF}$sysname $kernel on $machine corriendo en ${nodename}
${color 729FCF}Uptime:$color $uptime
${color 729FCF}CORE0${color white} ${hwmon 1 temp 1}°C $alignr${freq_dyn_g cpu0}Ghz - ${cpu cpu0}%
${color orange}${cpugraph cpu0 729fcf 000000}
${color 729FCF}CORE1${color white} ${hwmon 2 temp 1}°C $alignr${freq_dyn_g cpu1}Ghz - ${cpu cpu1}%
${color orange}${cpugraph cpu1 729fcf 000000}
${color 729FCF}CORE2${color white} ${hwmon 3 temp 1}°C $alignr${freq_dyn_g cpu2}Ghz - ${cpu cpu2}%
${color orange}${cpugraph cpu2 729fcf 000000}
${color 729FCF}CORE3${color white} ${hwmon 4 temp 1}°C  $alignr${freq_dyn_g cpu3}Ghz - ${cpu cpu3}%
${color orange}${cpugraph cpu3 729fcf 000000}
${color 729FCF}Procesos:$color $processes ${color orange}${color 729FCF}Ejecutándose: $color$running_processes
${color 729FCF}RAM Usado:$color $mem/$memmax - ${color orange}$memperc% ${membar}
${color 729FCF}Swap Usado:$color $swap/$swapmax - ${color orange}$swapperc% ${swapbar}
${color orange}Red:
${color 729FCF}Dirección IP: ${color}${addr br0}
${color 729FCF}Down:${color} ${downspeed red} k/s${color} 
${color orange}${downspeedgraph red 000000 729fcf}
${color 729FCF}Up:${color} ${upspeed red} k/s
${color orange}${upspeedgraph red 000000 729fcf}
${color orange}Conexiones:
${color 729FCF}Conexiones entrantes: ${color}${tcp_portmon 1 32767 count} ${color 729FCF}Conexiones salientes: ${color white}${tcp_portmon 32768 61000 count} ${alignr}${color 729FCF} Total: ${color}${tcp_portmon 1 65535 count}
${color 729FCF}Conexiones entrantes ${alignr} Servicio local/Puerto${color}
 ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
 ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
 ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
 ${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
 ${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${color 729FCF}Conexiones salientes ${alignr} Servicio remoto/Puerto${color}
 ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
 ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
 ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
 ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
 ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
 ${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
 ${tcp_portmon 32768 61000 rhost 6} ${alignr} ${tcp_portmon 32768 61000 rservice 6}
 ${tcp_portmon 32768 61000 rhost 7} ${alignr} ${tcp_portmon 32768 61000 rservice 7}
 ${tcp_portmon 32768 61000 rhost 8} ${alignr} ${tcp_portmon 32768 61000 rservice 8}
${color orange}Espacio libre:
${color 729FCF}/ ${color}${fs_used /}/${fs_size /}${alignr}${color orange}${fs_bar 5,325 /}
${if_mounted /boot}${color 729FCF}/boot ${color}${fs_used /boot}/${fs_size /boot}${alignr}${color orange}${fs_bar 5,325 /boot}$else${color 729FCF}/boot ${color}no montado$endif
${color 729FCF}/home ${color}${fs_used /home}/${fs_size /home}${alignr}${color orange}${fs_bar 5,325 /home}
${if_mounted /media/Pepe}${color 729FCF}/media/Pepe ${color}${fs_used /media/Pepe}/${fs_size /media/Pepe}${alignr}${color orange}${fs_bar 5,325 /media/Pepe}$else${color 729FCF}/media/Pepe ${color}no montado$endif
${if_mounted /mnt/backup}${color 729FCF}/mnt/backup ${color}${fs_used /mnt/backup}/${fs_size /mnt/backup}${alignr}${color orange}${fs_bar 5,325 /mnt/backup}$else${color 729FCF}/mnt/backup ${color}no montado$endif
${color 729FCF}Disk Read-Write IO $color $diskio_read - $diskio_write
${color orange}Uso del Procesador:
${color 729FCF} Nombre      PID   CPU%   MEM%
${color} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color white} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color white} ${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 orange}/var/log/kernel.log:
$color${exec tail -n 3 /var/log/kernel.log | sed -n 's/^\(.*\)\(jpalau-desktop \)\(.*\)*$/\3 /p'}
${color orange}/var/log/iptables.log:
$color${exec tail -n 8 /var/log/iptables.log | sed -n 's/ MAC=\([0-9a-z][0-9a-z]:\)\{10,17\}[0-9a-z][0-9a-z]//p' | sed -n 's/ OUT=//p'}