Gostaria de ter este conky no meu Desktop

Iniciado por rruella, 02 de Outubro de 2009, 16:23

tópico anterior - próximo tópico

rruella

alguem se disponibilizaria em me ajudar com o script, não entendo de programação e nem inglês.

http://img185.imageshack.us/img185/474/capturaecrac.png
Dar como resolvido, ou como solucionado um tópico seu:

http://www.youtube.com/watch?v=cW8isbYhR_M

velox256

Computador perereca, com disco perereca, monitor perereca e sistema super xuxu. Visitem a minha página em http://sidserra.k6.com.br ou meu blog em http://sidserra.blogspot.com.br.

rruella

# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
color0 FFFFFF
color1 FCAF3E

text_buffer_size 2048

# Update interval in seconds
update_interval 3

# 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 desktop
#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 0

# Default colors and also border colors
default_color green
default_shade_color white
default_outline_color white
own_window_colour yellow

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

# 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
${alignc}${time %A}, ${time %e} de ${time %B} de ${time %G}

${alignc}${time %H:%M:%S}

$nodename ${alignr} Tempo ligado: $uptime

Sistema: $kernel $machine
${alignc}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}
Frequência: ${freq_g 2}GHz ${alignr}
Uso do processador: ${cpu cpu1}%
Temperatura do processador: ${hwmon 2 temp 1}°C
Temperatura do sistema: ${hwmon 1 temp 1}°C
${cpugraph cpu1 25,260 000000 93C9EB}
${cpubar cpu1 10,260 000000 93C9EB}

SISTEMA ${hr 2}

${font StyleBats:size=20}A${font}  CPU: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=20}g${font}  RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=20}j${font}  SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font StyleBats:size=20}q${font}  Ligado: ${alignr}${uptime}

CPU ${hr 2}
${font StyleBats:size=20}A${font}  ${top name 1}$alignr${top cpu 1} %
${font StyleBats:size=20}A${font}  ${top name 2}$alignr${top cpu 2} %
${font StyleBats:size=20}A${font}  ${top name 3}$alignr${top cpu 3} %

HD ${hr 2}
${voffset 4}${font Pie charts for maps:size=20}7${font}   ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${voffset 4}${font Pie charts for maps:size=20}7${font}   ${voffset -5}Boot:
${voffset 4}${fs_used /boot}/${fs_size /boot} ${alignr}${fs_bar 8,60 /boot}
${voffset 4}${font Pie charts for maps:size=20}7${font}   ${voffset -5}Home:
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
${voffset 4}${font Pie charts for maps:size=20}7${font}   ${voffset -5}Windows:
${voffset 4}${fs_free /windows}/${fs_size /windows} ${alignr}${fs_bar 8,60 /windows} 

$alignc eth0 (${addr eth0})
Download: ${downspeed eth0} KB/s${alignr} Upload: ${upspeed eth0} KB/s
${downspeedgraph eth0 25,120 000000 93C9EB} ${alignr}${upspeedgraph eth0 25,120 000000 93C9EB}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}

Ontem: ${execi 3600 vnstat -i eth0 | grep "yesterday" | awk '{print $2 $3}'}${goto 142}Ontem: ${execi 3600 vnstat -i eth0 | grep "yesterday" | awk '{print $5 $6}'}
Hoje: ${execi 300 vnstat -i eth0 | grep "today" | awk '{print $2 $3}'}${goto 142}Hoje: ${execi 300 vnstat -i eth0 | grep "today" | awk '{print $5 $6}'}
Semana: ${execi 3600 vnstat -w -i eth0 | grep "current week" | awk '{print $3 $4}'}${goto 142}Semana: ${execi 3600 vnstat -w -i eth0 | grep "current week" | awk '{print $6 $7}'}
No mês: ${execi 3600 vnstat -m -i eth0 | grep -m 1 "'09" | awk '{print $3 $4}'}${goto 142}No mês: ${execi 3600 vnstat -m -i eth0 | grep -m 1 "'09" | awk '{print $6 $7}'}


aproveitando a sua deixa velox e mais uns pedaços de outro script que acho que era do alarcon. agora quero ajuda para desenhar este script ai abaixo:

