Inicio > Debian, Escritorios, General, Gráficos, Linux, Software Libre, XFCE > Usar varios conky’s al mismo tiempo

Usar varios conky’s al mismo tiempo

Conky es una interesante herramienta que nos sirve para monitorizar nuestro sistema ( entr otras cosas ) que por lo menos a mi me encanta usar, es sencilla, consume pocos recursos y te puedes ahorrar instalar Screenlets, Gdesklets y programas parecidos.

Conky nos brinda la posibildad de que lo ejecutamos de forma sencilla:

o de forma múltiple:

Para ello tenemos que crear varios archivos: En mi caso hice 3, uno para el correo entrante en la parte superior derecha llamado .conkyrc_mail, otro para el sistema en la parte inferior izquierda, llamado .conkyrc_sistema, y el último en la parte inferior derecha para la hora llamado .conkyrc_time. El contenido de los mismos los pongo al final. :P

Una vez que los tuve configurado a mi gusto, los coloqué dentro de una carpeta dentro de mi home llamada .conky.

$ mkdir ~/.conky

Luego abrimos un terminal como y como root creamos un archivo en /usr/local/bin con el nombre start_conky:

$ sudo touch /usr/local/bin/start_conky

y le puse adentro lo siguiente:

#!/bin/bash
conky -c ~/.conky/.conkyrc_sistema &
conky -c ~/.conky/.conkyrc_hora &
conky -c ~/.conky/.conkyrc_mail &

Ya lo que nos queda es darle permisos, como mismo hicimos en este artículo con wbar para que se iniciara.

Adjuntos:

.conkyrc_mail:
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
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 200 0
#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 white
#default_shade_color black
#default_outline_color white
own_window_colour white

# 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 40

# 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 1

# 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
${alignr}${font}${execi 600 conkyEmail –servertype=IMAP –servername=192.168.200.2 –username=tu usuario –password=tupassword –ssl –connectiontimeout=51}${font} Mensaje(s)

Nota: Para que este script funcione tenemos que usar un script que puede encontrar aquí.

.conkyrc_time:
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
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 200 0
#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 white
#default_shade_color black
#default_outline_color white
own_window_colour white

# 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 -40
gap_y 679

# 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 1

# 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
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${alignc}${time %A %d %Y}

.conkyrc_sistema:
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
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 200 0
#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 2a2a2a
own_window_colour white

# 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 800
gap_y 690

# 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 1

# 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
${font}  CPU: ${cpu cpu1}% ${alignr 60}${cpubar cpu1 8,60}
${font}  RAM: $memperc% ${alignr 60}${membar 8,60}
${font}  SWAP: $swapperc% ${alignr 60}${swapbar 8,60}

  1. kzkggaara
    Marzo 18, 2009 a las 3:26 pm | #1

    ñoooo men super volao, oye pero una question….entonces el consumo de RAM se triplicaría no?
    Si un solo conky consume entre 1.0 y 1.2MB de RAM entonces los tres consumirían alrededor de 3.0MB no?

  2. Marzo 18, 2009 a las 3:28 pm | #2

    Por supuesto, es lógico que si tienes 3 conkys abiertos, en dependencia de lo que haga cad uno, el consumo es diferente, pero vamos que esto con 1 Gb de RAM no se lo siente :P

  3. kzkggaara
    Marzo 18, 2009 a las 3:46 pm | #3

    Ok thanks.
    Y si jaja no se lo siente, pero solo era una curiosidad.
    Ok men haber si mañana añado tu ayuda al tuto de configuración de conky.

    Salu2 y pinguinos men.

  4. Marzo 19, 2009 a las 6:05 am | #4

    Ok Gaara.. Cuidate por ahí y cuidado con las arenas movedizas de Ubuntu jejejejeje….

    Sld y pinguinos jejeje

  5. Ignacio
    Mayo 24, 2009 a las 1:32 am | #5

    Hola, me dirias donde puedo conseguir ese wallpaper en 1280 x 800? es muy bueno. Gracias :)

  6. Ignacio
    Mayo 24, 2009 a las 1:33 am | #6

    Hola, me dirias donde puedo conseguir ese wallpaper en 1280 x 800? es muy bueno.

    Gracias

  7. Ignacio
    Mayo 24, 2009 a las 1:37 am | #7

    No especifique cual de los dos. Bueno seria el segundo wallpaper el de arbol.

  8. Mayo 25, 2009 a las 6:19 am | #8

    @Ignacio:
    Pues lo conseguí en http://www.deviantart.com lo que no recuerdo bien el sitio del autor. Lo siento.

  9. Ignacio
    Mayo 25, 2009 a las 2:28 pm | #9

    Me lo mandarias al wallpaper a mi correo?

    ignacio.com.ar@gmail.com

  1. Junio 8, 2009 a las 6:26 am | #1