abclinuxu.cz AbcLinuxu.cz itbiz.cz ITBiz.cz HDmag.cz HDmag.cz abcprace.cz AbcPráce.cz
AbcLinuxu hledá autory!
Inzerujte na AbcPráce.cz od 950 Kč
Rozšířené hledání
×
    dnes 18:33 | Nová verze

    Realtimová strategie Warzone 2100 (Wikipedie) byla vydána ve verzi 4.6.0. Podrobný přehled novinek, změn a oprav v ChangeLogu na GitHubu. Nejnovější verzi Warzone 2100 lze již instalovat také ze Snapcraftu a Flathubu.

    Ladislav Hagara | Komentářů: 0
    dnes 12:22 | IT novinky

    Polské vývojářské studio CD Projekt Red publikovalo na Printables.com 3D modely z počítačové hry Cyberpunk 2077.

    Ladislav Hagara | Komentářů: 0
    dnes 11:44 | Pozvánky

    Organizátoři konference LinuxDays 2025 vydali program a zároveň otevřeli registrace. Akce se uskuteční 4. a 5. října na FIT ČVUT v pražských Dejvicích, kde vás čekají přednášky, workshopy, stánky a spousta šikovných lidí. Vstup na akci je zdarma.

    Petr Krčmář | Komentářů: 4
    včera 22:00 | IT novinky

    Uživatelé komunikátoru Signal si mohou svá data přímo v Signalu bezpečně zálohovat a v případě rozbití nebo ztráty telefonu následně na novém telefonu obnovit. Zálohování posledních 45 dnů je zdarma. Nad 45 dnů je zpoplatněno částkou 1,99 dolaru měsíčně.

    Ladislav Hagara | Komentářů: 0
    včera 18:44 | Zajímavý článek

    Server Groklaw, zaměřený na kauzy jako právní spory SCO týkající se Linuxu, skončil před 12 lety, resp. doména stále existuje, ale web obsahuje spam propagující hazardní hry. LWN.net proto v úvodníku připomíná důležitost zachovávání komunitních zdrojů a upozorňuje, že Internet Archive je také jen jeden.

    🇵🇸 | Komentářů: 5
    včera 14:22 | Nová verze

    Jakub Vrána vydal Adminer ve verzi 5.4.0: "Delší dobu se v Admineru neobjevila žádná závažná chyba, tak jsem nemusel vydávat novou verzi, až počet změn hodně nabobtnal."

    Ladislav Hagara | Komentářů: 1
    včera 13:22 | IT novinky

    V Německu slavnostně uvedli do provozu (en) nejrychlejší počítač v Evropě. Superpočítač Jupiter se nachází ve výzkumném ústavu v Jülichu na západě země, podle německého kancléře Friedricha Merze otevírá nové možnosti pro trénování modelů umělé inteligence (AI) i pro vědecké simulace. Superpočítač Jupiter je nejrychlejší v Evropě a čtvrtý nejrychlejší na světě (TOP500). „Chceme, aby se z Německa stal národ umělé inteligence,“ uvedl na

    … více »
    Ladislav Hagara | Komentářů: 16
    7.9. 04:11 | Komunita

    V Berlíně probíhá konference vývojářů a uživatelů desktopového prostředí KDE Plasma Akademy 2025. Při té příležitosti byla oznámena alfa verze nové linuxové distribuce KDE Linux.

    Ladislav Hagara | Komentářů: 1
    6.9. 17:11 | Nová verze

    Byl vydán Debian 13.1, tj. první opravná verze Debianu 13 s kódovým názvem Trixie a Debian 12.12, tj. dvanáctá opravná verze Debianu 12 s kódovým názvem Bookworm. Řešeny jsou především bezpečnostní problémy, ale také několik vážných chyb. Instalační média Debianu 13 a Debianu 12 lze samozřejmě nadále k instalaci používat. Po instalaci stačí systém aktualizovat.

    Ladislav Hagara | Komentářů: 2
    5.9. 23:44 | IT novinky

    Evropská komise potrestala Google ze skupiny Alphabet pokutou 2,95 miliardy eur (71,9 miliardy Kč) za porušení antimonopolní legislativy. Podle EK, která mimo jiné plní funkci antimonopolního orgánu EU, se Google dopustil protisoutěžních praktik ve svém reklamním byznysu. Google v reakci uvedl, že rozhodnutí považuje za chybné a hodlá se proti němu odvolat. EK ve věci rozhodovala na základě stížnosti Evropské rady vydavatelů. Podle

    … více »
    Ladislav Hagara | Komentářů: 47
    Pro otevření více webových stránek ve webovém prohlížečí používám
     (83%)
     (7%)
     (2%)
     (3%)
     (3%)
     (2%)
    Celkem 157 hlasů
     Komentářů: 11, poslední 4.9. 16:12
    Rozcestník

    moja konfiguracia conky 3

    24.12.2012 21:43 | Přečteno: 981× | linux | poslední úprava: 25.12.2012 00:05

    Po nejakom čase znovu idem písať o panely conky. Odkazy na predchádzajúce blogy: Link1 Link2

    Úvod

    V tomto zápise popíšem novší vzhľad panela conky a zverejním opravy staršej verzie.

    Zmeny

    Popis části zdrojového kódu.

    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.

    Prvá časť

    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
    

    Druha časť

    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}
    

    Tretia časť

    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
    

    Štvrtá časť

    Č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
    

    Piata časť

    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
    

    Šiesta časť

    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
    

    Siedma časť

    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
    

    Osma časť

    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
    

    Deviata časť

    Č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
    

    Záver

    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

           

    Hodnocení: 100 %

            špatnédobré        

    Obrázky

    moja konfiguracia conky 3, obrázek 1 moja konfiguracia conky 3, obrázek 2

    Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

    Komentáře

    Vložit další komentář

    David Heidelberg avatar 24.12.2012 22:14 David Heidelberg | skóre: 46 | blog: blog_
    Rozbalit Rozbalit vše Re: moja konfiguracia conky 3
    70C max? Sice čím méně - tím lépe, ale ten procesor vydrzi i okolo 90 a v nejhorsim se sam vypne (kolem 100-120).
    ISSN 1214-1267   www.czech-server.cz
    © 1999-2015 Nitemedia s. r. o. Všechna práva vyhrazena.