http://img121.imageshack.us/img121/5316/capturaecra.png

mas como meu amigo já sabe não entendo nada de programação e pouco menos de inglẽs mas tou mesmo interessado neste visual.
Dar como resolvido, ou como solucionado um tópico seu:

http://www.youtube.com/watch?v=cW8isbYhR_M

velox256

Pois é, eu perguntei pelo script DESSA figura que vc mandou... De onde vc pegou já deve ter um pronto, não? Ou quase pronto...
Computador perereca, com disco perereca, monitor perereca e sistema super xuxu. Visitem a minha página em http://sidserra.k6.com.br ou meu blog em http://sidserra.blogspot.com.br.

bred81

#4
Citação de: rruella online 03 de Outubro de 2009, 11:36
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
color0 FFFFFF
color1 FCAF3E

text_buffer_size 2048

# Update interval in seconds
update_interval 3

# 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 desktop
#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 0

# Default colors and also border colors
default_color green
default_shade_color white
default_outline_color white
own_window_colour yellow

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

# 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
${alignc}${time %A}, ${time %e} de ${time %B} de ${time %G}

${alignc}${time %H:%M:%S}

$nodename ${alignr} Tempo ligado: $uptime

Sistema: $kernel $machine
${alignc}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}
Frequência: ${freq_g 2}GHz ${alignr}
Uso do processador: ${cpu cpu1}%
Temperatura do processador: ${hwmon 2 temp 1}°C
Temperatura do sistema: ${hwmon 1 temp 1}°C
${cpugraph cpu1 25,260 000000 93C9EB}
${cpubar cpu1 10,260 000000 93C9EB}

SISTEMA ${hr 2}

${font StyleBats:size=20}A${font}  CPU: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=20}g${font}  RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=20}j${font}  SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font StyleBats:size=20}q${font}  Ligado: ${alignr}${uptime}

CPU ${hr 2}
${font StyleBats:size=20}A${font}  ${top name 1}$alignr${top cpu 1} %
${font StyleBats:size=20}A${font}  ${top name 2}$alignr${top cpu 2} %
${font StyleBats:size=20}A${font}  ${top name 3}$alignr${top cpu 3} %

HD ${hr 2}
${voffset 4}${font Pie charts for maps:size=20}7${font}   ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${voffset 4}${font Pie charts for maps:size=20}7${font}   ${voffset -5}Boot:
${voffset 4}${fs_used /boot}/${fs_size /boot} ${alignr}${fs_bar 8,60 /boot}
${voffset 4}${font Pie charts for maps:size=20}7${font}   ${voffset -5}Home:
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
${voffset 4}${font Pie charts for maps:size=20}7${font}   ${voffset -5}Windows:
${voffset 4}${fs_free /windows}/${fs_size /windows} ${alignr}${fs_bar 8,60 /windows}  

$alignc eth0 (${addr eth0})
Download: ${downspeed eth0} KB/s${alignr} Upload: ${upspeed eth0} KB/s
${downspeedgraph eth0 25,120 000000 93C9EB} ${alignr}${upspeedgraph eth0 25,120 000000 93C9EB}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}

Ontem: ${execi 3600 vnstat -i eth0 | grep "yesterday" | awk '{print $2 $3}'}${goto 142}Ontem: ${execi 3600 vnstat -i eth0 | grep "yesterday" | awk '{print $5 $6}'}
Hoje: ${execi 300 vnstat -i eth0 | grep "today" | awk '{print $2 $3}'}${goto 142}Hoje: ${execi 300 vnstat -i eth0 | grep "today" | awk '{print $5 $6}'}
Semana: ${execi 3600 vnstat -w -i eth0 | grep "current week" | awk '{print $3 $4}'}${goto 142}Semana: ${execi 3600 vnstat -w -i eth0 | grep "current week" | awk '{print $6 $7}'}
No mês: ${execi 3600 vnstat -m -i eth0 | grep -m 1 "'09" | awk '{print $3 $4}'}${goto 142}No mês: ${execi 3600 vnstat -m -i eth0 | grep -m 1 "'09" | awk '{print $6 $7}'}


