own_window_title ZajOnDz - Conky - Lewy panel
show_graph_range no

top_name_width 13

# Conky settings #
background no
update_interval 1

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
#imlib_cache_size 0

# Window specifications #

own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 205 550
maximum_width 205
short_units yes

alignment tl
gap_x 2
gap_y 2

# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# Text settings #
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5

uppercase no

temperature_unit celsius


default_color FFFFFF

# Lua Load  #
lua_load ~/.conky/.lua/scripts/lewa.lua
lua_draw_hook_pre clock_rings

TEXT
${image ~/.conky/tekst.png -p 15,25}
${execi 60 wget --output-document=ip.html http://ip.iptelnow.com/}
${execi 60 wget --output-document=pogoda.html http://e-wczasowicz.pl/pogoda,dzisiaj,bielsk,podlaski,1490.html} # Podaj link do pogody swojej miejscowosci
${image ~/.conky/obraz.png -s 205x700 -p 0,35 -f 600}
${voffset -5}
${goto 60}${cpugraph cpu1 20,135}${voffset -29}
${goto 33}${voffset 30} ${cpu cpu1}% ${voffset -30}
${goto 30}CPU1${goto 60}${hr}
${goto 65}${top name 1} ${goto 150}$alignr${top cpu 1}%   
${goto 65}${top name 2} ${goto 150}$alignr${top cpu 2}%   
${goto 65}${top name 3} ${goto 150}$alignr${top cpu 3}%   
${voffset -2}     
${goto 60}${cpugraph cpu2 20,135}${voffset -29}
${goto 33}${voffset 30} ${cpu cpu2}%${voffset -30}
${goto 30}CPU2${goto 60}$hr
${goto 65}Procesy ${goto 155}$alignr${processes}   
${goto 65}Aktywne ${goto 155}$alignr${running_processes}   
${goto 65}Vcore $alignr ${exec sensors | grep "Vcore:" | cut --bytes=14-18}   
${voffset -2}
${goto 60}${memgraph 20,135}${voffset -29}
${goto 33}${voffset 30} ${memperc}% ${voffset -30}
${goto 30}RAM${goto 60}$hr
${goto 65}${top_mem name 1} ${goto 150}$alignr${top_mem mem 1}%   
${goto 65}${top_mem name 2} ${goto 150}$alignr${top_mem mem 2}%   
${goto 65}${top_mem name 3} ${goto 150}$alignr${top_mem mem 3}%   
${voffset -2}
${goto 60}${downspeedgraph eth1 20,135}${voffset -29}
${goto 33}${voffset 30} eth1 ${voffset -30}
${goto 30}DL/s${goto 60}$hr
${goto 65}Predkosc ${goto 155}$alignr${downspeed eth1}/s   
${goto 65}Pobrano ${goto 155}$alignr${totaldown eth1}   
${goto 65}IP Wew. $alignr${addr eth1}   
${voffset -2}
${goto 60}${downspeedgraph eth1 20,135}${voffset -29}
${goto 33}${voffset 30} eth1 ${voffset -30}
${goto 30}UP/s${goto 60}$hr
${goto 65}Predkosc ${goto 155}$alignr${upspeed eth1}/s   
${goto 65}Wyslano ${goto 155}$alignr${totalup eth1}   
${goto 65}IP Zew. $alignr ${execi 60 grep "IPAddress" ip.html | cut -d '>' -f 4 |cut -d '<' -f1}   

${goto 137}${voffset 10}${hwmon fan 2} RPM ${voffset -8}
${goto 30}FAN ${goto 60}$hr 
${goto 65}CPU ${goto 155}$alignr${hwmon temp 2} C   
${goto 65}GPU $alignr ${nvidia temp} C   
${goto 65}HDD $alignr ${hddtemp /dev/sda} C   
${voffset 5}
${hr}
${goto 10}${font Arial:size=11}Pogoda dla ${execi 60 grep "Pogoda <strong>" pogoda.html | cut -d '>' -f 2 |cut -d '<' -f1}$font
${goto 40}Temperatura: $alignr ${execi 60 grep --max-count=1 "<dt>Temperatura</dt><dd>" pogoda.html | cut -d '>' -f 4 |cut -d '&' -f1}C   
${goto 40}Cisnienie: $alignr ${execi 60 grep "Ciśnienie" pogoda.html |  cut -d '>' -f 4 |cut -d '<' -f1}   
${goto 40}Predkosc wiatru: $alignr ${execi 60 grep --max-count=1 "Prędkość wiatru" pogoda.html | cut -d '>' -f 4 |cut -d '<' -f1}   
${goto 40}Opady deszczu: $alignr ${execi 60 grep "Opady deszczu" pogoda.html | cut -d '>' -f 4 |cut -d '<' -f1}   
${goto 40}Zachmurzenie: $alignr ${execi 60 grep "<dt>Zachmurzenie" pogoda.html | cut -d '>' -f 4 |cut -d '<' -f1}   
${goto 40}Wilgotnosc: $alignr ${execi 60 grep "Wilgotność" pogoda.html | cut -d '>' -f 4 |cut -d '<' -f1}   
${goto 40}Czas pomiaru: $alignr ${execi 60 grep "Czas pomiaru" pogoda.html | cut -d '>' -f 4 |cut -d '<' -f1}   








${execi 60 rm ip.html}
${execi 60 rm pogoda.html}
