› Foros › PC › Software libre
#!/bin/bash
killall conky
conky -c ./conkyrc1;
xzibit escribió:8 Beautiful Conky Desktop Monitor Setup
http://www.linuxhaxor.net/2009/05/07/8- ... tor-setup/
# 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 250 0
#maximum_width 250
# 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 50
# 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
SISTEMA ${hr 2}
${voffset 2}${font OpenLogos:size=16}u${font} Kernel: ${alignr}${kernel}
${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font StyleBats:size=16}q${font} Actividad: ${alignr}${uptime}
FECHA ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${alignc}${time %A %d %Y}
RED ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 C22F2F DA3F3F}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Red No disponible
${endif}
PROCESOS ${hr 2}
CPU $alignr PID CPU% MEM%
${top name 1}$alignr${top pid 1}${top cpu 1}${top mem 1}
${top name 2}$alignr${top pid 2}${top cpu 2}${top mem 2}
${top name 3}$alignr${top pid 3}${top cpu 3}${top mem 3}
${top name 4}$alignr${top pid 4}${top cpu 4}${top mem 4}
${top name 5}$alignr${top pid 5}${top cpu 5}${top mem 5}
RAM $alignr PID CPU% MEM%
${top_mem name 1}$alignr${top_mem pid 1}${top_mem cpu 1}${top_mem mem 1}
${top_mem name 2}$alignr${top_mem pid 2}${top_mem cpu 2}${top_mem mem 2}
${top_mem name 3}$alignr${top_mem pid 3}${top_mem cpu 3}${top_mem mem 3}
${top_mem name 4}$alignr${top_mem pid 4}${top_mem cpu 4}${top_mem mem 4}
${top_mem name 5}$alignr${top_mem pid 5}${top_mem cpu 5}${top_mem mem 5}
AUDACIOUS ${hr 2}
${if_running audacious}
${exec audtool --current-song | cut -b-34}
${exec audtool --current-song-bitrate-kbps} kbps * ${exec audtool --current-song-length} ${execbar expr 100 \* $(audtool --current-song-output-length-seconds) \/ $(audtool --current-song-length-seconds)}
# Usar Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048
# Intervalo de actualizacion en segundos
update_interval 5
# Este es el numero de veces que se actualizara Conky antes de quitarse
# Poner 0 para siempre
total_run_times 0
# Crear nuestra propia ventana en vez de usar el escritorio(requerido en nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Usar doble buffer (reduce parpadeo, puede no trabajar siempre)
double_buffer yes
# Minimo/maximo tamaño del area de texto
minimum_size 200 600
maximum_width 200
# Dibujar sombras?
draw_shades no
#Dibujar lineas externas?
draw_outline no
# Dibujar bordes alrededor del texto?
draw_borders no
# Stippled borders?
stippled_borders 0
#Margenes de bordes
border_margin 5
#Anchura de bordes
border_width 1
# Colores
# Acepta RGB
# Colores predefinidos de zonas
#default_color white
#default_shade_color black
#default_outline_color white
#own_window_colour white
# Variables para colores
color0 000000
color1 000000
color2 000000
# Alineamiento de texto, se puede resumir como tl, tr bl, br
# Existen mas alineaciones
#alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
alignment tr
# Separacion entre bordes de pantalla y texto
# Mismo efecto que pasando -x por la linea de comandos
gap_x 0
gap_y 0
#Extraer arhivos del buffer del sistema desde memoria?
no_buffers yes
# Yes para poner todo el texto en mayuculas
uppercase no
# Numero de CPU para promedio
# Pon 1 para desactivar promedio
cpu_avg_samples 2
# Numero de redes para promedio
# Pon 1 para desactivar promedio
net_avg_samples 2
#Forzar UTF9?, se requiere para esto XFT
override_utf8_locale yes
#Añadir espacios para mantener movimiento sobre ellos? Esto solo afecta a ciertos objetos
use_spacer none
# Unidades de medida cortas?
short_units yes
TEXT
${color1}${font OpenLogos:size=15}B ${font verdana}Blackgem${font impact}PC${font}
${color2}${alignc}
${color0}Uptime${alignr}$uptime
${color1}Carga${alignr}${loadavg}
${font impact:bold size=8}SISTEMA$font ${hr 2}
${color0}Kernel: ${color black}${alignr 4}$kernel
${color0}Host: ${color black}${alignr 4}${exec whoami}@$nodename
${color0}Gnome${alignr}${pre_exec gnome-about --version | cut -d " " -f 3}${font}
${color0}CPU@${freq}Mhz ${alignr}${cpu cpu1}·${cpu cpu2}% ${cpugraph cpu1 7,30} ${cpugraph cpu2 7,30}
${color #000000}Procesos:
${color #000000}Nombre PID CPU% MEM%
$color0 ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
$color0 ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
$color0 ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
$color0 ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color #000000}Uso de memoria
$color0 ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
$color0 ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
$color0 ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
$color0 ${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${color0}${font style=Bold}Almacenamiento${hr 2}
${font}${color0}/${alignr}${fs_free /} ${fs_bar 7,64 /}
${color0}/home${alignr}${fs_free /home} ${fs_bar 7,64 /home}
${color0}IO${alignr}${diskio_read} ${diskiograph /dev/sda 7,64}
-Unidades Montadas:
${if_existing /media/Usuarios}${color0}Usuarios${alignr}${fs_free /media/Usuarios}/${fs_size /media/Usuarios}${fs_bar 7,64 /media/Usuarios}
${else}${endif}${if_existing /media/Windows}${color0}Windows${alignr}${fs_free /media/Windows}/${fs_size /media/Windows}${fs_bar 7,64 /media/Windows}
${else}${endif}${if_existing /media/Datos}${color0}Datos${alignr}${fs_free /media/Datos}/${fs_size /media/Datos}${fs_bar 7,64 /media/Datos}
${else}${endif}${if_existing /media/INTERCAMBIO}${color0}INTER...${alignr}${fs_free /media/INTERCAMBIO}/${fs_size /media/INTERCAMBIO}${fs_bar 7,64 /media/INTERCAMBIO}
${else}${endif}-Extraibles:
${if_existing /media/disk}${color0}Extr1${alignr}${fs_free /media/disk}/${fs_size /media/disk}${fs_bar 7,64 /media/disk}
${else}${endif}${if_existing /media/disk-1}${color0}Extr2${alignr}${fs_free /media/disk-1}/${fs_size /media/disk-1}${fs_bar 7,64 /media/disk-1}
${else}${endif}${if_existing /media/disk-2}${color0}Extr3${alignr}${fs_free /media/disk-2}/${fs_size /media/disk-2}${fs_bar 7,64 /media/disk-2}
${else}${endif}${if_existing /media/disk-3}${color0}Extr4${alignr}${fs_free /media/disk-3}/${fs_size /media/disk-3}${fs_bar 7,64 /media/disk-3}
${else}${endif}
${color0}${font style=Bold}Conexion${hr 2}$font
${if_existing /proc/net/route wlan0}${color0}ESSID${alignr}${wireless_essid wlan0} [${wireless_link_qual wlan0}%]
${color0}IP local${alignr}${addr wlan0}
${color0}IP pública${alignr}${texeci 300 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
${color0}Subida ${upspeedf wlan0} kb/s ${alignr}${downspeedf wlan0} kb/s Bajada
${upspeedgraph wlan0 20,95 F57900 FCAF3E}${alignr}${downspeedgraph wlan0 20,95 F57900 FCAF3E}
${totalup wlan0}${alignr}${totaldown wlan0}
${else}
${if_existing /proc/net/route eth0}
${color1}IP local${alignr}${addr eth0}
${color1}IP pública${alignr}${texeci 300 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
${color1}Subida ${upspeedf eth0} kb/s ${alignr}${color1} ${alignr}${downspeedf eth0} kb/s Bajada
${upspeedgraph eth0 20,95}${downspeedgraph eth0 20,95}
${totalup wlan0}${alignr}${totaldown wlan0}
${else}
${color1}Sin conexion de red
${endif}
${endif}
${color2}${alignc}
${font}${font verdana:bold:italic:size=12}${color1} Conky${font verdana:bold:italic:size=10}-${font verdana:italic:size=10}Prototipo
El tiempo en MI CIUDAD ${hr 2}
${if_existing /proc/net/route wlan0}${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=SPXX0001 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=SPXX0001 --datatype=HT}${font}
${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=SPXX0001 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=SPXX0001 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=SPXX0001 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=SPXX0001 --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0001 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=SPXX0001 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0001 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=SPXX0001 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0001 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=SPXX0001 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0001 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=SPXX0001 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0001 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${else}
${if_existing /proc/net/route eth0}${voffset -10}${alignr 56}${font ConkyWeather:style=Bold:size=40}${execi 600 conkyForecast --location=SPXX0001 --datatype=WF}${font}
${voffset -50}${font Weather:size=40}y${font} ${voffset -38}${font Arial Black:size=26}${execi 600 conkyForecast --location=SPXX0001 --datatype=HT}${font}
${voffset 0}${alignc 43}${execpi 600 conkyForecast --location=SPXX0001 --datatype=DW --startday=1 --shortweekday} ${alignc 8}${execpi 600 conkyForecast --location=SPXX0001 --datatype=DW --startday=2 --shortweekday} ${alignc -29}${execpi 600 conkyForecast --location=SPXX0001 --datatype=DW --startday=3 --shortweekday} ${alignc -64}${execpi 600 conkyForecast --location=SPXX0001 --datatype=DW --startday=4 --shortweekday}
${voffset 0}${alignc 75}${font ConkyWeather:size=28}${execpi 600 conkyForecast --location=SPXX0001 --datatype=WF --startday=1 --endday=4 --spaces=1}${font}
${voffset 0}${font DejaVu Sans:size=7}${alignc 48}${execpi 600 conkyForecast --location=SPXX0001 --datatype=HT --startday=1 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0001 --datatype=LT --startday=1 --hideunits --centeredwidth=3} ${alignc -14}${execpi 600 conkyForecast --location=SPXX0001 --datatype=HT --startday=2 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0001 --datatype=LT --startday=2 --hideunits --centeredwidth=3} ${alignc -40}${execpi 600 conkyForecast --location=SPXX0001 --datatype=HT --startday=3 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0001 --datatype=LT --startday=3 --hideunits --centeredwidth=3} ${alignr 6}${execpi 600 conkyForecast --location=SPXX0001 --datatype=HT --startday=4 --hideunits --centeredwidth=3}/${execpi 600 conkyForecast --location=SPXX0001 --datatype=LT --startday=4 --hideunits --centeredwidth=3}${font}
${endif}
${else}${font PizzaDude Bullets:size=14}4${font} Tiempo No disponible${endif}
function capture {
clear
rm -rf $DUMP_PATH/$Host_MAC*
xterm $HOLD -title "Capturando datos del canal: $Host_CHAN" $TOPLEFT -bg "#000000" -fg "#FFFFFF" -e $AIRODUMP --bssid $Host_MAC -w $DUMP_PATH/$Host_MAC -c $Host_CHAN $WIFI
background yes
cpu_avg_samples 2
net_avg_samples 2
out_to_console no
use_xft yesf
xftfont DejaVu Sans:size=8
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type normal
xftalpha 0.8
update_interval 3.0
double_buffer yes
minimum_size 10 10
maximum_width 320
draw_shades yes
draw_outline yes
draw_borders yes
stippled_borders 2
border_width 0
alignment bottom_right
use_spacer yes
no_buffers yes
uppercase no
${color green}${hr}$color
TEXT
${color purple} Zonawireless: $kernel
${color orange}SISTEMA${hr 3}$color
${color red}CPU $color ${cpu cpu1}% ${color red}Uptime:$color $uptime $alignc ${color red} hora: $color ${time %H:%M}${font}
${color green}${cpugraph cpu1 78af78 a3a3a3}
${color green}Procs:$color $processes ${color green}Running:$color $running_processes
${color green}Ram: $color $mem/$memmax - ${color white}$memperc% $membar
${color green}${hr}$color
${color orange}Espacio libre:
${color}Raiz ${color}${fs_used /}/${fs_size /}${alignr}${color green}${fs_bar 5,120 /}
${color}Almacen ${color}${fs_used /media/disk}/${fs_size /media/disk}${alignr}${color green}${fs_bar 5,120 /media/disk}
${color green}${hr}$color
${color orange} Bateria: ${battery BAT1}
${color green} ${battery_bar 5,120 BAT1}${color green} ${battery_time BAT1}
${color orange}TOP 5${hr 3}$color
${tab 30} ${color green} Name PID CPU% MEM%
${tab 30} $color ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${tab 30} $color ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${tab 30} $color ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${tab 30} $color ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${tab 30} $color ${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${color orange}WIRELESS${hr 3}$color
${tab 20}IP Local ${alignr}${addr wlan0}
${tab 20}IP Public ${alignr}${execi 5 ~/.scripts/ip.sh}
${tab 20}AP ESSID: ${wireless_essid wlan0} ${alignr}AP Bitrate: ${wireless_bitrate wlan0}
${tab 20}Signal quality: ${alignr}${wireless_link_qual_perc wlan0}% ${wireless_link_bar 7,75 wlan0}
Down: $color${downspeed wlan0} k/s Up: ${upspeed wlan0} k/s
$color ${downspeedgraph wlan0 25,135 000000 1d9a00} ${alignr}${upspeedgraph
wlan0 25,135 000000 03a3ff} $color
Total: ${color 1d9a00}${totaldown wlan0}${color } Total: ${color 03a3ff}${totalup wlan0} $color
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr} Torrent: ${tcp_portmon 6881 6999 count}
Total: ${tcp_portmon 1 65535 count}
${color green}${hr 2}$color
${color orange}Port(s)${alignr}#ENTRADA
${color green}Direccion remota ${alignr} Servicio Local/Puerto$color
${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 lservice 0}
${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 lservice 1}
${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 lservice 2}
${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 lservice 3}
${tcp_portmon 1 65535 rhost 4} ${alignr} ${tcp_portmon 1 65535 lservice 4}
${color red}Port(s)${alignr}#SALIDA
${color green}${hr}$color
${color green}Direccion remota ${alignr} Servicio Local/Puerto$color
${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 rservice 0}
${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 rservice 1}
${tcp_portmon 1 65535 rhost 2} ${alignr} ${tcp_portmon 1 65535 rservice 2}
${tcp_portmon 1 65535 rhost 3} ${alignr} ${tcp_portmon 1 65535 rservice 3}
${color orange}MENSAJES /LOG${hr 3}$color
${color green}/var/log/messages$color
${execi 5 dmesg | tail -n1 /var/log/messages | fold -w50}
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type normal
Mensajepor xzibit 21 May 2009 23:42
Con el AWK puedes imprimir las columnas que te interesen de cada línea. Así por ejemplo:
awk '{print $5 $6}'
imprimiría la 5ª y 6ª columna (separadas por un espacio). Luego esto lo puedes combinar con el grep y lo tendrías prácticamente resuelto.
# 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
# Color variables for use inside TEXT segments ( source: http://htmlhelp.com/cgi-bin/color.cgi )
color0 F8F8FF # Ghost white
color1 483D8B # Dark slate blue
color2 B8860B # Dark goldenrod
color3 4682B4 # Steelblue
color4 8B0000 # Dark red
color5 FFFFFF # White
# 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 180 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 50
# 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
Sistema ${hr 2}
${voffset 2}${font OpenLogos:size=16}T${font} Kernel: ${alignr}${kernel}
${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font Webdings:size=16}~${font} Bateria: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}
${font StyleBats:size=16}q${font} Tiempo encendido: ${alignr}${uptime}
HDD ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Home:
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Sistema:
${voffset 4}${fs_free /media/Sistema}/${fs_size /media/Sistema} ${alignr}${fs_bar 8,60 /media/Sistema}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Nena:
${voffset 4}${fs_free /media/Nena}/${fs_size /media/Nena} ${alignr}${fs_bar 8,60 /media/Nena}
Red ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subiendo: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajando: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Subido: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Bajado: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subiendo: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajando: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Subido: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Bajado: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subiendo: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajando: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Subido: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Bajado: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Red No disponible
${endif}
Hora y Fecha ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${alignc}${time %A %d %Y}
${execi 60 date +"%B" | tr "[:lower:]" "[:upper:]"}${hr 2}
${alignc 35}${color 6b6b6b}${font LiberationMono:size=8}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color4}'"$DJS"'${color}'" "/}${font}
Cory escribió:Hola tengo un problema con conky, lo tengo agregado para que inicie junto con el sistema pero cada que inicio sesión queda encima de todo de este modo:
Mi conky.rc es este:# 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
# Color variables for use inside TEXT segments ( source: http://htmlhelp.com/cgi-bin/color.cgi )
color0 F8F8FF # Ghost white
color1 483D8B # Dark slate blue
color2 B8860B # Dark goldenrod
color3 4682B4 # Steelblue
color4 8B0000 # Dark red
color5 FFFFFF # White
# 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 180 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 50
# 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
Sistema ${hr 2}
${voffset 2}${font OpenLogos:size=16}T${font} Kernel: ${alignr}${kernel}
${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font Webdings:size=16}~${font} Bateria: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}
${font StyleBats:size=16}q${font} Tiempo encendido: ${alignr}${uptime}
HDD ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Home:
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Sistema:
${voffset 4}${fs_free /media/Sistema}/${fs_size /media/Sistema} ${alignr}${fs_bar 8,60 /media/Sistema}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Nena:
${voffset 4}${fs_free /media/Nena}/${fs_size /media/Nena} ${alignr}${fs_bar 8,60 /media/Nena}
Red ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subiendo: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajando: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Subido: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Bajado: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subiendo: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajando: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Subido: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Bajado: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subiendo: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajando: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Subido: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Bajado: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Red No disponible
${endif}
Hora y Fecha ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${alignc}${time %A %d %Y}
${execi 60 date +"%B" | tr "[:lower:]" "[:upper:]"}${hr 2}
${alignc 35}${color 6b6b6b}${font LiberationMono:size=8}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color4}'"$DJS"'${color}'" "/}${font}
Alguien puede ayudarme?
Cory escribió:Hola tengo un problema con conky, lo tengo agregado para que inicie junto con el sistema pero cada que inicio sesión queda encima de todo de este modo:
Mi conky.rc es este:# 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
# Color variables for use inside TEXT segments ( source: http://htmlhelp.com/cgi-bin/color.cgi )
color0 F8F8FF # Ghost white
color1 483D8B # Dark slate blue
color2 B8860B # Dark goldenrod
color3 4682B4 # Steelblue
color4 8B0000 # Dark red
color5 FFFFFF # White
# 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 180 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 50
# 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
Sistema ${hr 2}
${voffset 2}${font OpenLogos:size=16}T${font} Kernel: ${alignr}${kernel}
${font StyleBats:size=16}A${font} CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=16}A${font} CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=16}g${font} RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=16}j${font} SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font Webdings:size=16}~${font} Bateria: ${battery_percent BAT0}% ${alignr}${battery_bar 8,60 BAT0}
${font StyleBats:size=16}q${font} Tiempo encendido: ${alignr}${uptime}
HDD ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Home:
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Sistema:
${voffset 4}${fs_free /media/Sistema}/${fs_size /media/Sistema} ${alignr}${fs_bar 8,60 /media/Sistema}
${font Pie charts for maps:size=14}7${font} ${voffset -5}Nena:
${voffset 4}${fs_free /media/Nena}/${fs_size /media/Nena} ${alignr}${fs_bar 8,60 /media/Nena}
Red ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subiendo: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajando: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Subido: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Bajado: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subiendo: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajando: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Subido: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Bajado: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Subiendo: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Bajando: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Subido: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Bajado: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font} Ip Local: ${alignr}${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}b${font} Ip Pública: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}
${font PizzaDude Bullets:size=14}4${font} Red No disponible
${endif}
Hora y Fecha ${hr 2}
${alignc 35}${font Arial Black:size=26}${time %H:%M}${font}
${alignc}${time %A %d %Y}
${execi 60 date +"%B" | tr "[:lower:]" "[:upper:]"}${hr 2}
${alignc 35}${color 6b6b6b}${font LiberationMono:size=8}${execpi 60 DJS=`date +%_d`; cal | sed '1d' | sed '/./!d' | sed 's/$/ /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${alignc} /' | sed /" $DJS "/s/" $DJS "/" "'${color4}'"$DJS"'${color}'" "/}${font}
Alguien puede ayudarme?
#!/bin/bash
sleep 25 && conky
chmod +x /usr/bin/inicio-conky
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type normal
own_window yes
own_window_transparent yes
own_window_type override {------ cambialo por normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
Mensajepor xzibit 21 May 2009 23:42
Con el AWK puedes imprimir las columnas que te interesen de cada línea. Así por ejemplo:
awk '{print $5 $6}'
imprimiría la 5ª y 6ª columna (separadas por un espacio). Luego esto lo puedes combinar con el grep y lo tendrías prácticamente resuelto.
# Use Xft?
use_xft yes
xftfont Trebuchet MS :size=11
#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 250 0
#maximum_width 250
# Draw shades?
draw_shades yes
# 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 8
# 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 10
gap_y 0
# 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
# Main headers
color0 3e99ff
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
TEXT
${color0}${font OpenLogos:size=70}B${color}${font trashco:size=40}RCHLINUX
${font}${color0}${time %a, }${color } ${time %e %B %G}${font}${color0} ${time %Z, }${color }${time %H:%M:%S}
${color0}SISTEMA:
${hr 2}
${color}${font StyleBats:size=12}O ${font}${color0}UpTime: ${color }$uptime
${color}${font StyleBats:size=12}Q ${font}${color0}Kernel:${color }$kernel
${color}${font StyleBats:size=12}A ${font}${color0}CPU:${color }(${freq}Mhz) ${cpu cpu0}%
${color}${font StyleBats:size=12}A ${font}${color0}CPU1:${color }(${freq}Mhz) ${cpu cpu1}%
${color}${font StyleBats:size=12}G ${font}${color0}IP:${color }${addr wlan0}
${color}${font Webdings:size=12}i ${font}${color0}Highest CPU:
${hr 2}
${color #ddaa00} ${top name 1}${top cpu 1}
${color lightgrey} ${top name 2}${top cpu 2}
${color lightgrey} ${top name 3}${top cpu 3}
${color}${font Webdings:size=12}i ${font}${color0}Highest MEM:
${hr 2}
${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${color0}RED:
${hr 2}
${color}${font PizzaDude Bullets:size=14}Z${font} Señal: ${color yellow}${wireless_link_qual wlan0}%
${color}${font PizzaDude Bullets:size=12}M${font} Tot.up. ${totalup wlan0} Kb/s
${voffset 1}${color}${font PizzaDude Bullets:size=12}v${font} Up: ${color green}${upspeed wlan0}k/s
${color green}${upspeedgraph wlan0 20,140 000000 00ff00}
${voffset 6}${color}${font PizzaDude Bullets:size=12}S${font} Tot.dow. ${totaldown wlan0} Kb/s
${voffset 1}${color}${font PizzaDude Bullets:size=12}r${font} Down: ${color red}${downspeed wlan0}k/s
${color red}${downspeedgraph wlan0 20,140 000000 ff0000}
# Use Xft?
use_xft yes
xftfont Trebuchet MS :size=11
#xftalpha 1
text_buffer_size 2048
# Update interval in seconds
update_interval 30
# 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 250 0
#maximum_width 250
# Draw shades?
draw_shades yes
# 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 8
# 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 20
gap_y 10
# 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
# Main headers
color0 3e99ff
# TOP headers
color1 9933FF
#sección
color2 3399FF
#sección resaltada
color3 00DDE1
# text cabecera
color4 E12979
# Add spaces to keep things from moving about? This only affects certain objects.
use_spacer none
TEXT
${color white}SCAN:
${hr 2}
${color grey}$alignc${exec nmap -sP 192.168.1.1-255}
4eVaH escribió:He estado guarreando 1 poco mi escritorio, y, aunque nunca me ha gustado conky, he intentado poner uno que me resultase mas o menos "bonito"
Tengo 2 problemas.
Me gustaría que no se ocultase conky al hacer click en "show desktop" o bien al activar el plugin "show desktop" de compiz.
Me gustaría que los iconos se creasen mas abajo de donde está conky, mirad el icono de equipo, se queda medio oculto.
¿Alguna idea?
Saludos.
Arisco escribió:Bueno, veo que la ayuda la pedias hace un mes, igual ya no te hace falta
Saludos
use_xft yes
xftfont Liberation Sans:size=8
update_interval 1
total_run_times 0
double_buffer yes
text_buffer_size 2048
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 185 0
maximum_width 185
default_color white
draw_shades no
color0 white
color1 E07A1F
color2 white
alignment top_right
gap_x 25
gap_y 50
no_buffers no
net_avg_samples 2
override_utf8_locale yes
no_buffers yes
TEXT
SISTEMA ${hr 2}
${voffset 2}${color0}${font OpenLogos:size=16}u${font}${color} Kernel: ${alignr}${color2}${kernel}${color}
${color0}${font StyleBats:size=16}A${font}${color} CPU1: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu1}%${color}${font} ${alignr}${color2}${cpubar cpu1 8,60}${color}
${color0}${font StyleBats:size=16}g${font}${color} RAM: ${font Liberation Sans:style=Bold:size=8}${color1}$memperc%${color}${font} ${alignr}${color2}${membar 8,60}${color}
${color0}${font StyleBats:size=16}j${font}${color} SWAP: ${font Liberation Sans:style=Bold:size=8}${color1}$swapperc%${color}${font} ${alignr}${color2}${swapbar 8,60}${color}
${color0}${font StyleBats:size=16}q${font}${color} Uptime: ${alignr}${color2}${uptime}${color}
DISCO ${hr 2}
${voffset 4}${font Pie charts for maps:size=14}7${font} ${voffset -5}Sistema:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
FECHA ${hr 2}
${alignc 45}${color2}${font Arial Black:size=30}${time %H:%M}${font}${color}
${alignc}${time %A %d %Y}
RED ${hr 2}
${voffset -6}${font PizzaDude Bullets:size=14}O${font} Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph ath0 8,60}
${voffset 4}${font PizzaDude Bullets:size=14}U${font} Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph ath0 8,60}
${voffset 4}${font PizzaDude Bullets:size=14}N${font} Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font} Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font} Señal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
PS1 escribió:Ya tengo instalado en conky.Pero quiero que aparezca lo del pidgin y lo de Exaile ..
resadent escribió:PS1 escribió:Ya tengo instalado en conky.Pero quiero que aparezca lo del pidgin y lo de Exaile ..
Ale, ahi lo llevas, lee un poco anda .
PS1 escribió:resadent escribió:PS1 escribió:Ya tengo instalado en conky.Pero quiero que aparezca lo del pidgin y lo de Exaile ..
Ale, ahi lo llevas, lee un poco anda .
Gracias,justamente de ahi saque el CONKY colors.
${image volumen.png -p 20,20 -s 100x${exec volumen.sh}}
template3 ${image \1.png -p 20,100 -s 100x\2}
...
${template3 volumen ${exec volumen.sh}}
${if_match ${exec volumen.sh} == 0}${image v0.png -p 20,20 -s 100x20}
${else}${if_match ${exec volumen.sh} <= 10}${image v10.png -p 20,20 -s 100x20}
${else}${if_match ${exec volumen.sh} <= 20}${image v20.png -p 20,20 -s 100x20}
etc
OM3G4 escribió:¿Alguien me pasa el ip.sh?
#!/bin/bash
# eigene öffentliche ip anzeigen
wget http://checkip.dyndns.org/ -q -O - |
grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'
Conky: can't open /sys/class/power_supply/BAT0/uevent: No such file or directory
Conky: can't open /proc/acpi/battery/BAT0/state: No such file or directory
OM3G4 escribió:Gracias Kaitos!Conky: can't open /sys/class/power_supply/BAT0/uevent: No such file or directory
Conky: can't open /proc/acpi/battery/BAT0/state: No such file or directory
qué usais para el monitorizar la batería, a mí me da esos dos errores.
#!/bin/sh
sleep 10s && conky
k0br4 escribió:alguien sabe como hacer para que las sombras de compiz que aplica a las ventanas y a las barras no se apliquen al conky?
OM3G4 escribió:Creo que lo he leido en este mismo hilo pero soy incapaz de encontrarlo. Siento repetirlo pero, como digo, lo he buscado y no lo encuentro.
¿Cómo pongo varios scripts de conky?
Quiero mantener el de la derecha con la información global del sistema pero quiero añadir en una esquina otro para el tiempo y no sé como hacerlo.
Un saludo