aproveitando a sua deixa velox e mais uns pedaços de outro script que acho que era do alarcon. agora quero ajuda para desenhar este script ai abaixo:

http://img121.imageshack.us/img121/5316/capturaecra.png

mas como meu amigo já sabe não entendo nada de programação e pouco menos de inglẽs mas tou mesmo interessado neste visual.
Bah, mas isso vai ser difíiiiiicil...
Não tem idéia.
O meu é bem semelhante, só não tem a foto, alguns ícones são diferentes e tem algumas cores:
fred@kk9:/media/77349770-d67c-4059-8d56-9fb4c0f24c2f/home/fred$ cat .conkyrc
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}%${font} ${alignr}${voffset -2}${color0}${font Weather:size=14}y${font}${color} ${voffset -3}${font Liberation Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core0 Temp' | cut -c15-16}°C${color}${font}  ${color2}${cpubar cpu1 8,50}${color}
${color0}${font StyleBats:size=16}A${font}${color}   CPU2: ${font Liberation Sans:style=Bold:size=8}${color1}${cpu cpu2}%${font} ${alignr}${voffset -2}${color0}${font Weather:size=14}y${font}${color} ${voffset -3}${font Liberation Sans:style=Bold:size=8}${color1}${execi 30 sensors | grep 'Core1 Temp' | cut -c15-16}°C${color}${font}  ${color2}${cpubar cpu2 8,50}${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}   Atividade: ${alignr}${color2}${uptime}${color}
${color0}${font StyleBats:size=16}l${font}${color}   Processos: ${color2}${alignr 13}CPU${alignr}RAM${color}
${goto 32}${top name 1}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 1}${alignr }${top mem 1}${color}${font}
${goto 32}${top name 2}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 2}${alignr }${top mem 2}${color}${font}
${goto 32}${top name 3}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 3}${alignr }${top mem 3}${color}${font}
${goto 32}${top name 4}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 4}${alignr }${top mem 4}${color}${font}
${goto 32}${top name 5}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 5}${alignr }${top mem 5}${color}${font}
${goto 32}${top name 6}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 6}${alignr }${top mem 6}${color}${font}
${goto 32}${top name 7}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 7}${alignr }${top mem 7}${color}${font}
${goto 32}${top name 8}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 8}${alignr }${top mem 8}${color}${font}
${goto 32}${top name 9}${font Liberation Sans:style=Bold:size=8}${color1} ${goto 124}${top cpu 9}${alignr }${top mem 9}${color}${font}

DATA ${hr 2}
${voffset -6}${goto 28}${font Arial Black:size=38}${color2}${time %H}${color}${font}${voffset -28}${font Liberation Sans:style=Bold:size=11}${color2}${time :%M}${time :%S}${color}${font}
${voffset -3}${goto 100}${font Liberation Sans:style=Bold:size=8}${color2}${time %A}${color}${font}
${voffset -1}${goto 100}${time %d %B %Y}
${voffset 4}${color0}${font RsbillsDng:size=20}O${font}${color}${voffset -4}${font Liberation Mono:size=8}${execpi 10800 DJS=`date +%_d`; cal | sed 's/^/${alignc} /' | sed s/" $DJS "/" "'${font Liberation Mono:style=bold:size=8}${color1}'"$DJS"'${color}${font}${font Liberation Mono:size=8}'" "/}${font}${font}
TO DO ${hr 2}
${execpi 20 cat ~/ToDo.txt | sed -n '1,12p' | sed 's/^/${voffset 2}${color0}${font RsbillsDng:size=18}d${font}${color}${voffset -5}   /'}

HD ${hr 2}
  ${voffset 4}${color0}${font Weather:size=15}y${font}${color}${voffset -2}     Temperatura: ${font Liberation Sans:style=Bold:size=8}${color1}${execi 120 hddtemp /dev/sda -n --unit=C}°C${color}${font}${alignr}${color2}/dev/sda${color}
${execpi 30 ~/.scripts/hd_default.py}

