+ Responder
Pág 1 de 4 1 2 3 4 ÚltimoÚltimo
Mostrar resultados 1 a 20 de 68

Tópico: Conky

  1. #1

    Conky

    Dúvidas sobre o Conky é na thread ao lado. Obrigado.

    ________________________________________________

    O que é o Conky?

    Conky is a system monitor software for the X Window System. It is available for Linux and FreeBSD. It is free software released under the terms of the BSD license. Conky is able to monitor almost all systems variables including CPU, memory, swap, disk space, temperature, top, upload, download, system messages, and much more. It is extremely configurable, however, the configuration can be a little hard to understand.
    en.wikipedia.org/Conky

    Conky is a system monitor for X originally based on the torsmo code. Since it's original conception, Conky has changed a fair bit from it's predecessor. Conky can display just about anything, either on your root desktop or in it's own window. Conky has many built-in objects, as well as the ability to execute programs and scripts, then display the output from stdout.
    conky.sourceforge.net

    Qual o peso disso no sistema?

    No momento em que estou a escrever este post, o Conky está a consumir 560 KiB de RAM. Pouco, como podem ver
    O peso em disco também não destoa. 500 kB, mais coisa menos coisa. Bastante bom.

    Quão configurável é ele?

    Quão longe chega a vossa imaginação? A mim, parece-me o unico limite do programa.
    Podem ver as imensas formas que o programa pode adquirir aqui, aqui e numa thread com um sentido semelhante a esta, aqui.

    Parece-me bem, como obte-lo?

    A opção universal é a do costume: source > necessario libx11-dev >= 6.8.2
    Ou então, podem dar uso ao vosso package manager:
    Código:
    # aptitude install conky
    # emerge app-admin/conky
    # pacman -S conky
    Já o instalei, mas não encontro o ficheiro de configuração

    Bastante natural, já que o Conky não o cria. Posto isto só há uma coisa a fazer: cria-lo vocês

    cd ~ && nano .conkyrc
    E deixem a vossa imaginação voar

    Espero que o programa seja do vosso agrado. E já agora, o post tenha sido util
    Última edição de esquiso : 30-06-2008 às 12:58
    Citar Citar  

  2. #2
    Paralelamente a este tópico, lanço um desafio: partilhem o vosso .conkyrc e deixem um SS, para se tirar umas ideias Pedia que deixassem o vosso .conkyrc entre as tags [code][/code].

    Obviamente, eu começo:



    Código:
    background no
    font Sans:size=9
    use_xft yes
    xftalpha 0.9
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 220 5
    maximum_width 110
    draw_shades yes ### SHADOW ###
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white ### Text Color ###
    default_shade_color black
    default_outline_color green
    alignment bottom_left
    gap_x 12
    gap_y 100
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
    uppercase yes
    
    TEXT
    Uptime: $alignr$uptime
    
    CPU: ${alignr}${freq} MHz
    Proc:${alignr}$processes ($running_processes run)
    Load:${alignr}$loadavg
    
    CPU1 ${alignr}${cpu cpu1}%
    CPU2 ${alignr}${cpu cpu2}%
    
    Ram ${alignr}$mem
    swap ${alignr}$swap
    
    Disco: ${alignr}${fs_free /}
    ${fs_bar 2 /}
    
    ${downspeed ath0} k/s ${alignr} ${upspeed ath0} k/s
    ${downspeedgraph ath0 10,50} ${alignr}${upspeedgraph ath0 10,50}
    ${totaldown ath0} ${alignr}${totalup ath0}
    Citar Citar  

  3. #3
    Toma lá
    Já não sei de onde tirei o meu mas não fui eu que o escrevi
    Código:
    # UBUNTU-CONKY
    # A comprehensive conky script, configured for use on
    # Ubuntu / Debian Gnome, without the need for any external scripts.
    #
    # Based on conky-jc and the default .conkyrc.
    # INCLUDES:
    # - tail of /var/log/messages 
    # - netstat connections to your computer
    #
    # -- Pengo (conky@pengo.us)
    #
    
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_hints undecorated,below,skip_taskbar
    background yes
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # fiddle with window
    use_spacer yes
    use_xft no
    
    # Update interval in seconds
    update_interval 3.0
    
    # Minimum size of text area
    minimum_size 400 5
    
    # Draw shades?
    draw_shades no
    
    # Text stuff
    draw_outline no # amplifies text if yes
    draw_borders yes
    #font arial
    uppercase no # set to yes if you want all text to be in uppercase
    
    # Stippled borders?
    stippled_borders 3
    
    # border margins
    border_margin 9
    
    # border width
    border_width 10
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color grey
    
    own_window_colour brown
    own_window_transparent yes
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    gap_x 10
    gap_y 10
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    $nodename $sysname $kernel on $machine
    $color$stippled_hr
    CPU: ${freq}MHz   Load: ${loadavg}   Temp: ${acpitemp}
    $cpubar
    ${cpugraph 000000 ffffff}
    
    NAME             PID       CPU%      MEM%
    ${top name 1} ${top pid 1}   ${top cpu 1}    ${top mem 1}
    ${top name 2} ${top pid 2}   ${top cpu 2}    ${top mem 2}
    ${top name 3} ${top pid 3}   ${top cpu 3}    ${top mem 3}
    ${top name 4} ${top pid 4}   ${top cpu 4}    ${top mem 4}
    $color$stippled_hr
    RAM:        $memperc%       ${membar 6}$color
    Swap:       $swapperc%       ${swapbar 6}$color
    
    Root:       ${fs_free_perc /}%        		${fs_bar 6 /}$color 
    Home:       ${fs_free_perc /home/axe}%          ${fs_bar 6 /home/axe}$color
    sda1:       ${fs_free_perc /media/sda1}%        ${fs_bar 6 /media/sda1}$color 
    sda2:       ${fs_free_perc /media/sda2}%        ${fs_bar 6 /media/sda2}$color
    $color$stippled_hr
    Internet/Networking Status (${addr eth0}):
    Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
    ${downspeedgraph eth0 25,190 000000 ff0000} ${alignr}${upspeedgraph eth0 25,190 000000 00ff00}$color
    Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
    Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
    $color$stippled_hr
    SYSTEM LOG TAIL
    ${execi 30 tail -n3 /var/log/messages | fold -w67}
    $color$stippled_hr
    ${execi 120 fortune -s | fold -w67}
    #${execi 15 wmctrl -R " - conky"}
    Depois meto o SS

    EDIT: Cá está a fotozita.

    [img=http://img170.imageshack.us/img170/5869/conkytr3.th.jpg]

    EDIT2: Esta coisa não mete o thumbnail. Alguém me explica porquê. Thanks
    Última edição de hellaxe : 17-12-2007 às 10:51
    Call me-me the Manimal
    That's what I am
    Call me-me the Manimal
    Half beast half man
    Avaliação
    Citar Citar  

  4. #4
    Aqui vai:
    Código:
    background yes
    use_xft yes
    xftfont Bitstream Vera Sans Mono:size=9
    xftalpha 0.8
    update_interval 5.0
    total_run_times 0
    own_window yes
    own_window_type desktop
    own_window_transparent yes
    own_window_colour hotpink
    double_buffer yes
    minimum_size 280 5
    draw_shades yes
    draw_outline yes
    draw_borders yes
    draw_graph_borders yes
    stippled_borders 0
    border_margin 5
    border_width 1
    default_color white
    default_shade_color black
    default_outline_color black
    alignment bottom_right
    gap_x 12
    gap_y 12
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 2
    override_utf8_locale no
    use_spacer no
    
    TEXT
    Bat ${color red} ${battery_bar 6,200 BAT0} ${color lightgrey} ${battery_percent}% $battery_time
    $stippled_hr
    ${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
    ${color lightgrey}CPU  ${color #cc2222} $cpu% ${cpubar}
    ${color lightgrey}RAM  $color $mem/$memmax - $memperc% ${membar}
    ${color lightgrey}Swap $color $swap/$swapmax - $swapperc% ${swapbar}
    ${color lightgrey}Proc $color $processes  ${color grey}Running:$color $running_processes
    $stippled_hr
    ${color lightgrey}Rede:
     Down:${color #8844ee} ${downspeed ppp0} k/s${color lightgrey} ${offset 80}Up:${color #22ccff} ${upspeed ppp0} k/s
    ${color #0000ff}${downspeedgraph ppp0 32,150 ff0000 0000ff} ${color #22ccff}${upspeedgraph ppp0 32,150 0000ff ff0000}
    ${color lightgrey}$stippled_hr
    ${color lightgrey}Sistema de Ficheiros:
     / $color${fs_used /}/${fs_size /} ${fs_bar /}
    ${color}Name              PID     CPU%   MEM%
    ${color #ddaa00} ${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}
    ${color}Mem usage
    ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
    ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
    ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
    $stippled_hr
    ${color lightgrey}Meteorologia:
    ${color lightgrey} ${execi 500 /usr/bin/perl -T ./meteo.pl}
    E o SS da praxe:
    Citar Citar  

  5. #5
    Peguei no ficheiro de configuração do esquiso, porque era aquilo que pretendia e apenas foram precisas algumas alterações para dar isto:



    Código:
    background no
    font Sans:size=7
    use_xft yes
    xftalpha 0.9
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 220 5
    maximum_width 110
    draw_shades yes ### SHADOW ###
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white ### Text Color ###
    default_shade_color black
    default_outline_color green
    alignment bottom_left
    gap_x 12
    gap_y 50
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale yes
    uppercase yes
    
    TEXT
    Uptime $alignr$uptime
    Bat $alignr$battery_time
    ${battery_bar 4,84 BAT0} $alignr${battery_percent}%
    
    CPU ${alignr}${freq} MHz
    ${cpubar 4}
    CPU1 ${alignr}${cpu cpu1}%
    CPU2 ${alignr}${cpu cpu2}%
    Proc ${alignr}$processes ($running_processes run)
    
    CPU ${alignr}${acpitemp}ºC
    Disco ${alignr}${hddtemp /dev/sda}
    
    Ram ${alignr}$mem
    ${membar 4}
    swap ${alignr}$swap
    Disco ${alignr}${fs_free /}
    ${fs_bar 3 /}
    
    ${downspeed ppp0} k/s ${alignr} ${upspeed ppp0} k/s
    ${downspeedgraph ppp0 10,50} ${alignr}${upspeedgraph ppp0 10,50}
    ${totaldown ppp0} ${alignr}${totalup ppp0}
    É só gestores na Techzone!

    "Por isso e que nao gosto de ubunto so erros na consola"
    Citar Citar  

  6. #6
    SS: http://img503.imageshack.us/my.php?i...uraecrati4.png (Já o usei noutra discussão no forúm, deve ser-vos familiar )

    Código:
    # Conky sample configuration
    #
    # the list of variables has been removed from this file in favour
    # of keeping the documentation more maintainable.
    # Check http://conky.sf.net for an up-to-date-list.
    
    # set to yes if you want Conky to be forked in the background
    background no
    
    # X font when Xft is disabled, you can pick one with program xfontsel
    #font 5x7
    #font 6x10
    #font 7x13
    #font 8x13
    #font 9x15
    #font *mintsmild.se*
    #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
    
    background yes
    use_xft yes
    xftfont HandelGotD:size=8
    xftalpha 0.1
    update_interval 0.5
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 200 5
    maximum_width 200
    draw_shades yes
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color black
    default_outline_color black
    alignment top_right
    gap_x 18
    gap_y 48
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    net_avg_samples 1
    override_utf8_locale no
    use_spacer yes
    
    TEXT
    $sysname $kernel $alignr $machine
    Intel Centrino Duo $alignr${freq_g cpu0}Ghz
    $alignr
    ${cpugraph cpu0 16,200 ffffff ffffff}
    CPU:1  ${cpu cpu1}% ${cpubar cpu1}
    CPU:2  ${cpu cpu2}% ${cpubar cpu2}
    CPU temp: ${acpitemp}C
    
    
    MEM $alignc $mem / $memmax $alignr $memperc%
    $membar
    Swap:$swapperc% ${swapbar 8}
    
    /home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
    ${fs_bar /home}
    
    Processes 
    $alignr $running_processes Running 
    $alignr $processes Sleeping
    
    Top Processes
    
    CPU $alignr CPU% MEM%
    
    ${top name 1}$alignr${top cpu 1}${top mem 1}
    ${top name 2}$alignr${top cpu 2}${top mem 2}
    ${top name 3}$alignr${top cpu 2}${top mem 3}
    
    MEM $alignr CPU% MEM%
    
    ${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}
    ${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}
    ${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}
    
    IP on eth1 $alignr ${addr eth1}
    
    Down $alignr ${downspeed eth1} kb/s
    ${downspeedgraph eth1 25,200}
    Up $alignr ${upspeed eth1} kb/s
    ${upspeedgraph eth1 16,200}
    
    Connections ${tcp_portmon 32768 61000 count} ${alignr} Service/Port
    
    ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
    ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
    ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
    ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
    ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
    ${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
    Citar Citar  

  7. #7
    Novo Conky, só para desenjoar



    Código:
    #avoid flicker
    double_buffer yes
    
    #own window to run simultanious 2 or more conkys
    own_window  yes
    own_window_transparent yes
    own_window_type normal
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager 
    
    #borders
    draw_borders no
    border_margin 1
    
    #shades
    draw_shades no
    
    #position
    gap_x 1
    gap_y 25
    alignment bottom_left
    
    #behaviour
    update_interval 1
    
    #colour
    default_color  ffffff
    
    #default_shade_color 000000
    own_window_colour 3d352a
    
    #font
    use_xft yes
    xftfont DejavuSans:pixelsize=11
    
    #to prevent window from moving
    use_spacer no
    minimum_size 1262 0
    
    #mpd
    mpd_host localhost
    mpd_port 6600
    
    TEXT
     Uptime: $uptime | Proc: $processes ($running_processes run) | CPU1 ${cpu cpu1}% - CPU2 ${cpu cpu2}% | Ram $mem | Root: ${fs_free /} - Home: ${fs_free /home}
     MPD: ${mpd_smart} | Down: ${downspeed ath0} k/s - Up: ${upspeed ath0} k/s | Down: ${totaldown ath0} - Up: ${totalup ath0}
    Citar Citar  

  8. #8
    Alguém já usou o gkrellm e o conky pra deixar uns bitaites sobre quais os melhores aspectos de um e doutro?
    Gkrellm fanboy here

    Ad decus et ad libertatem nati sumus;
    aut haec teneamus aut cum dignitate moriamur.
    Citar Citar  

  9. #9
    1st Folding then Sex Avatar de muddymind
    Data do Registo
    16-04-2005
    Local
    S. Brás de Alportel / Faro
    Aqui vai o meu:



    Código:
    background no
    font Sans:size=9
    use_xft yes
    xftalpha 0.9
    update_interval 1.0
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 220 5
    maximum_width 320
    draw_shades yes ### SHADOW ###
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white ### Text Color ###
    default_shade_color black
    default_outline_color green
    alignment bottom_left
    gap_x 12
    gap_y 100
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
    uppercase yes
    
    TEXT
    Uptime: $alignr$uptime
    
    
    CPU: ${alignr}${freq} MHz
    Proc:${alignr}$processes ($running_processes run)
    Load:${alignr}$loadavg
    
    
    CPU1: ${cpu cpu1}%${alignr}CPU2: ${cpu cpu2}%
    ${cpugraph cpu1 40,150}${alignr}${cpugraph cpu2 40,150}
    
    
    Bateria: ${battery_percent}% ${alignr} ${battery_time}
    ${battery_bar 5,320}
    
    
    Ram: ${alignr}${mem}/${memmax}
    $membar
    swap ${alignr}${swap}/${swapmax}
    $swapbar
    
    
    Linux: ${fs_used /}/${fs_size /}${alignr}(${fs_free /} free)
    ${fs_bar 5 /}
    Vista: ${fs_used /media/VistaOS}/${fs_size /media/VistaOS}${alignr}(${fs_free /media/VistaOS} free)
    ${fs_bar 5 /media/VistaOS}
    Stuff: ${fs_used /media/sda3}/${fs_size /media/sda3}${alignr}(${fs_free /media/sda3} free)
    ${fs_bar 5 /media/sda3}
    
    
    Networking Status ${alignr} IP: ${addr wlan0}
    ${downspeed wlan0} k/s ${alignr} ${upspeed wlan0} k/s
    ${downspeedgraph wlan0 40,150} ${alignr}${upspeedgraph wlan0 40,150}
    ${totaldown wlan0} ${alignr}${totalup wlan0}
    
    
    WiFi: ${wireless_essid wlan0}
    BitRate: ${wireless_bitrate wlan0}${alignr}${wireless_link_qual_perc wlan0}
    ${wireless_link_bar 5,320 wlan0}
    Citar Citar  

  10. #10
    Citação Resposta Original de VuDu Ver Resposta
    Alguém já usou o gkrellm e o conky pra deixar uns bitaites sobre quais os melhores aspectos de um e doutro?
    Gkrellm fanboy here

    Não se pode dizer que sou um Gkrellm fan, mas neste momento é o que estou a usar. Do que me lembro do conky, acho este mais fácil de usar (GUI e tal...) mas acho o conky mais bonito. Acho que é mais a questão de preferires a informação colada no desktop ou teres uma janela... Estou a monitorizar CPU, MEM, acesso aos discos, wireless, volumes da placa de som e mail (IMAP). Ah, tem a vantagem de teres botões (controlo de volumes) pelo que não é só um display...
    It can't continue forever. The nature of exponentials is that you push
    them out and eventually disaster happens.
    Gordon Moore (Intel co-founder and author of the Moore's law)
    Citar Citar  

  11. #11
    Aqui fica o meu contributo
    Código:
    #avoid flicker
    double_buffer yes
    
    #own window to run simultanious 2 or more conkys
    own_window no
    own_window_transparent yes
    own_window_type override
    own_window_hints undecorate,sticky,skip_taskbar,skip_pager
    
    background false # ^C termina o programa caso o tenhamos arrancado por uma shell, se tiver 'yes' continua a correr em background
    
    #borders
    draw_borders no
    border_margin 3
    
    #shades
    draw_shades no
    
    #position
    gap_x 1100
    #gap_y 24
    
    #behaviour
    update_interval 3
    
    #colour
    default_color white
    own_window_colour 080808
    
    #font
    use_xft yes
    xftfont Dungeon:size=10
    
    #to prevent window from moving
    use_spacer no
    #minimum_size 1268 0
    
    minimum_size 300 300
    maximum_width 300 300
    
    TEXT
    ${font Zecton:bold:size=11}System${hr 2}${font}
      ${offset -14}${execi 30 acpi -b}
      ${offset 5} uptime $alignr $uptime 
      ${offset 5} cpu    $alignr ${cpu cpu1}%
      ${offset 5} Memory ${hr 1}
      ${offset 5} $mem of $memmax$alignr$memperc%
      ${offset 5} ${membar 8}
      ${offset 5} Swap ${hr 1}
      ${offset 5} $swap of $swapmax$alignr$swapperc%
      ${offset 5} ${swapbar 8}  
      ${offset 5} / ${hr 1}
      ${offset 5} ${fs_used /} of ${fs_size /}$alignr${fs_free_perc /}%
      ${offset 5} ${fs_bar /}
      ${offset 5} XP ${hr 1}
      ${offset 5} ${fs_used /media/win} of ${fs_size /media/win} $alignr${fs_free_perc /media/win}%
      ${offset 5} ${fs_bar /media/win}
      ${offset 5} 50 Gb ${hr 1}
      ${offset 5} ${fs_used /media/bak} of ${fs_size /media/bak} $alignr${fs_free_perc /media/bak}%
      ${offset 5} ${fs_bar /media/bak}
    ${font Zecton:bold:size=11}Network${hr 2}${font}
      ${offset 5} Public ip: ${offset 19}${execi 3 curl -s www.whatismyip.com/automation/n09230945.asp}
      ${offset 5} Local ip:  ${offset 22}${addr eth0} | ${addr eth1}
      ${offset 5} SSID: ${offset 49}${exec iwconfig eth1 | grep -i essid | cut -d"\"" -f2}
      ${offset 5} Connection: ${wireless_link_qual_perc eth1}%
      ${offset 5} ${font PizzaDude Bullets:size=14}N${font} ${upspeed eth0} | ${upspeed eth1}k/s
      ${offset 5} ${font PizzaDude Bullets:size=14}T${font} ${downspeed eth0} | ${downspeed eth1}k/s
      ${offset 5} ${font PizzaDude Bullets:size=14}O${font} ${totalup eth0} | ${totalup eth1}
      ${offset 5} ${font PizzaDude Bullets:size=14}U${font} ${totaldown eth0} | ${totaldown eth1}
    Preview:
    Citar Citar  

  12. #12

    Smile Aqui vai o meu... ;)

    O meu é grandinho. Pode-se dizer que tem varias partes dos que ja foram mostrados aqui.

    Código:
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_hints undecorated,below,skip_taskbar
    background no
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # fiddle with window
    use_spacer yes
    use_xft no
    
    # Update interval in seconds
    update_interval 2.0
    
    # Minimum size of text area
    minimum_size 400 5
    
    # Draw shades?
    draw_shades no
    
    # Text stuff
    draw_outline no # amplifies text if yes
    draw_borders no
    #font arial
    uppercase no # set to yes if you want all text to be in uppercase
    
    # Stippled borders?
    #stippled_borders 3
    
    # border margins
    #border_margin 9
    
    # border width
    #border_width 10
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color green
    
    own_window_colour brown
    own_window_transparent yes
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    gap_x 10
    gap_y 10
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    $nodename $sysname $kernel $machine
    Uptime: $uptime
    Intel C2D E6420 @ ${freq_g cpu0}Ghz
    CPU0:  ${cpu cpu0}%${alignc}Graph${cpugraph cpu0 8,200 ffffff ffffff}
    CPU1:  ${cpu cpu1}% ${cpubar cpu1}
    CPU2:  ${cpu cpu2}% ${cpubar cpu2}
    CPU temp: ${acpitemp}C
    
    
    PROCESSES 
    Total     $processes
    Running   $running_processes
    Sleeping  $processes
    
    NAME                PID      CPU%     MEM%
    ${top name 1} ${top pid 1}   ${top cpu 1}   ${top mem 1}
    ${top name 2} ${top pid 2}   ${top cpu 2}   ${top mem 2}
    ${top name 3} ${top pid 3}   ${top cpu 3}   ${top mem 3}
    ${top name 4} ${top pid 4}   ${top cpu 4}   ${top mem 4}
    
    MEM                CPU%     MEM%
    ${top_mem name 1} ${top_mem cpu 1}   ${top_mem mem 1}
    ${top_mem name 2} ${top_mem cpu 2}   ${top_mem mem 2}
    ${top_mem name 3} ${top_mem cpu 3}   ${top_mem mem 3}
    $color$stippled_hr
    RAM ($mem/$memmax):        $memperc%       ${membar 6}$color
    Swap ($swap/$swapmax):            $swapperc%       ${swapbar 6}$color
    
    Root (${fs_used /}/${fs_size /}):     ${fs_free_perc /}%     ${fs_bar 6 /}$color 
    hdb1 (${fs_used /media/extra}/${fs_size /media/extra}):$alignc${fs_free_perc /media/extra}%        ${fs_bar 6 /media/extra}$color
    $color$stippled_hr
    Internet/Networking Status
    Local IP: ${addr wlan0} ESSID: ${wireless_essid wlan0} Speed: ${wireless_bitrate wlan0} Signal: ${wireless_link_qual_perc wlan0}
    Signal: ${wireless_link_bar wlan0}
    Down: $color${downspeed wlan0} k/s ${alignr}Up: ${upspeed wlan0} k/s
    ${downspeedgraph wlan0 25,190 000000 ff0000} ${alignr}${upspeedgraph wlan0 25,190 000000 00ff00}$color
    Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0}
    ${alignc}Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count} Total: ${tcp_portmon 1 65535 count}
    
    Connections ${alignr} Service/Port
    ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
    ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
    ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
    ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
    ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
    ${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
    $color$stippled_hr
    SYSTEM LOG TAIL
    ${execi 30 tail -n3 /var/log/messages | fold -w67}
    $color$stippled_hr
    ${execi 120 fortune -s | fold -w67}
    ${execi 15 wmctrl -R " - conky"}
    Citar Citar  

  13. #13
    Citação Resposta Original de saz Ver Resposta
    O meu é grandinho. Pode-se dizer que tem varias partes dos que ja foram mostrados aqui.

    Código:
    # Create own window instead of using desktop (required in nautilus)
    own_window yes
    own_window_hints undecorated,below,skip_taskbar
    background no
    
    # Use double buffering (reduces flicker, may not work for everyone)
    double_buffer yes
    
    # fiddle with window
    use_spacer yes
    use_xft no
    
    # Update interval in seconds
    update_interval 2.0
    
    # Minimum size of text area
    minimum_size 400 5
    
    # Draw shades?
    draw_shades no
    
    # Text stuff
    draw_outline no # amplifies text if yes
    draw_borders no
    #font arial
    uppercase no # set to yes if you want all text to be in uppercase
    
    # Stippled borders?
    #stippled_borders 3
    
    # border margins
    #border_margin 9
    
    # border width
    #border_width 10
    
    # Default colors and also border colors, grey90 == #e5e5e5
    default_color green
    
    own_window_colour brown
    own_window_transparent yes
    
    # Text alignment, other possible values are commented
    #alignment top_left
    alignment top_right
    #alignment bottom_left
    #alignment bottom_right
    
    # Gap between borders of screen and text
    gap_x 10
    gap_y 10
    
    # stuff after 'TEXT' will be formatted on screen
    
    TEXT
    $nodename $sysname $kernel $machine
    Uptime: $uptime
    Intel C2D E6420 @ ${freq_g cpu0}Ghz
    CPU0:  ${cpu cpu0}%${alignc}Graph${cpugraph cpu0 8,200 ffffff ffffff}
    CPU1:  ${cpu cpu1}% ${cpubar cpu1}
    CPU2:  ${cpu cpu2}% ${cpubar cpu2}
    CPU temp: ${acpitemp}C
    
    
    PROCESSES 
    Total     $processes
    Running   $running_processes
    Sleeping  $processes
    
    NAME                PID      CPU%     MEM%
    ${top name 1} ${top pid 1}   ${top cpu 1}   ${top mem 1}
    ${top name 2} ${top pid 2}   ${top cpu 2}   ${top mem 2}
    ${top name 3} ${top pid 3}   ${top cpu 3}   ${top mem 3}
    ${top name 4} ${top pid 4}   ${top cpu 4}   ${top mem 4}
    
    MEM                CPU%     MEM%
    ${top_mem name 1} ${top_mem cpu 1}   ${top_mem mem 1}
    ${top_mem name 2} ${top_mem cpu 2}   ${top_mem mem 2}
    ${top_mem name 3} ${top_mem cpu 3}   ${top_mem mem 3}
    $color$stippled_hr
    RAM ($mem/$memmax):        $memperc%       ${membar 6}$color
    Swap ($swap/$swapmax):            $swapperc%       ${swapbar 6}$color
    
    Root (${fs_used /}/${fs_size /}):     ${fs_free_perc /}%     ${fs_bar 6 /}$color 
    hdb1 (${fs_used /media/extra}/${fs_size /media/extra}):$alignc${fs_free_perc /media/extra}%        ${fs_bar 6 /media/extra}$color
    $color$stippled_hr
    Internet/Networking Status
    Local IP: ${addr wlan0} ESSID: ${wireless_essid wlan0} Speed: ${wireless_bitrate wlan0} Signal: ${wireless_link_qual_perc wlan0}
    Signal: ${wireless_link_bar wlan0}
    Down: $color${downspeed wlan0} k/s ${alignr}Up: ${upspeed wlan0} k/s
    ${downspeedgraph wlan0 25,190 000000 ff0000} ${alignr}${upspeedgraph wlan0 25,190 000000 00ff00}$color
    Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0}
    ${alignc}Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count} Total: ${tcp_portmon 1 65535 count}
    
    Connections ${alignr} Service/Port
    ${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
    ${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
    ${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
    ${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
    ${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
    ${tcp_portmon 32768 61000 rhost 5} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
    $color$stippled_hr
    SYSTEM LOG TAIL
    ${execi 30 tail -n3 /var/log/messages | fold -w67}
    $color$stippled_hr
    ${execi 120 fortune -s | fold -w67}
    ${execi 15 wmctrl -R " - conky"}


    Um bocado para o grandote
    Citar Citar  

  14. #14
    Bem o meu não tem nada de especial, aliás tou a ver se consigo optimizar o weather e o gmail e incluir o mpd :/

    Código:
    background no
    font DejaVu Sans:size=9
    use_xft yes
    xftalpha 0.9
    update_interval 3 
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 220 5
    maximum_width 110
    draw_shades yes ### SHADOW ###
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white ### Text Color ###
    default_shade_color black
    default_outline_color green
    alignment top_right
    gap_x 15
    gap_y 100
    no_buffers yes
    cpu_avg_samples 2
    
    #mpd
    mpd_host 127.0.0.1
    mpd_port 6600
    
    TEXT
    Uptime: $alignr$uptime
    
    CPU: ${alignr}${freq} MHz
    ${cpubar}
    Running:${alignr}$processes 
    Ram ${alignr}$mem
    swap ${alignr}$swap
    Disco: ${alignr}${fs_free /home}
    ${fs_bar 2 /home}
    GMail: ${alignr}${execi 300 python ~/scripts/gmail.py}
    Weather:${alignr}${execi 1800 weatherget -f ~/scripts/.conkyweatherrc --station-id=POXX0066 --metric}
    
    ${downspeed eth0} k/s ${alignr} ${upspeed eth0} k/s
    ${downspeedgraph eth0 10,50} ${alignr}${upspeedgraph eth0 10,50}
    ${totaldown eth0} ${alignr}${totalup eth0}


    gmail.py
    Código:
    import os
    import string
    
    #Enter your username and password below within double quotes
    # eg. username="username" and password="password"
    username="bolotas"
    password="boascomoomilho"
    
    com="wget -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"
    
    temp=os.popen(com)
    msg=temp.read()
    index=string.find(msg,"<fullcount>")
    index2=string.find(msg,"</fullcount>")
    fc=int(msg[index+11:index2])
    
    if fc==0:
       print "None"
    else:
       print str(fc)+" New"
    .conkyweatherrc
    Código:
    def current():
     print temp+temp_units
     print cloud_type
    Última edição de c3l5o : 11-03-2008 às 19:47
    "A man who dares to waste one hour of time has not discovered the value of life." - Charles Darwin

    Feedback | Blog
    | flickr
    Citar Citar  

  15. #15
    bem depois de alguns problemas aqui vai o "meu" codigo...
    Código:
    background no
    font DejaVu Sans:size=9
    use_xft yes
    xftalpha 0.9
    update_interval 3 
    total_run_times 0
    own_window yes
    own_window_type override
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 220 5
    maximum_width 380
    draw_shades yes 
    draw_outline no
    draw_borders no
    draw_graph_borders yes
    default_color white
    default_shade_color black
    default_outline_color green
    alignment bottom_right
    gap_x 15
    gap_y 100
    no_buffers yes
    cpu_avg_samples 2
    
    #mpd
    mpd_host 127.0.0.1
    mpd_port 6600
    
    TEXT
    INTEL Pentium 4 @ ${freq} MHz ${alignr}(${cpu cpu1}%)
    ${cpubar}
    
    RAM ${alignr}$mem/$memmax ($memperc%)
    ${membar 6}$color
    
    Ubuntu ${alignr}$fs_used/$fs_size ($fs_used_perc%)
    ${fs_bar 6 /home}
    
    XP ${alignr}${fs_used /media/hdb1}/${fs_size /media/hdb1} (${fs_used_perc /media/hdb1}%)
    ${fs_bar 6 /media/hdb1}
    
    Multimédia ${alignr}${fs_used /media/hdd5}/${fs_size /media/hdd5} (${fs_used_perc /media/hdd5}%)
    ${fs_bar 6 /media/hdd5}
    
    Programas ${alignr}${fs_used /media/hdc5}/${fs_size /media/hdc5} (${fs_used_perc /media/hdc5}%)
    ${fs_bar 6 /media/hdc5}
    
    Torrents ${alignr}${fs_used /media/hdb6}/${fs_size /media/hdb6} (${fs_used_perc /media/hdb6}%)
    ${fs_bar 6 /media/hdb6}
    
    Uptime: $uptime
    Processos: $processes ($running_processes Activos)
    GMail: ${execi 300 python ~/gmail.py}
    e o resultado é: http://www.hdd.pt//images//1211628238CapturaEcra.png
    Citar Citar  

  16. #16
    Aqui fica o meu conky:



    Config
    ""You'd better watch who you're calling a child, Lois. Because if I'm a child, you know what that makes you? A Pedophile. And I'll be damned if I'm gonna be lectured by a pervert.""

    ~ Peter Griffin
    Citar Citar  

  17. #17
    mais um

    http://www.deviantart.com/deviation/81285094/

    conky pt

    espero que o esquiso e o neonl nao se importem pois usei parte do vosso codigo

    quis fazer uma coisa diferente
    Citar Citar  

  18. #18
    Citação Resposta Original de thebloggu Ver Resposta
    mais um

    http://www.deviantart.com/deviation/81285094/

    conky pt

    espero que o esquiso e o neonl nao se importem pois usei parte do vosso codigo

    quis fazer uma coisa diferente
    É diferente, mas não vejo muita utilidade :/

    Mas parabéns, tá engenhoso!
    "A man who dares to waste one hour of time has not discovered the value of life." - Charles Darwin

    Feedback | Blog
    | flickr
    Citar Citar  

  19. #19
    Citação Resposta Original de thebloggu Ver Resposta
    mais um

    http://www.deviantart.com/deviation/81285094/

    conky pt

    espero que o esquiso e o neonl nao se importem pois usei parte do vosso codigo

    quis fazer uma coisa diferente
    Está engraçado (comment maior lá no DeviantART).

    Só acho é indecente que tenhas usado o meu código... Que falta de respeito pelo trabalho alheio












    Estou só a brincar . Claro que é este objectivo da comunidade, todos partilhamos o nosso trabalho, para tentar que todos possamos explorar da melhor maneira possível o software/hardware.

    Abraço, neonl
    Citar Citar  

  20. #20
    http://conky.sourceforge.net/

    2008-03-31
    • Conky 1.5.1 released.
    • Added --enable-testing configure option to use insane compiler flags.

    Ad decus et ad libertatem nati sumus;
    aut haec teneamus aut cum dignitate moriamur.
    Citar Citar  

+ Responder
Pág 1 de 4 1 2 3 4 ÚltimoÚltimo

Marcadores

Regras

  • Não pode abrir novos tópicos
  • Não pode colocar mensagens
  • Não pode colocar anexos
  • Não pode editar as suas mensagens

Registe-se no fórum e active o seu registo para deixar de ver este anúncio.