Tazke sem z toho uspesne jelen, k minule verzi conky sem si jeste pridal podminky na zmenu barev velicin, konkretne napeti na UPS, pokud je splnena podmnika a zmeni se barva textu, zobrazuje se v conky odlisna historie grafu od toho mista a casu a pokud podminka zase splnena neni, zobrazuje se zpatky minula historie grafu, ikdyz udalosti nasledovali vezkutecnosti posobe.
Aktualni conky
border_width 1
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
double_buffer yes
use_spacer right
use_xft yes
update_interval 0.5
minimum_size 120 5
maximum_width 217
draw_shades no
draw_borders yes
xftfont ae_AlMothnna:size=8
default_color 7ea4d4
alignment top_right
gap_x 5
gap_y 30
TEXT
${color 93b5e0}CPU:${color 6199e0}${offset 5}${if_match ${hwmon 1 temp 1}>55}${color f58989}${else}${color 6199e0}${endif}${hwmon 1 temp 1}°C${color 6199e0}${offset 5}${freq cpu1}MHz ${offset 5}${execi 300 iostat -c -k -z | tail -2 | head -1 | awk '{print $6}'}%idle ${alignr}${cpu cpu0}%
${color 93b5e0}${cpubar cpu1 6,52} ${cpubar cpu2 6,52} ${cpubar cpu3 6,52} ${cpubar cpu4 6,52}
${color 93b5e0}${cpugraph cpu0 40,217 43648f 93b5e0 -t}
${color 93b5e0}Čas od startu: ${color 6199e0}${alignr}$uptime
${color 8db1dd}${font ae_AlMothnna:bold:size=8}Procesy${font ae_AlMothnna:size=8}${hr 1}
${color 6199e0}${top name 1}${alignr}${top mem_res 1} ${top cpu 1}%
${color 6199e0}${top name 2}${alignr}${top mem_res 2} ${top cpu 2}%
${color 6199e0}${top name 3}${alignr}${top mem_res 3} ${top cpu 3}%
${color 6199e0}${top name 4}${alignr}${top mem_res 4} ${top cpu 4}%
${color 6199e0}${top name 5}${alignr}${top mem_res 5} ${top cpu 5}%
${color 6199e0}${top name 6}${alignr}${top mem_res 6} ${top cpu 6}%
${color 6199e0}${top name 7}${alignr}${top mem_res 7} ${top cpu 7}%
${color 8db1dd}${font ae_AlMothnna:bold:size=8}UPS${font ae_AlMothnna:size=8}${hr 1}${apcupsd 127.0.0.1 3551}
${color 6199e0}${if_match ${apcupsd_linev}<196}${color f58989}${else}${if_match ${apcupsd_linev}>252}${color f58989}$endif$endif${apcupsd_linev}V ${if_match ${apcupsd_timeleft}<7}${color f58989}${else}${color 6199e0}${endif}${alignc}${apcupsd_timeleft}min.${if_match ${apcupsd_charge}<100}${color f58989}${else}${color 6199e0}${endif}${alignr}${apcupsd_charge}%nab.${color 6199e0}${apcupsd_load}%zát.
${color 93b5e0}Minulý: ${if_match "${apcupsd_status}"!="ONLINE "}${color f58989}${else}${color 6199e0}${endif}${apcupsd_lastxfer}
${color 8db1dd}${font ae_AlMothnna:bold:size=8}Paměť${font ae_AlMothnna:size=8}${hr 1}
${color 6199e0}$mem${offset 20}$memmax${alignr}$memeasyfree/$memfree
${color 93b5e0}${membar 6}
${color 93b5e0}${memgraph 40,217 43648f 93b5e0 -t}
${color 93b5e0}Swap: ${color 6199e0}$swap${offset 25}${alignc}$swapmax${alignr}$swapfree
${color 93b5e0}${swapbar 6}
${color 8db1dd}${font ae_AlMothnna:bold:size=8}HDD${font ae_AlMothnna:size=8}${hr 1}
${color 93b5e0}System: ${color 6199e0}${fs_used /}${offset 25}${alignc}${fs_size /}${alignr}${fs_free /}
${color 93b5e0}${fs_bar 6 /}$color
${color 93b5e0}Octavus2: ${color 6199e0}${fs_used /media/Octavus2}${offset 19}${alignc}${fs_size /media/Octavus2}${alignr}${fs_free /media/Octavus2}
${color 93b5e0}${fs_bar 6 /media/Octavus2}
${color 93b5e0}Tercius3: ${color 6199e0}${fs_used /media/Tercius3}${offset 24}${alignc}${fs_size /media/Tercius3}${alignr}${fs_free /media/Tercius3}
${color 93b5e0}${fs_bar 6 /media/Tercius3}
${color 93b5e0}Čtení: ${color 6199e0}${execi 60 iostat -d -g all -m -z | tail -2 | head -1 | awk '{print $5}'}MB${alignr}${diskio_read}/s
${color 93b5e0}${diskiograph_read 40,217 43648f 93b5e0 150000KiB -l -t}
${color 93b5e0}Zápis: ${color 6199e0}${execi 60 iostat -d -g all -m -z | tail -2 | head -1 | awk '{print $6}'}MB${alignr}${diskio_write}/s
${color 93b5e0}${diskiograph_write 40,217 8f2323 f58989 150000KiB -l -t}
${color 8db1dd}${font ae_AlMothnna:bold:size=8}Sít'${font ae_AlMothnna:size=8}${hr 1}
${color 93b5e0}IP adresa:${if_match "${addr eth1}"=="No Address"}${color f58989}${else}${color 6199e0}${endif}${alignr}${addr eth1}
${color 93b5e0}Down: ${color 6199e0}${totaldown eth1}${alignr}${downspeed eth1}/s
${color 93b5e0}${downspeedgraph eth1 40,217 43648f 93b5e0 15000KiB -l -t}
${color 93b5e0}Up: ${color 6199e0}${totalup eth1}${alignr}${upspeed eth1}/s
${color 93b5e0}${upspeedgraph eth1 40,217 8f2323 f58989 15000KiB -l -t}
Konkretni bod, kde sem testoval tuhle chybu
${color 6199e0}${if_match ${apcupsd_linev}<196}${color f58989}${else}${if_match ${apcupsd_linev}>244}${color f58989}$endif$endif${apcupsd_linev}V
Viz obrazova priloha, podle grafu CPU a casu na panelu, de videt ze rozestup je 10 sec, presto pokud je splnena upravena podminka na cervenou barvu pro 244V zobrazi se jina historie grafu, nez kdyz je pod 244V a podminka pro zmenu barvy splnena neni.
Pro zjednodusseni stejne se chova, ikdyz to dam na zatizeni CPU a fakticky se zadna barva nezmeni
${color 6199e0}${if_match ${cpu cpu0}>13}${color 6199e0}$endif${cpu cpu0}
[příloha smazaná administrátorem]