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}

About these ads

12 pensamientos en “Usar varios conky’s al mismo tiempo

  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. 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.

  3. Pingback: Configurando Openbox (meme) « Elavdeveloper

  4. Pingback: Usar varios Conky’s al mismo tiempo | LFalcon

Deja un comentario

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s