REDE ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color}   Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed wlan0}${color}${font} kb/s ${alignr}${upspeedgraph wlan0 8,60 E07A1F FAA546}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color}   Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed wlan0}${color}${font} kb/s ${alignr}${downspeedgraph wlan0 8,60 E07A1F FAA546}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color}   Upload: ${alignr}${totalup wlan0}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color}   Download: ${alignr}${totaldown wlan0}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}Z${font}${color}   Sinal: ${font Liberation Sans:style=Bold:size=8}${color1}${wireless_link_qual wlan0}%${color}${font} ${alignr}${color2}${wireless_link_bar 8,60 wlan0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color}   Ip local: ${alignr}${color2}${addr wlan0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}b${font}${color}   Ip externo: ${alignr}${color2}${execi 10800 ~/.scripts/ip.sh}${color}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color}   Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed eth0}${color}${font} kb/s ${alignr}${upspeedgraph eth0 8,60 E07A1F FAA546}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color}   Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed eth0}${color}${font} kb/s ${alignr}${downspeedgraph eth0 8,60 E07A1F FAA546}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color}   Upload: ${alignr}${color2}${totalup eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color}   Download: ${alignr}${color2}${totaldown eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color}   Ip local: ${alignr}${color2}${addr eth0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}b${font}${color}   Ip externo: ${alignr}${color2}${execi 10800 ~/.scripts/ip.sh}${color}
${endif}${else}${if_existing /proc/net/route ppp0}
${voffset -6}${color0}${font PizzaDude Bullets:size=14}O${font}${color}   Up: ${font Liberation Sans:style=Bold:size=8}${color1}${upspeed ppp0}${color}${font} kb/s ${alignr}${upspeedgraph ppp0 8,60 E07A1F FAA546}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}U${font}${color}   Down: ${font Liberation Sans:style=Bold:size=8}${color1}${downspeed ppp0}${color}${font} kb/s ${alignr}${downspeedgraph ppp0 8,60 E07A1F FAA546}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}N${font}${color}   Upload: ${alignr}${color2}${totalup ppp0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}T${font}${color}   Download: ${alignr}${color2}${totaldown ppp0}${color}
${voffset 4}${color0}${font PizzaDude Bullets:size=14}a${font}${color}   Ip local: ${alignr}${color2}${addr ppp0}${color}
${endif}${else}${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}   Rede indisponível
${endif}
RHYTHMBOX ${hr 2}${if_running rhythmbox}
${voffset 2}${color0}${font Webdings:size=16}U${font}${color}   Status:${alignr}${color2}${execpi 10 ~/.scripts/conkyRhythmbox.py --datatype=ST}${color}
${voffset 2}${color0}${font Musicelements:size=16}z${font}${color}     Música:${alignr}${color2}${execpi 10 ~/.scripts/conkyRhythmbox.py --datatype=AR}${color}
${color2}${alignr}${execpi 10 ~/.scripts/conkyRhythmbox.py --datatype=AL}${color}
${color2}${alignr}${execpi 10 ~/.scripts/conkyRhythmbox.py --datatype=TI}${color}
${voffset -4}${color0}${font Martin Vogel's Symbols:size=17}U${font}${color}    Tempo:${alignr}${color2}${execpi 10 ~/.scripts/conkyRhythmbox.py --datatype=PT}/${execp ~/.scripts/conkyRhythmbox.py --datatype=LE}${color}${else}
${voffset 4}${color0}${font PizzaDude Bullets:size=12}4${font}${color}   Rhythmbox não está rodando${endif}
O que o Mario foi fazer no pscicólogo?
- Ele estava passando por uma fase difícil...

rruella

Citação de: velox256 online 03 de Outubro de 2009, 13:14
Pois é, eu perguntei pelo script DESSA figura que vc mandou... De onde vc pegou já deve ter um pronto, não? Ou quase pronto...


foi desta pagina professor:

http://www.gnome-look.org/content/show.php/CONKY-colors?content=92328

dê uma olhada na segunda figura
Dar como resolvido, ou como solucionado um tópico seu:

http://www.youtube.com/watch?v=cW8isbYhR_M