Strona 1 z 1

Conky a kursy walut

: 04 listopada 2009, 19:02
autor: Ult1me
Użeram się z tym kilka dni, i nic nie mogę znaleźć.

Zacznę od configu:

Kod: Zaznacz cały

# Conky, a system monitor, based on torsmo
#Ult1me 2009

text_buffer_size 5000
alignment top_left
background no
border_width 1
xftalpha 0.8
own_window_transparent yes
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
#xftfont DejaVu Sans Mono:size=10
font Trebuchet MS:size=10
xftfont Trebuchet MS:size=10
gap_x 850
gap_y 75
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
own_window yes
own_window_class Conky
own_window_type desktop
stippled_borders 0
update_interval 0.4 #odświeżanie
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
override_utf8_locale yes
maximum_width x 450
minimum_width x 128
double_buffer yes

TEXT
System ${hr 2}$color
${alignc} ${scroll 17 $nodename - $sysname $kernel na $machine ||| }
${color white}Uruchomiony:$color $uptime temu

Czas ${hr 2}$color
${font Trebuchet MS:size=25} ${alignc} ${time %H:%M}
${font Trebuchet MS:size=10} ${alignc} ${time %A}, ${time %e %B %G}

Parametry ${hr 2}$color
${color white}Częstotliwość CPU:$color $freq MHz
${color white}Temperatura systemu:${acpitemp} stopni
Temperatura HDD: ${exec nc localhost 7634 | cut -d'|' -f4} stopni

Zasoby ${hr 2}$color
${color white}Użycie RAM:$color $mem/$memmax
$memperc% ${membar 4}
${color white}Użycie SWAP:$color $swap/$swapmax
$swapperc% ${swapbar 4}
${color white}Użycie CPU:$color
$cpu% ${cpubar 4}
${cpugraph white D2691E}

IP: ${execi 600 /home/ult1me/.conky/wan} ${hr 2}$color
Wysyłanie ${upspeed eth0} $alignr ${downspeed eth0} Pobieranie
${downspeedgraph eth0 25,107 white D2691E} ${alignr}${upspeedgraph eth0 25,107 white D2691E}
£acznie ${totalup eth0} $alignr łącznie ${totaldown eth0}

Notowania ${hr 2}$color
${color white}WIG${tab 32}WIG20${tab 32}mWIG40${tab 32}sWIG80
${color white}${execpi 60 /home/ult1me/.conky/wigwam.sh WIG -percent -conky}${tab 32}${execpi 60 /home/ult1me/.conky/wigwam.sh WIG20 -percent -conky}${tab 32}${execpi 60 /home/ult1me/.conky/wigwam.sh mWIG40 -percent -conky}${tab 32}${execpi 60 /home/ult1me/.conky/wigwam.sh sWIG80 -percent -conky} $color

Pogoda dla Kielc ${hr 2}$color
${texeci 600 /home/ult1me/.conky/pogodynka.sh}
# $hr
# ${color grey}Name              PID   CPU%   MEM%
# ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
# ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
# ${color lightgrey} ${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}
# $Procesy:$color $processes  ${color grey}Running:$color $running_processes
# ${color grey}Partycje:
# / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
Chcę dodać do niego kurs walut, również skryptem. Wspomoże mnie ktoś? Szukałem, ale nic na ten temat.