Byla oznámena spolupráce GrapheneOS s Motorolou. Podrobnosti v tiskové zprávě. GrapheneOS (Wikpedie) je varianta Androidu zaměřující se na bezpečnost a soukromí.
Armbian, tj. linuxová distribuce založená na Debianu a Ubuntu optimalizovaná pro jednodeskové počítače na platformě ARM a RISC-V, ke stažení ale také pro Intel a AMD, byl vydán ve verzi 26.2.1. Přehled novinek v Changelogu.
Volí se dvě místa v Radě openSUSE. Seznamte se se čtyřmi kandidáty. Členové projektu openSUSE mohou hlasovat od 1. do 8. března. Výsledky budou oznámeny 9. března.
Společnost OpenAI uzavřela dohodu s americkým ministerstvem obrany o poskytování technologií umělé inteligence (AI) pro utajované sítě americké armády. Firma to oznámila několik hodin poté, co prezident Donald Trump nařídil vládě, aby přestala využívat služby společnosti Anthropic.
Technologická společnost Anthropic v noci na dnešek oznámila, že se obrátí na soud kvůli rozhodnutí ministerstva obrany označit ji za bezpečnostní riziko dodavatelského řetězce poté, co nevyhověla jeho požadavkům týkajícím se používání umělé inteligence (AI). Prezident Donald Trump krátce před tím uvedl, že nařídil federálním úřadům postupně ukončit využívání jejích AI technologií. Spor mezi firmou vyvíjející chatbot Claude a
… více »Zemřel Rob Grant, spolutvůrce kultovního sci-fi seriálu Červený trpaslík.
Apple oznámil, že iPhone a iPad jako první a jediná zařízení pro koncové uživatele splňují požadavky členských států NATO na zabezpečení informací. Díky tomu je možné je používat pro práci s utajovanými informacemi až do stupně „NATO Restricted“, a to bez nutnosti instalovat speciální software nebo měnit nastavení. Žádné jiné běžně dostupné mobilní zařízení tak vysokou úroveň státní certifikace dosud nezískalo.
Americký provozovatel streamovací platformy Netflix odmítl zvýšit nabídku na převzetí filmových studií a streamovací divize konglomerátu Warner Bros. Discovery (WBD). Netflix to ve čtvrtek oznámil v tiskové zprávě. Jeho krok po několikaměsíčním boji o převzetí otevírá dveře k akvizici WBD mediální skupině Paramount Skydance, a to zhruba za 111 miliard dolarů (2,28 bilionu Kč).
Americká společnosti Apple přesune část výroby svého malého stolního počítače Mac mini z Asie do Spojených států. Výroba v závodě v Houstonu by měla začít ještě v letošním roce, uvedla firma na svém webu. Apple také plánuje rozšířit svůj závod v Houstonu o nové školicí centrum pro pokročilou výrobu. V Houstonu by měly vzniknout tisíce nových pracovních míst.
Vědci Biotechnologické společnosti Cortical Labs vytvořili biopočítač nazvaný CL1, který využívá živé lidské mozkové buňky vypěstované z kmenových buněk na čipu. Po úspěchu se hrou PONG se ho nyní snaží naučit hrát DOOM. Neurony přijímají signály podle toho, co se ve hře děje, a jejich reakce jsou převáděny na akce jako pohyb nebo střelba. V tuto chvíli systém hraje velmi špatně, ale dokáže reagovat, trochu se učit a v reálném čase se hrou
… více »Po nejakom čase znovu idem písať o panely conky. Odkazy na predchádzajúce blogy: Link1 Link2
V tomto zápise popíšem novší vzhľad panela conky a zverejním opravy staršej verzie.
Funkcie na získavanie informácii v paneli conky sú popísané v man stránke.Všetky funkcie použité sú v rámci zabudovaných súčasti panela conky.
V tejto časti sú k dispozícii údaje o čase, ktorý je systém spustený a informácia o názve PC
TEXT
${color grey}Uptime:$color $uptime_short
${color grey}Hostname:$color $nodename
Táto časť poskytuje informácie počte aktívnych procesov a záťaži v 1/5/15.
${color grey}Procesy
${color grey}Celkom: ${color} $processes \
${color grey}Beziace: ${color} $running_processes
${color grey}Zataz: ${loadavg}
Táto časť poskytuje informácie o teplote,otáčkach ventilátorov a stave napájania MB. V tejto sekcii sú definované aj farebné schémy na základe hodnôt teploty, otáčok a napätia.
${if_match ${hwmon temp 1} < 50}${color grey}CPUTEMP1:${color green}${hwmon temp 1}$else${if_match ${hwmon temp 1} < 60}${color yellow}CPUTEMP1:${hwmon temp 1}$else${color red}CPUTEMP1:${hwmon temp 1}$endif$endif
${if_match ${hwmon temp 1} < 69}${color green}CPU TEMP OK$else${color red}CPU TEMP PEAK$endif
${if_match ${hwmon temp 2} < 40}${color grey}MBTEMP1:${color green}${hwmon temp 2}$else${if_match ${hwmon temp 2} < 50 }${color yellow}MBTEMP1:${hwmon temp 2}$else${color red}MBTEMP:${hwmon temp 2}$endif$endif
${if_match ${hwmon temp 2} < 49}${color green}MB TEMP OK$else${color red}MB TEMP PEAK$endif
${if_match ${hwmon fan 1} > 600}${color grey}CPUFAN1:${color green}${hwmon fan 1}RPM$else${color red}CPUFAN1 FAILURE$endif
${if_match ${hwmon fan 2} > 600}${color grey}CHAFAN1:${color green}${hwmon fan 2}RPM$else${color red}MDFAN1 FAILURE$endif
${color grey}Vcore: ${hwmon vol 0}V
${color grey}+3.3V: ${hwmon vol 1}V
${color grey}+5 V: ${hwmon vol 2}V
${color grey}+12 V: ${hwmon vol 3}V
Časť indikácie využitia CPU.
${if_match ${cpu cpu1} <=60}${color green}CPU1:${cpubar cpu1 5,100}$else${if_match ${cpu cpu1} < 80}${color yellow}CPU1:${cpubar cpu1 5,100}$else${color red}CPU1:${cpubar cpu1 5,100}$endif$endif ${if_match ${cpu cpu1} == 0}${color}I$else${if_match ${cpu cpu1} <=60}${color green}L$else${if_match ${cpu cpu1} < 80}${color yellow}M$else${color red}H$endif$endif$endif
${if_match ${cpu cpu2} <=60}${color green}CPU2:${cpubar cpu2 5,100}$else${if_match ${cpu cpu2} < 80}${color yellow}CPU2:${cpubar cpu2 5,100}$else${color red}CPU2:${cpubar cpu2 5,100}$endif$endif ${if_match ${cpu cpu2} == 0}${color}I$else${if_match ${cpu cpu2} <=60}${color green}L$else${if_match ${cpu cpu2} < 80}${color yellow}M$else${color red}H$endif$endif$endif
${if_match ${cpu cpu3} <=60}${color green}CPU3:${cpubar cpu3 5,100}$else${if_match ${cpu cpu3} < 80}${color yellow}CPU3:${cpubar cpu3 5,100}$else${color red}CPU3:${cpubar cpu3 5,100}$endif$endif ${if_match ${cpu cpu3} == 0}${color}I$else${if_match ${cpu cpu3} <=60}${color green}L$else${if_match ${cpu cpu3} < 80}${color yellow}M$else${color red}H$endif$endif$endif
${if_match ${cpu cpu4} <=60}${color green}CPU4:${cpubar cpu4 5,100}$else${if_match ${cpu cpu4} < 80}${color yellow}CPU4:${cpubar cpu4 5,100}$else${color red}CPU4:${cpubar cpu4 5,100}$endif$endif ${if_match ${cpu cpu4} == 0}${color}I$else${if_match ${cpu cpu4} <=60}${color green}L$else${if_match ${cpu cpu4} < 80}${color yellow}M$else${color red}H$endif$endif$endif
${if_match ${cpu} < 50}${color green}TOTAL USAGE ${cpu}%$else${if_match ${cpu} < 60}${color yellow}TOTAL USAGE ${cpu}%$else${if_match ${cpu} < 75}${color orange}TOTAL USAGE ${cpu}%$else${color red}TOTAL USAGE ${cpu}%$endif$endif$endif ${if_match ${cpu} < 10}${color}IDLE$else${if_match ${cpu} < 50}${color green}LOW$else${if_match ${cpu} < 60}${color yellow}MEDIUM$else${color red}HIGH$endif$endif$endi
V tejto části sú indikátory využitia RAM
${if_match $memperc <= 60}${color grey}RAM: ${color}$memmax$else${if_match $memperc < 70}${color grey}RAM: ${color yellow}$memmax$else${color red}RAM :$memmax$endif$endif
${color grey}Pouzita: ${if_match $memperc <= 60}${color green}$mem - $memperc%$else${if_match $memperc < 70}${color yellow}$mem - $memperc%$else${color red}$mem - $memperc$endif$endif
${color grey}Volna:$color $memfree
${color grey}Buffers:$color $buffers
${color grey}Cached:$color $cached
${color grey}RAM: ${if_match $memperc <= 60}${color green}${membar 5,100}$else${if_match $memperc < 70}${color yellow}${membar 5,100}$else${color red}${membar 5,100}$endif$endif
${if_match $memperc <= 60}${color}$else${if_match $memperc < 70}${color yellow}RAM usage Warning$else${color red}RAM usage HIGH$endif$endi
Informácie o využiti SWAP priestoru.
${if_match $swapperc <= 60}${color grey}SWAP: ${color}$swapmax$else${if_match $swapperc < 70}${color grey}SWAP: ${color yellow}$swapmax$else${color red}SWAP: $swapmax$endif$endif
${color grey}Pouzity: ${if_match $swapperc <=60}${color green}$swap - $swapperc%$else${if_match $swapperc < 70}${color yellow}$swap - $swapperc%$else${color red}$swap - $swapperc$endif$endif
${color grey}Volny:$color $swapfree
${if_match $swapperc == 0 }${color green}SWAP USAGE 0%$else${color grey}SWAP: ${if_match $swapperc <=60}${color green}${swapbar 5,100}$else${if_match $swapperc <70}${color yellow}${swapbar 5,100}$else${color red}${swapbar 5,100}$endif$endif$endif
${if_match $swapperc <= 60}${color}$else${if_match $swapperc < 70}${color yellow}SWAP usage Warning$else${color red}SWAP usage HIGH.$endif$endif
${if_match $swapperc < 70}$color$else${color red} EXPECT OOM killer$endif
IO operácie blokových zariadení.
${color grey}I/O:
${if_match "${diskio_read}" == "0B"}${color grey}Read:$else${color grey}Read:$color${diskio_read}$endif ${if_match "${diskio_write}" == "0B"}${color grey}Write:$else${color grey}Write:$color${diskio_write}$endif
Informácia o využiti jednotlivých části filesystému.
${color grey}Filesystem:
${if_mounted /}${fs_size /} ${color grey}${if_match ${fs_used_perc /} < 75 }${color green}${fs_free /}$else${if_match ${fs_used_perc /} < 90 }$color${color yellow}${fs_free /}$else${color red}${fs_free /}$endif$endif${color grey} /$endif
${if_mounted /home}${fs_size /home} ${color grey}${if_match ${fs_used_perc /home} < 75 }${color green}${fs_free /home}$else${if_match ${fs_used_perc /home} < 90 }$color${color yellow}${fs_free /home}$else${color red}${fs_free /home}$endif$endif${color grey} /home$endif
${if_mounted /var}${fs_size /var} ${color grey}${if_match ${fs_used_perc /var} < 75 }${color green}${fs_free /var}$else${if_match ${fs_used_perc /var} < 90 }$color${color yellow}${fs_free /var}$else${color red}${fs_free /var}$endif$endif${color grey} /var$endif
${if_mounted /usr}${fs_size /usr} ${color grey}${if_match ${fs_used_perc /usr} < 75 }${color green}${fs_free /usr}$else${if_match ${fs_used_perc /usr} < 90 }$color${color yellow}${fs_free /usr}$else${color red}${fs_free /usr}$endif$endif${color grey} /usr$endif
${if_mounted /usr/src}${fs_size /usr/src} ${color grey}${if_match ${fs_used_perc /usr/src} < 75 }${color green}${fs_free /usr/src}$else${if_match ${fs_used_perc /usr/src} < 90 }$color${color yellow}${fs_free /usr/src}$else${color red}${fs_free /usr/src}$endif$endif${color grey} /usr/src$endif
${if_mounted /opt}${fs_size /opt} ${color grey}${if_match ${fs_used_perc /opt} < 75 }${color green}${fs_free /opt}$else${if_match ${fs_used_perc /opt} < 90 }$color${color yellow}${fs_free /opt}$else${color red}${fs_free /opt}$endif$endif${color grey} /opt$endif
Činnosť sieťového rozhrania.
${color grey}Networking:
${if_up eth0}${if_match "${upspeed eth0}" == "0B"}${color grey}Up:$else${color grey}Up:$color${upspeed eth0}$endif ${if_match "${downspeed eth0}" == "0B"}${color grey}Down:$else${color grey}Down:$color${downspeed eth0}$endif$endif
Na záver prikládam celé konfiguračné súbory pre blog moja configurácia conky 2 a 3. Predpokladám, že kód je dostatočne zrozumiteľný.
conky.conf pre moja configuracia conky 2
alignment bottom_right
background yes
border_width 1
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
diskio_avg_samples 2
use_xft no
xftfont DejaVu Sans Mono:size=10
gap_x 10
gap_y 30
minimum_size 5 5
net_avg_samples 2
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class panel_1
own_window_type panel
stippled_borders 0
update_interval 1
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
double_buffer
TEXT
${color grey}Uptime:$color $uptime
${color grey}Hostname:$color $nodename
$hr
${color grey}Procesy
${color grey}Celkom: ${color} $processes \
${color grey}Beziace: ${color} $running_processes
${color grey}Zataz: ${loadavg}
$color\
$hr
${color grey}CPUTEMP: ${hwmon temp 1}
${color grey}MBTEMP: ${hwmon temp 2}
${color grey}CPUFAN1: ${hwmon fan 1}RPM
${color grey}CHAFAN1: ${hwmon fan 2}RPM
${color grey}Vcore: ${hwmon vol 0}V
${color grey}+3.3V: ${hwmon vol 1}V
${color grey}+5V: ${hwmon vol 2}V
${color grey}+12V: ${hwmon vol 3}V
$hr
${color}\
${if_match ${cpu cpu1} < 80}${color grey}CPU1$else${color red}CPU1$endif ${if_match ${cpu cpu2} < 80}${color grey}CPU2$else${color red}CPU2$endif ${if_match ${cpu cpu3} < 80}${color grey}CPU3$else${color red}CPU3$endif ${if_match ${cpu cpu4} < 80}${color grey}CPU4$else${color red}CPU4$endif
${if_match ${cpu cpu1} <= 50}${color green}${cpugauge cpu1 (10,10)}$else${if_match ${cpu cpu1} <= 80}${color yellow}${cpugauge cpu1 (10,10)}$else${color red}${cpugauge cpu1 (10,10)}$endif$endif${color} ${if_match ${cpu cpu2} <= 50}${color green}${cpugauge cpu2 (10,10)}$else${if_match ${cpu cpu2} <= 80}${color yellow}${cpugauge cpu2 (10,10)}$else${color red}${cpugauge cpu2 (10,10)}$endif$endif${color} ${if_match ${cpu cpu3} <= 50}${color green}${cpugauge cpu3 (10,10)}$else${if_match ${cpu cpu3} <= 80}${color yellow}${cpugauge cpu3 (10,10)}$else${color red}${cpugauge cpu3 (10,10)}$endif$endif${color} ${if_match ${cpu cpu4} <= 50}${color green}${cpugauge cpu4 (10,10)}$else${if_match ${cpu cpu4} <= 80}${color yellow}${cpugauge cpu4 (10,10)}$else${color red}${cpugauge cpu4 (10,10)}$endif$endif${color}
${if_match ${cpu cpu} <= 50}${color green}${cpubar cpu (100,10)}$else${if_match ${cpu cpu} <= 80}${color yellow}${cpubar cpu (100,10)}$else${color red}${cpubar cpu (10,100)}$endif$endif${color}
$hr
${if_match ${memperc} < 80}${color grey}RAM: $memmax$else${color red}RAM: $memmax $endif
${if_match ${memperc} <=60}${color grey}Pouzita: ${color green}$mem - $memperc%$else${if_match ${memperc} <=80}${color grey}Pouzita: ${color yellow}$mem - $memperc%$else${color red}Pouzita: ${color red}$mem - $memperc%$endif$endif
${if_match ${memperc} <=60}${color green}${membar (10,100)}$else${if_match ${memperc} <=80}${color yellow}${membar (10,100)}$else${color red}${membar (10,100)}$endif$endif
${color grey}Volna: ${color}$memfree
${color grey}Buffer: ${color}${buffers}
${color grey}Cached: ${color}${cached}
$hr
$color${if_match "${swap}" == "0B"}${color grey}Swap: $swapfree$else${if_match ${swapperc} < 70 }${color green}Swap: $swapfree$else${if_match {$swapperc} => 70}${color red}Swap: $swapfree$endif$endif
$color${if_match "${swap}" == "0B"}${color grey}Pouzite: $else${if_match ${swapperc} < 70}${color green}Pouzite: $else${if_match ${swapperc} => 70}${color red}Pouzite: $endif$endif$color${if_match "${swap}" == "0B"}${color grey}$swap $else${if_match ${swapperc} < 70}${color green}$swap $else${if_match ${swapperc} => 70}${color red}$swap $endif$endif$color - $swapperc %
$color${if_match ${swapperc} == 0}${color grey}NO SWAP$else${if_match ${swapperc} < 70}${color green}${swapbar (10,100)}$else${if_match ${swapperc} => 70}${color red}${swapbar (10,100)}$endif$endif$endif
$color$hr
${color grey}Disk:
${color grey}Pocet I/O citanie: ${color}${diskio_read sda}
${color grey}Pocet I/O zapis: ${color}${diskio_write sda}
${color grey}\
$hr
${color grey}Filesystem:
${color grey}/
${fs_size /} ${color grey}${if_match ${fs_used_perc /} < 75 }${color green}${fs_free /}$else${if_match ${fs_used_perc /} < 90 }$color${color yellow}${fs_free /}$else${color red}${fs_free /}$endif$endif
${color grey}/home
${fs_size /home} ${color grey}${if_match ${fs_used_perc /home} < 75 }${color green}${fs_free /home}$else${if_match ${fs_used_perc /home} < 90 }$color${color yellow}${fs_free /home}$else${color red}${fs_free /home}$endif$endif
${color grey}/var
${fs_size /var} ${color grey}${if_match ${fs_used_perc /var} < 75 }${color green}${fs_free /var}$else${if_match ${fs_used_perc /var} < 90 }$color${color yellow}${fs_free /var}$else${color red}${fs_free /var}$endif$endif
${color grey}/usr
${fs_size /usr} ${color grey}${if_match ${fs_used_perc /usr} < 75 }${color green}${fs_free /usr}$else${if_match ${fs_used_perc /usr} < 90 }$color${color yellow}${fs_free /usr}$else${color red}${fs_free /usr}$endif$endif
${color grey}/usr/src
${fs_size /usr/src} ${color grey}${if_match ${fs_used_perc /usr/src} < 75 }${color green}${fs_free /usr/src}$else${if_match ${fs_used_perc /usr/src} < 90 }$color${color yellow}${fs_free /usr/src}$else${color red}${fs_free /usr/src}$endif$endif
${color grey}/opt
${fs_size /opt} ${color grey}${if_match ${fs_used_perc /opt} < 75 }${color green}${fs_free /opt}$else${if_match ${fs_used_perc /opt} < 90 }$color${color yellow}${fs_free /opt}$else${color red}${fs_free /opt}$endif$endif
$color\
$hr
${color grey}Networking:
${color grey}Up:${color}${upspeed eth0}
${color grey}Down:${color}${downspeed eth0}
conky.conf pre moja configuracia conky 3
alignment bottom_right
background yes
border_width 1
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
#diskio_avg_samples 2
use_xft no
xftfont DejaVu Sans Mono:size=10
gap_x 10
gap_y 30
minimum_size 5 5
#net_avg_samples 2
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class panel_1
own_window_type panel
stippled_borders 0
update_interval 1
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
double_buffer
short_units
TEXT
${color grey}Uptime:$color $uptime_short
${color grey}Hostname:$color $nodename
$hr
${color grey}Procesy
${color grey}Celkom: ${color} $processes \
${color grey}Beziace: ${color} $running_processes
${color grey}Zataz: ${loadavg}
$color\
$hr
${if_match ${hwmon temp 1} < 50}${color grey}CPUTEMP1:${color green}${hwmon temp 1}$else${if_match ${hwmon temp 1} < 60}${color yellow}CPUTEMP1:${hwmon temp 1}$else${color red}CPUTEMP1:${hwmon temp 1}$endif$endif
${if_match ${hwmon temp 1} < 69}${color green}CPU TEMP OK$else${color red}CPU TEMP PEAK$endif
${if_match ${hwmon temp 2} < 40}${color grey}MBTEMP1:${color green}${hwmon temp 2}$else${if_match ${hwmon temp 2} < 50 }${color yellow}MBTEMP1:${hwmon temp 2}$else${color red}MBTEMP:${hwmon temp 2}$endif$endif
${if_match ${hwmon temp 2} < 49}${color green}MB TEMP OK$else${color red}MB TEMP PEAK$endif
${if_match ${hwmon fan 1} > 600}${color grey}CPUFAN1:${color green}${hwmon fan 1}RPM$else${color red}CPUFAN1 FAILURE$endif
${if_match ${hwmon fan 2} > 600}${color grey}CHAFAN1:${color green}${hwmon fan 2}RPM$else${color red}MDFAN1 FAILURE$endif
${color grey}Vcore: ${hwmon vol 0}V
${color grey}+3.3V: ${hwmon vol 1}V
${color grey}+5 V: ${hwmon vol 2}V
${color grey}+12 V: ${hwmon vol 3}V
$hr
${color}\
${if_match ${cpu cpu1} <=60}${color green}CPU1:${cpubar cpu1 5,100}$else${if_match ${cpu cpu1} < 80}${color yellow}CPU1:${cpubar cpu1 5,100}$else${color red}CPU1:${cpubar cpu1 5,100}$endif$endif ${if_match ${cpu cpu1} == 0}${color}I$else${if_match ${cpu cpu1} <=60}${color green}L$else${if_match ${cpu cpu1} < 80}${color yellow}M$else${color red}H$endif$endif$endif
${if_match ${cpu cpu2} <=60}${color green}CPU2:${cpubar cpu2 5,100}$else${if_match ${cpu cpu2} < 80}${color yellow}CPU2:${cpubar cpu2 5,100}$else${color red}CPU2:${cpubar cpu2 5,100}$endif$endif ${if_match ${cpu cpu2} == 0}${color}I$else${if_match ${cpu cpu2} <=60}${color green}L$else${if_match ${cpu cpu2} < 80}${color yellow}M$else${color red}H$endif$endif$endif
${if_match ${cpu cpu3} <=60}${color green}CPU3:${cpubar cpu3 5,100}$else${if_match ${cpu cpu3} < 80}${color yellow}CPU3:${cpubar cpu3 5,100}$else${color red}CPU3:${cpubar cpu3 5,100}$endif$endif ${if_match ${cpu cpu3} == 0}${color}I$else${if_match ${cpu cpu3} <=60}${color green}L$else${if_match ${cpu cpu3} < 80}${color yellow}M$else${color red}H$endif$endif$endif
${if_match ${cpu cpu4} <=60}${color green}CPU4:${cpubar cpu4 5,100}$else${if_match ${cpu cpu4} < 80}${color yellow}CPU4:${cpubar cpu4 5,100}$else${color red}CPU4:${cpubar cpu4 5,100}$endif$endif ${if_match ${cpu cpu4} == 0}${color}I$else${if_match ${cpu cpu4} <=60}${color green}L$else${if_match ${cpu cpu4} < 80}${color yellow}M$else${color red}H$endif$endif$endif
${if_match ${cpu} < 50}${color green}TOTAL USAGE ${cpu}%$else${if_match ${cpu} < 60}${color yellow}TOTAL USAGE ${cpu}%$else${if_match ${cpu} < 75}${color orange}TOTAL USAGE ${cpu}%$else${color red}TOTAL USAGE ${cpu}%$endif$endif$endif ${if_match ${cpu} < 10}${color}IDLE$else${if_match ${cpu} < 50}${color green}LOW$else${if_match ${cpu} < 60}${color yellow}MEDIUM$else${color red}HIGH$endif$endif$endif
${color}\
$hr
${if_match $memperc <= 60}${color grey}RAM: ${color}$memmax$else${if_match $memperc < 70}${color grey}RAM: ${color yellow}$memmax$else${color red}RAM :$memmax$endif$endif
${color grey}Pouzita: ${if_match $memperc <= 60}${color green}$mem - $memperc%$else${if_match $memperc < 70}${color yellow}$mem - $memperc%$else${color red}$mem - $memperc$endif$endif
${color grey}Volna:$color $memfree
${color grey}Buffers:$color $buffers
${color grey}Cached:$color $cached
${color grey}RAM: ${if_match $memperc <= 60}${color green}${membar 5,100}$else${if_match $memperc < 70}${color yellow}${membar 5,100}$else${color red}${membar 5,100}$endif$endif
${if_match $memperc <= 60}${color}$else${if_match $memperc < 70}${color yellow}RAM usage Warning$else${color red}RAM usage HIGH$endif$endif
${color}\
$hr
${if_match $swapperc <= 60}${color grey}SWAP: ${color}$swapmax$else${if_match $swapperc < 70}${color grey}SWAP: ${color yellow}$swapmax$else${color red}SWAP: $swapmax$endif$endif
${color grey}Pouzity: ${if_match $swapperc <=60}${color green}$swap - $swapperc%$else${if_match $swapperc < 70}${color yellow}$swap - $swapperc%$else${color red}$swap - $swapperc$endif$endif
${color grey}Volny:$color $swapfree
${if_match $swapperc == 0 }${color green}SWAP USAGE 0%$else${color grey}SWAP: ${if_match $swapperc <=60}${color green}${swapbar 5,100}$else${if_match $swapperc <70}${color yellow}${swapbar 5,100}$else${color red}${swapbar 5,100}$endif$endif$endif
${if_match $swapperc <= 60}${color}$else${if_match $swapperc < 70}${color yellow}SWAP usage Warning$else${color red}SWAP usage HIGH.$endif$endif
${if_match $swapperc < 70}$color$else${color red} EXPECT OOM killer$endif
$color\
$hr
${color grey}I/O:
${if_match "${diskio_read}" == "0B"}${color grey}Read:$else${color grey}Read:$color${diskio_read}$endif ${if_match "${diskio_write}" == "0B"}${color grey}Write:$else${color grey}Write:$color${diskio_write}$endif
${color }\
$hr
${color grey}Filesystem:
${if_mounted /}${fs_size /} ${color grey}${if_match ${fs_used_perc /} < 75 }${color green}${fs_free /}$else${if_match ${fs_used_perc /} < 90 }$color${color yellow}${fs_free /}$else${color red}${fs_free /}$endif$endif${color grey} /$endif
${if_mounted /home}${fs_size /home} ${color grey}${if_match ${fs_used_perc /home} < 75 }${color green}${fs_free /home}$else${if_match ${fs_used_perc /home} < 90 }$color${color yellow}${fs_free /home}$else${color red}${fs_free /home}$endif$endif${color grey} /home$endif
${if_mounted /var}${fs_size /var} ${color grey}${if_match ${fs_used_perc /var} < 75 }${color green}${fs_free /var}$else${if_match ${fs_used_perc /var} < 90 }$color${color yellow}${fs_free /var}$else${color red}${fs_free /var}$endif$endif${color grey} /var$endif
${if_mounted /usr}${fs_size /usr} ${color grey}${if_match ${fs_used_perc /usr} < 75 }${color green}${fs_free /usr}$else${if_match ${fs_used_perc /usr} < 90 }$color${color yellow}${fs_free /usr}$else${color red}${fs_free /usr}$endif$endif${color grey} /usr$endif
${if_mounted /usr/src}${fs_size /usr/src} ${color grey}${if_match ${fs_used_perc /usr/src} < 75 }${color green}${fs_free /usr/src}$else${if_match ${fs_used_perc /usr/src} < 90 }$color${color yellow}${fs_free /usr/src}$else${color red}${fs_free /usr/src}$endif$endif${color grey} /usr/src$endif
${if_mounted /opt}${fs_size /opt} ${color grey}${if_match ${fs_used_perc /opt} < 75 }${color green}${fs_free /opt}$else${if_match ${fs_used_perc /opt} < 90 }$color${color yellow}${fs_free /opt}$else${color red}${fs_free /opt}$endif$endif${color grey} /opt$endif
$color\
$hr
${color grey}Networking:
${if_up eth0}${if_match "${upspeed eth0}" == "0B"}${color grey}Up:$else${color grey}Up:$color${upspeed eth0}$endif ${if_match "${downspeed eth0}" == "0B"}${color grey}Down:$else${color grey}Down:$color${downspeed eth0}$endif$endif
EDIT : Pridanie screenshotu pri idle.25122012 00:02
Tiskni
Sdílej: