Conky

Depois de algum trabalho a por o lm_sensors a funcionar e a arranjar maneira de ir buscar a percentagem do que estava a foldar de maneira a que ficasse sempre direito, quer com 1 quer com 2 algarismos, aqui fica o meu conky, baseado no do esquiso e no do aluminium23. :-)



O código para a % do folding é este. Não sei se será o melhor preformance-wise, mas funciona.
Código:
${execi 120 cat /home/psantos/folding/one/FAHlog.txt | grep Completed | tail -n1 | cut -f2 -d'(' | cut -f1 -d'%' |  cut -f1 -d' '}%
De 2 em 2 minutos vai ao log ver a última percentagem e pega no que está entre o '(' e o '%'.

O .conkyrc:
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
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 12
gap_y 50
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT
CPU1: ${alignr}${cpu cpu1}% / ${platform coretemp.0 temp 1}ºC
CPU2: ${alignr}${cpu cpu2}% / ${platform coretemp.1 temp 1}ºC
P@F: ${alignr}${execi 120 cat /home/psantos/folding/one/FAHlog.txt | grep Completed | tail -n1 | cut -f2 -d'(' | cut -f1 -d'%' |  cut -f1 -d' '}% / ${execi 120 cat /home/psantos/folding/two/FAHlog.txt | grep Completed | tail -n1 | cut -f2 -d'(' | cut -f1 -d'%' |  cut -f1 -d' '}%

RAM ${alignr}$mem
${membar 2}
swap ${alignr}$swap
${swapbar 2}

/ ${alignr}${fs_free /}
${fs_bar 4 /}
/home ${alignr}${fs_free /home}
${fs_bar 4 /home}
/media/data ${alignr}${fs_free /media/data}
${fs_bar 4 /media/data}
/lan/filmes ${alignr}${fs_free /media/filmes}
${fs_bar 4 /media/filmes}
/lan/tmpshare ${alignr}${fs_free /media/tmpshare}
${fs_bar 4 /media/tmpshare}

${downspeed eth0} k/s ${alignr} ${upspeed eth0} k/s
${downspeedgraph eth0 10,50} ${alignr}${upspeedgraph eth0 10,50}
${totaldown eth0} ${alignr}${totalup eth0}


Changelog :-P
  • 03.05.08 - (FAH) Em vez de assumir que a última linha é a que contém a percentagem da WU, faz-se um grep a essas linhas e só depois se vai buscar a última.
  • 04.05.08 - (FAH) Por alguma razão, umas vezes no log diz "(X%)" e outras "(X percent)", alterei de modo a dar das duas maneiras.
 
Última edição:
folding.sh - bash script

Para quem interessar, fiz um pequeno script para ver algumas informações relativas ao folding.
Foi a primeira vez que fiz um script em Bash, queria começar a dar uns toques e aproveitei para treinar fazendo este script.

O script pode retornar o seguinte:
  • Nome do projecto (Nome completo ou apenas pXXXX) - proj / proj_short
  • Percentagem - perc
  • Pontos - points
Nada que não se possa fazer numa linha, eu sei, mas é uma maneira de manter o .conkyrc mais simples. :-)

Para os pontos funcionarem, é necessário ter-se o html dos projectos do Folding@Home na mesma pasta do script: http://fah-web.stanford.edu/psummary.html

O script está também feito para ser usado com mais que um processo a correr. Está neste momento configurado para 3 processos, mas é facilmente editável. Basta editar o FOLD_PATH e, caso haja mais ou menos de 3 consolas, adicionar ou apagar elif's.

Exemplo:
Código:
Bash:
$ ./folding.sh 1 perc

No .conkyrc:
${execi 120 ~/folding.sh 1 perc}
Neste exemplo, retorna a percentagem da 1ª consola de folding.

O script está aqui: http://pastebin.com/f2b1ab657 (Update: 10-5-08)

Como já disse, foi a primeira vez que programei um script bash. Aliás, até agora só tinha programado em C, C++, PHP e JAVA, nunca tinha feito nada neste género de linguagem. Sendo assim, provavelmente muita coisa está mal (embora funcione) e agradecia sugestões. :-)

:kfold:
 
Última edição:
O meu por agora anda bastante básico

142t2t3.png


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 none
minimum_size 1440 0

#mpd
mpd_host localhost
mpd_port 6600

#Other
no_buffers true

TEXT
 Up: $uptime | Proc: $processes | CPU1: ${cpu cpu1}% - CPU2: ${cpu cpu2}% | Ram: $mem | / ${fs_free /} | ↓: ${downspeed wifi0} k/s - ${totaldown wifi0} | ↑: ${upspeed wifi0} k/s - ${totalup wifi0}
 
"A minha Conky":

conkyli7.png


Código:
#JoaoVr :)

alignment top_right

background no

border_margin 2
border_width 1

top_cpu_separate false

default_color white
default_shade_color black
default_outline_color white

default_color white
default_shade_color black
default_outline_color white

double_buffer yes

draw_borders no
draw_graph_borders no
draw_outline no
draw_borders no
draw_shades no

gap_x 5
gap_y 5

override_utf8_locale no

own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

short_units yes

stippled_borders 8

update_interval 1.5

use_spacer right

use_xft yes

xftalpha 0.8

xftfont Terminus:size=8

TEXT
${color slate grey}Uptime: ${color #ddaa00}$uptime
${color slate grey}Hora: ${color }${time %H:%M}
${color slate grey}Data: ${color }${time %d %B %G}

${color slate grey}Cpu:    ${color }$cpu%  ${acpitemp}C
${color slate grey}Mem:  ${color }$memperc% de $memmax
${color slate grey}Swap: ${color }$swapperc% de $swapmax

${color slate grey}Processos: ${color }$processes ($running_processes)

${color slate grey}Cpu:
${color #ddaa00} ${top name 1}${top_mem cpu 1}
${color lightgrey} ${top name 2}${top cpu 2}
${color lightgrey} ${top name 3}${top cpu 3}
${color lightgrey} ${top name 4}${top cpu 4}

${color slate grey}Mem:
${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${color lightgrey} ${top_mem name 4}${top_mem mem 4}

${color slate grey}Hdd: ${color }${fs_free /}/${fs_size /}
${alignc}${fs_bar 3,125 /}

${color slate grey}Internet: ${color #ddaa00}${wireless_essid wlan0}
${color }E: ${upspeed wlan0}K/s ${alignr} R: ${downspeed wlan0}K/s
${upspeedgraph wlan0 15,70} ${alignr}${downspeedgraph wlan0 15,70}
${totalup wlan0} ${alignr}${totaldown wlan0}

Aceitam-se sugestões!

P.S.: Passado umas horas valentes a minha conky desaparece, é normal?
 
Última edição:
Boas!

Aqui fica o meu... nada de especial, alias... maior parte das coisas foram retiradas dos que ja ca estavam. Apenas alterei para as minhas necessidades.

Código:
background no
#font Sans:size=9
use_xft yes
xftalpha 0.9
xftfont Dungeon:size=9
update_interval 1.0
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 140
draw_shades yes ### SHADOW ###
draw_outline no
draw_borders no
draw_graph_borders no
default_color white ### Text Color ###
default_shade_color black
default_outline_color grey
alignment top_right
gap_x 12
gap_y 100
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no

TEXT
${color slate grey}uptime: ${color light grey}$alignr$uptime

${color slate grey}cpu: ${color light grey}${alignr}${freq} MHz
${color slate grey}cpu_temp:${alignr}${color light grey} ${platform w83627ehf.656 temp 2}ºC
${color slate grey}cpu1: ${color light grey}${alignr}${cpu cpu1}% 
${color slate grey}cpu2: ${color light grey}${alignr}${cpu cpu2}%

${color slate grey}ram: ${color light grey}${alignr}$mem
${color #aaadae}${membar 7}

${offset 45}${color slate grey}Discos:
${color slate grey}linux: ${color light grey}${alignr}${fs_free /}
${color #aaadae}${fs_bar 7 /}
${color slate grey}disco: ${color light grey}${alignr}${fs_free /media/sda1}
${color #aaadae}${fs_bar 7 /media/sda1}
${color slate grey}xp: ${color light grey}${alignr}${fs_free /media/sdb1}
${color #aaadae}${fs_bar 7 /media/sdb1}

${offset 45}${color slate grey}Internet:
${color light blue}${downspeed eth1} k/s ${color}${alignr} ${color #ddaa00}${upspeed eth1} k/s
${color light green}${downspeedgraph eth1 10,50}${alignr}${color #e3493e}${upspeedgraph eth1 10,50}
${color light grey}${totaldown eth1} ${alignr}${totalup eth1}
 
Última edição pelo moderador:
Estou a gostar bastante desta configuração:

capturaecrabv7.png


Código:
#JoaoVr :)

alignment top_middle

background no

top_cpu_separate false

default_color white

double_buffer yes

draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no

gap_y 0

override_utf8_locale yes

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

short_units yes

update_interval 1

use_xft yes

xftalpha 0.9

xftfont Dungeon:size=7

TEXT
${color slate grey}Uptime: ${color #ddaa00}$uptime ${color slate grey}| ${color slate grey}Cpu: ${color}$cpu% ${acpitemp}ºC ${color slate grey}| ${color slate grey}Mem: ${color}$memperc% ${color slate grey}| ${color slate grey}Swap: ${color}$swapperc% ${color slate grey}| ${color slate grey}Processos: ${color}$processes ($running_processes) ${color slate grey}| ${color slate grey}Hdd0: ${color}${fs_used /} / ${fs_size /} ${color slate grey}| ${color slate grey}Internet: ${color #ddaa00}${wireless_essid wlan0} ${color slate grey}| ${color #e3493e}↑: ${color}${upspeed wlan0}K/s ${color slate grey}- ${color}${totalup wlan0} ${color #e3493e}↓: ${color}${downspeed wlan0}K/s ${color slate grey}- ${color}${totaldown wlan0}
 
bem, uma mistura de estilos hehehe


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 10
gap_y 0
#alignment bottom_left
alignment top_left


#behaviour
update_interval 2

#colour
default_color  ffffff

#default_shade_color 000000
own_window_colour 3d352a

#font
use_xft yes
xftfont DejavuSans:pixelsize=9

#to prevent window from moving
use_spacer right
minimum_size 1152 0


TEXT
${color slate grey}A64:    Ligado : ${color #ddaa00} $uptime ${color slate grey} | Proc: ${color} $processes ($running_processes run) ${color slate grey}| CPU  ${color} ${cpu cpu1}%  -  ${acpitemp}ºC  ${color slate grey} |  Ram ${color} $mem ${color slate grey}- SWAP ${color} $swap  ${color slate grey}  | / : ${color}${fs_free /} - ${fs_size /} ${color slate grey} | /home: ${color}${fs_free /home} - ${fs_size /home} ${color slate grey}| /Pastos: ${color}${fs_free /Pastos}- ${fs_size /Pastos}${color slate grey}   |  REDE | Down: ${color}${downspeed eth1} k/s ${color slate grey} - Up: ${color}${upspeed eth1} k/s  ${color slate grey}|
 
Última edição:
bem, uma mistura de estilos hehehe


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 10
gap_y 0
#alignment bottom_left
alignment top_left


#behaviour
update_interval 2

#colour
default_color  ffffff

#default_shade_color 000000
own_window_colour 3d352a

#font
use_xft yes
xftfont DejavuSans:pixelsize=9

#to prevent window from moving
use_spacer right
minimum_size 1152 0


TEXT
${color slate grey}A64:    Ligado à : ${color #ddaa00} $uptime ${color slate grey} | Proc: ${color} $processes ($running_processes run) ${color slate grey}| CPU  ${color} ${cpu cpu1}%  -  ${acpitemp}ºC  ${color slate grey} |  Ram ${color} $mem ${color slate grey}- SWAP ${color} $swap  ${color slate grey}  | / : ${color}${fs_free /} - ${fs_size /} ${color slate grey} | /home: ${color}${fs_free /home} - ${fs_size /home} ${color slate grey}| /Pastos: ${color}${fs_free /Pastos}- ${fs_size /Pastos}${color slate grey}   |  REDE | Down: ${color}${downspeed eth1} k/s ${color slate grey} - Up: ${color}${upspeed eth1} k/s  ${color slate grey}|

Desculpa estar a ser mete-nojo mas tens um erro de português no uptime. Não é "ligado à..." mas sim "ligado há..." :).
 


.conkyrc
Código:
background yes
use_xft yes
xftfont HandelGotD:size=9
xftalpha 0.5
update_interval 3.0
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 250 5
maximum_width 250
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 12
gap_y 48
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT
$sysname $kernel on $machine
${font StyleBats:size=18}P${font} Uptime $alignr $uptime
${font StyleBats:size=18}X${font} Load $alignr $loadavg
${font StyleBats:size=18}V${font} Public IP $alignr ${color}${execi 1800 wget -O - http://whatismyip.org/ | tail}${color}
${font StyleBats:size=18}T${font} $processes processes ($running_processes running)

${font PizzaDude Bullets:size=16}N${font} ${color white}Highest CPU:
${color de0b0b}${top name 1}${top cpu 1}
${color white}${top name 2}${top cpu 2}
${top name 3}${top cpu 3}
${top name 4}${top cpu 4}
${top name 5}${top cpu 5}
${font PizzaDude Bullets:size=16}O${font} ${color white}Highest MEM:
${color de0b0b}${top_mem name 1}${top_mem mem 1}
${color white}${top_mem name 2}${top_mem mem 2}
${top_mem name 3}${top_mem mem 3}
${top_mem name 4}${top_mem mem 4}
${top_mem name 5}${top_mem mem 5}

${font StyleBats:size=18}A${font} CPU Core 1 $alignr ${cpu cpu0}%
${cpubar cpu0}
${font StyleBats:size=18}A${font} CPU Core 2 $alignr ${cpu cpu1}%
${cpubar cpu1}

${font PizzaDude Bullets:size=16}J${font} MEM $alignc $mem / $memmax $alignr $memperc%
$membar
${font StyleBats:size=18}B${font} swap $alignc $swap / $swapmax $alignr $swapperc%
${swapbar}

${font StyleBats:size=18}F${font} / $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${fs_bar /}
${font StyleBats:size=18}G${font} /usr $alignc ${fs_used /usr} / ${fs_size /usr} $alignr ${fs_free_perc /usr}%
${fs_bar /usr}
${font StyleBats:size=18}G${font} /home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}

${font weather:size=28}z${font} M/B CPU $alignr ${hwmon temp 1}C / ${hwmon temp 2}C
${font weather:size=28}x${font} Hard Drives 
$alignr /dev/sda ${hddtemp /dev/sda}
$alignr /dev/hdc ${hddtemp /dev/hdc}

LAN: $alignr ${addr eth0}
${font PizzaDude Bullets:size=16}r${font} Down:${color} $alignr ${downspeed eth0} k/s${color} ${offset 80}
${font PizzaDude Bullets:size=16}v${font} Up:${color} $alignr ${upspeed eth0} k/s ${offset 80}
Fonts:
PIZZADUDEBULLETS.ttf
stylbcc_.ttf
wef_____.ttf

Conky transparency on KDE
Código:
To KDE Users a way to make a transparent conky:

Use this settings in .conkyrc for transparent background on conky for KDE

own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_page


a) Install feh in your linux distro.

b)Put the code below in a script in ~/.kde/Autostart folder to apply the root window wallpaper automatically on login.

feh --bg-scale `dcop kdesktop KBackgroundIface currentWallpaper 1`
 
Última edição:
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 ([email protected])
#

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
background no #Transparent background.

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 5

# Minimum size of text area
minimum_size 260 5

# Draw shades?
draw_shades no

# Draw borders around graphs
draw_graph_borders no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
xftfont Eurostile:size=7
xftalpha 0.7
#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 white

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 23

# stuff after 'TEXT' will be formatted on screen

TEXT
${font arial black:size=11}${color orange}SYSTEM ${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
${color orange}${font openlogos:size=26}T$color${font}
${voffset -38}${goto 40}$sysname  $kernel on $machine${voffset -18}
${voffset 16}${goto 40}$nodename  ${font arial black:size=6}UP: $font$uptime ${voffset -18}
${voffset 6}${font arial black:size=26}${time %e}$font ${voffset -17}${time %A, }${time %B} ${time %G}
${voffset -2}${goto 65}${font arial black:size=7} ${time %I:%M %p}
${font arial black:size=9}${color orange}CPU ${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
${font arial black:size=6}USAGE (AVG): $font${cpu cpu0}%
${cpugraph cpu0 303030 C0C0C0}
${font arial black:size=6}CORE 1: $font${cpu cpu1}% $alignr ${font arial black:size=6}CORE 2: $font${cpu cpu2}%
${cpugraph cpu1 25,140 303030 C0C0C0}  $alignr${cpugraph cpu2 25,140 303030 C0C0C0}
${font arial black:size=6}TOP 3 PROCESSES:${offset 40}$font${top name 1} ${alignr -4}${top cpu 1} % 
${offset 157}$font${top name 2}${alignr}${top cpu 2} %
${offset 157}$font${top name 3}${alignr}${top cpu 3} %
${font arial black:size=9}${color orange}MEMORY ${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
${font arial black:size=6}RAM: $font$memperc% ${alignr}$mem ${font arial black:size=6}/ $font$memmax 
${membar 4}
${font arial black:size=6}SWAP: $font$swapperc% ${alignr}$swap ${font arial black:size=6}/ $font$swapmax 
${swapbar 4}
${font arial black:size=6}TOP 5 PROCESSES:${offset 40}$font${top_mem name 1}${alignr -4}${top mem 1} % 
${offset 157}$font${top_mem name 2}${alignr}${top mem 2} %
${offset 157}$font${top_mem name 3}${alignr}${top mem 3} %
${offset 157}$font${top_mem name 4}${alignr}${top mem 4} %
${offset 157}$font${top_mem name 5}${alignr}${top mem 5} %
${font arial black:size=9}${color orange}DISK ${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
${font arial black:size=6}VOLUME${goto 116}TYPE${goto 180}%FREE${alignr 1}SIZE$font
${font arial black:size=6}ROOT:$font${goto 120}${fs_type /}${goto 190}${fs_free_perc /}%${alignr}${fs_size /}
${fs_bar 4 /}$color
${font arial black:size=6}HOME:$font${goto 120}${fs_type /home/}${goto 190}${fs_free_perc /home/}%${alignr 1}${fs_size /home/}
${fs_bar 4 /home/}$color
${font arial black:size=6}MEDIA:$font${goto 120}${fs_type /media/}${goto 190}${fs_free_perc /media/}%${alignr 1}${fs_size /media/}
${fs_bar 4 /media/}$color
${font arial black:size=9}${color orange}NETWORK ${color}${font arial black:size=8}INFORMATION${color orange} ${hr 2}$color$font
${font arial black:size=6}LOCAL: $font${addr eth0} $alignr ${color} ${font arial black:size=6}EXTERNAL: $font${execi 14400 wget -O - http://whatismyip.org/ | tail}${color}
${font arial black:size=6}DOWN: $font$color${downspeed eth0} k/s ${alignr}${font arial black:size=6}UP: $font${upspeed eth0} k/s
${downspeedgraph eth0 25,140 303030 C0C0C0} ${alignr}${upspeedgraph eth0
25,140 303030 C0C0C0}$color
${font arial black:size=6}TOTAL: $font${totaldown eth0} ${alignr}${font arial black:size=6}TOTAL: $font${totalup eth0}
${color orange}${hr 2}$color
 
Código:
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# 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 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no 
draw_borders no
uppercase no 

# Stippled borders?
stippled_borders 3

# border margins
border_margin 0

# border width
border_width 0

# 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_left

# Gap between borders of screen and text
gap_x 20
gap_y 44


# Possible variables to be used:
#
#      Variable         Arguments                  Description                

#     addr              (interface)   IP address for an interface
#     acpiacadapter                   ACPI ac adapter state.                   
#     acpifan                         ACPI fan state                           
#     acpitemp                        ACPI temperature.                        
#     adt746xcpu                      CPU temperature from therm_adt746x       
#     adt746xfan                      Fan speed from therm_adt746x             
#     alignr            (num)         Right-justify text, with space of N
#     alignc                          Align text to centre
#     battery           (num)         Remaining capasity in ACPI or APM        
#                     battery. ACPI battery number can be      
#                     given as argument (default is BAT0).     
#     buffers                         Amount of memory buffered                
#     cached                          Amount of memory cached                  
#     color             (color)       Change drawing color to color            
#     cpu                             CPU usage in percents                    
#     cpubar            (height)      Bar that shows CPU usage, height is      
#                     bar's height in pixels                 
#     cpugraph          (height),(width) (gradient colour 1) (gradient colour 2)
#                     CPU usage graph, with optional colours in hex,
#                     minus the #.
#     downspeed         net           Download speed in kilobytes              
#     downspeedf        net           Download speed in kilobytes with one     
#                     decimal                                  
#     downspeedgraph    net (height),(width) (gradient colour 1) (gradient colour 2)
#                     Download speed graph, colours defined in
#                     hex, minus the #.
#     exec              shell command Executes a shell command and displays    
#                     the output in conky. warning: this      
#                     takes a lot more resources than other    
#                     variables. I'd recommend coding wanted   
#                     behaviour in C and posting a patch :-).  
#     execbar           shell command Same as exec, except if the first value
#                     return is a value between 0-100, it
#                     will use that number for a bar.
#                     The size for the bar is currently fixed,
#                     but that may change in the future.
#     execgraph         shell command Same as execbar, but graphs values
#     execi             interval, shell command
#                      Same as exec but with specific interval. 
#                     Interval can't be less than              
#                     update_interval in configuration.        
#    font          font        Specify a different font.  Only applies
#                    to one line.
#     fs_bar            (height), (fs)Bar that shows how much space is used on 
#                     a file system. height is the height in   
#                     pixels. fs is any file on that file      
#                     system.                                  
#     fs_free           (fs)          Free space on a file system available    
#                     for users.                               
#     fs_free_perc      (fs)          Free percentage of space on a file       
#                     system available for users.              
#     fs_size           (fs)          File system size                         
#     fs_used           (fs)          File system used space                   
#     hr                (height)      Horizontal line, height is the height in 
#                     pixels                                   
#        
#                     your local computer.                     
#     if_running        (process)     if PROCESS is running, display
#                     everything if_running and the matching $endif
#     if_existing       (file)        if FILE exists, display everything between
#                     if_existing and the matching $endif
#     if_mounted        (mountpoint)  if MOUNTPOINT is mounted, display everything between
#                     if_mounted and the matching $endif
#     else                            Text to show if any of the above are not true
#     kernel                          Kernel version                          
#     linkstatus        (interface)   Get the link status for wireless connections
#     loadavg           (1), (2), (3) System load average, 1 is for past 1     
#                     minute, 2 for past 5 minutes and 3 for   
#                     past 15 minutes.                         
#     machine                         Machine, i686 for example                
#     mails                           Mail count in mail spool. You can use    
#                     program like fetchmail to get mails from 
#                     some server using your favourite         
#                     protocol. See also new_mails.            
#     mem                             Amount of memory in use                  
#     membar            (height)      Bar that shows amount of memory in use   
#     memmax                          Total amount of memory                   
#     memperc                         Percentage of memory in use
#     
#     metar_ob_time
#     metar_temp
#     metar_tempf                     Temp in F
#     metar_windchill
#     metar_dew_point                 There are a bunch of these
#     metar_rh                        and they are self-explanatory
#     metar_windspeed
#     metar_winddir
#     metar_swinddir
#     metar_cloud
#     metar_u2d_time
#     
#     ml_upload_counter               total session upload in mb
#     ml_download_counter             total session download in mb
#     ml_nshared_files                number of shared files
#     ml_shared_counter               total session shared in mb, buggy
#                     in some mldonkey versions
#     ml_tcp_upload_rate              tcp upload rate in kb/s
#     ml_tcp_download_rate            tcp download rate in kb/s
#     ml_udp_upload_rate              udp upload rate in kb/s
#     ml_udp_download_rate            udp download rate in kb/s
#     ml_ndownloaded_files            number of completed files
#     ml_ndownloading_files           number of downloading files
#     
#     mpd_artist            Artist in current MPD song
#                     (must be enabled at compile)
#     mpd_album            Album in current MPD song
#     mpd_bar           (height)      Bar of mpd's progress
#     mpd_bitrate                     Bitrate of current song
#     mpd_status                      Playing, stopped, et cetera.
#     mpd_title            Title of current MPD song
#     mpd_vol                MPD's volume
#     mpd_elapsed                     Song's elapsed time
#     mpd_length                      Song's length
#     mpd_percent                     Percent of song's progress
#     new_mails                       Unread mail count in mail spool.         
#     nodename                        Hostname                                 
#     outlinecolor      (color)       Change outline color                     
#     pre_exec          shell command Executes a shell command one time before 
#                     conky displays anything and puts output 
#                     as text.                                 
#     processes                       Total processes (sleeping and running)   
#     running_processes               Running processes (not sleeping),        
#                     requires Linux 2.6                       
#     shadecolor        (color)       Change shading color                     
#     stippled_hr       (space),      Stippled (dashed) horizontal line        
#             (height)        
#     swapbar           (height)      Bar that shows amount of swap in use     
#     swap                            Amount of swap in use                    
#     swapmax                         Total amount of swap                     
#     swapperc                        Percentage of swap in use                
#     sysname                         System name, Linux for example           
#     offset            pixels        Move text over by N pixels
#     tail              logfile, lines (interval)
#                     Displays last N lines of supplied text
#                     text file.  If interval is not supplied,
#                     Conky assumes 2x Conky's interval.
#                     Max of 30 lines.
#                     Max of 30 lines can be displayed.
#     time              (format)      Local time, see man strftime to get more 
#                     information about format                 
#     totaldown         net           Total download, overflows at 4 GB on     
#                     Linux with 32-bit arch and there doesn't 
#                     seem to be a way to know how many times  
#                     it has already done that before conky   
#                     has started.                            
#     top               type, num     This takes arguments in the form:
#                     top <name> <number>
#                     Basically, processes are ranked from 
#                     highest to lowest in terms of cpu
#                     usage, which is what <num> represents.
#                     The types are: "name", "pid", "cpu", and
#                     "mem".
#                     There can be a max of 10 processes listed.
#     top_mem           type, num     Same as top, except sorted by mem usage
#                     instead of cpu
#     totalup           net           Total upload, this one too, may overflow 
#     updates                         Number of updates (for debugging)        
#     upspeed           net           Upload speed in kilobytes                
#     upspeedf          net           Upload speed in kilobytes with one       
#                     decimal                                  
#     upspeedgraph      net (height),(width)  (gradient colour 1) (gradient colour 2)
#                     Upload speed graph, colours defined in
#                     hex, minus the #.
#     uptime                          Uptime                                   
#     uptime_short                    Uptime in a shorter format               
#     
#     seti_prog                       Seti@home current progress
#     seti_progbar      (height)      Seti@home current progress bar
#     seti_credit                     Seti@hoome total user credit


# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument
# stuff after 'TEXT' will be formatted on screen

TEXT
$nodename - $sysname $kernel on $machine
${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
${color lightgrey}CPU Usage:${color lightgrey} ${cpu cpu1}% ${cpubar cpu1}
${color lightgrey}${cpugraph lightgrey lightgrey}
${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% ${membar}
${color lightgrey}${memgraph lightgrey lightgrey}
${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
${color lightgrey}Processes:$color $processes  ${color grey}Running:$color $running_processes

${color #ddaa00}Name                      PID    CPU%   MEM%
${color lightgrey}${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 lightgrey}${top name 5}    ${top pid 5} ${top cpu 5} ${top mem 5}

Down:${color lightgrey} ${downspeed ath0} k/s${color lightgrey} ${offset 80}Up:${color lightgrey} ${upspeed ath0} k/s
${color lightgrey}${downspeedgraph ath0 32,150 lightgrey lightgrey} ${color lightgrey}${upspeedgraph ath0 32,150 lightgrey lightgrey}
 / $color${fs_used /}/${fs_size /} ${fs_bar /}

${color #ddaa00}Device    Temp(C)
${color lightgrey}CPU 0      ${execi 5 sensors | grep 'Core 0' | cut -c15-16}C
${color lightgrey}CPU 1      ${execi 5 sensors | grep 'Core 1' | cut -c15-16}C
${color lightgrey}GPU        ${execi 5 nvidia-settings -q gpucoretemp | grep Attribute | cut -c42-43}C
${color lightgrey}HDD        ${execi 5 sudo hddtemp /dev/sda | cut -c25-26}C

Tenho monitorização de temperatura, pelo que para que as últimas linhas funcionem é preciso que tenham o 'lm-sensors' e o 'hddtemp'. Ah, também há um pequeno work-around na amostragem da temperatura do disco... só começa a funcionar depois de usarem 'sudo' pela primeira vez no sistema.
 
conkyut4.jpg


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 1 
alignment top_middle 
 
#behaviour 
update_interval 1 
 
#colour 
default_color FFFFFF 
 
#default_shade_color 000000 
own_window_colour 3d352a 
 
#font 
use_xft yes 
xftfont Sans:pixelsize=12 
 
#to prevent window from moving 
use_spacer no 
 
#mpd 
mpd_host localhost 
mpd_port 6600 
 
TEXT 
Uptime: $uptime | Proc: $processes ($running_processes run) | Ram $mem | Now Playing: ${mpd_smart} | Disco: ${alignr}${fs_free /} | Kernel: $kernel
Isto foi a minha primeira experiencia no Conky, mas acho que não está muito mal

 
Última edição:
aqui está o meu. para um iniciado em linux e uma primeira experiencia no conky até acho que ficou bastante bom, pelo menos ao meu gosto:x2:



Código:
update_interval 1
double_buffer yes
own_window yes

background yes
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

default_color white
color0 lightgrey

border_width 5
border_margin 15
draw_borders yes
gap_x 14
gap_y 15

use_spacer right
use_xft yes

#font and font size
font Verdana:size=9

draw_shades no

#allow uppercase
uppercase no

#window settings
maximum_width 220
minimum_size 220
alignment top_right


TEXT

${font styleBats:size=16}P${font} UPTIME $alignr $uptime

${font styleBats:size=16}A${font} CPU 0 - ${cpu cpu0}% ${alignr}${cpugraph cpu0 14,100}
${font styleBats:size=16}A${font} CPU 1 - ${cpu cpu1}% ${alignr}${cpugraph cpu1 14,100}
${font styleBats:size=16}u${font} Processes ${alignr}$processes ($running_processes running)

${font styleBats:size=16}L${font} RAM ${alignr}$mem / $memmax
$memperc% ${membar}
${font styleBats:size=16}y${font} SWAP ${alignr}$swap / $swapmax
$swapperc% ${swapbar}


${font PizzaDudeBullets:size=16}k${font} Ubuntu ${alignr}${fs_used /} / ${fs_size /}
${fs_bar 4 /}
${font PizzaDudeBullets:size=16}n${font} Vista ${alignr}${fs_used /media/disk} / ${fs_size /media/disk}
${fs_bar 4 /}
${font PizzaDudeBullets:size=16}m${font} Dados ${alignr}${fs_used /media/CENAS} / ${fs_size /media/CENAS}
${fs_bar 4 /}


${font PizzaDudeBullets:size=16}s${font} DOWN  ${downspeedf etho0} ${alignr 16}${upspeedf eth0}  UP ${voffset -5}${font PizzaDudeBullets:size=16}w${font}
${downspeedgraph eth0, 10, 100, lightgrey lightgrey} ${alignr}${upspeedgraph eth0, 10, 100, lightgrey lightgrey}
${totaldown eth0} ${alignr}${totalup eth0}
 
Actualização para mostrar a temp do GPU:



Código:
background yes
use_xft yes
xftfont HandelGotD:size=9
xftalpha 0.5
update_interval 3.0
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 250 5
maximum_width 250
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 12
gap_y 1
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT
$sysname $kernel on $machine
${font StyleBats:size=18}P${font} Uptime $alignr $uptime
${font StyleBats:size=18}X${font} Load $alignr $loadavg
${font StyleBats:size=18}V${font} Public IP $alignr ${color}${execi 1800 wget -O - http://whatismyip.org/ | tail}${color}
${font StyleBats:size=18}T${font} $processes processes ($running_processes running)

${font PizzaDude Bullets:size=16}N${font} ${color white}Highest CPU:
${color de0b0b}${top name 1}${top cpu 1}
${color white}${top name 2}${top cpu 2}
${top name 3}${top cpu 3}
${top name 4}${top cpu 4}
${top name 5}${top cpu 5}
${font PizzaDude Bullets:size=16}O${font} ${color white}Highest MEM:
${color de0b0b}${top_mem name 1}${top_mem mem 1}
${color white}${top_mem name 2}${top_mem mem 2}
${top_mem name 3}${top_mem mem 3}
${top_mem name 4}${top_mem mem 4}
${top_mem name 5}${top_mem mem 5}

${font StyleBats:size=18}A${font} CPU Core 1 $alignr ${cpu cpu0}%
${cpubar cpu0}
${font StyleBats:size=18}A${font} CPU Core 2 $alignr ${cpu cpu1}%
${cpubar cpu1}

${font PizzaDude Bullets:size=16}J${font} MEM $alignc $mem / $memmax $alignr $memperc%
$membar
${font StyleBats:size=18}B${font} swap $alignc $swap / $swapmax $alignr $swapperc%
${swapbar}

${font StyleBats:size=18}F${font} / $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${fs_bar /}
${font StyleBats:size=18}G${font} /usr $alignc ${fs_used /usr} / ${fs_size /usr} $alignr ${fs_free_perc /usr}%
${fs_bar /usr}
${font StyleBats:size=18}G${font} /home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}

${font weather:size=28}z${font} M/B CPU GPU $alignr ${hwmon temp 1}C / ${hwmon temp 2}C / ${exec /usr/bin/nvidia-settings -q gpucoretemp |grep Attribute |cut -c 40-42}C
${font weather:size=28}x${font} Hard Drives $alignr /dev/sda ${hddtemp /dev/sda}
$alignr /dev/sdb ${hddtemp /dev/sdb}

LAN:$alignr ${addr eth0}
${font PizzaDude Bullets:size=16}r${font} Down:${color} $alignr ${downspeed eth0} k/s${color} ${offset 80}
${font PizzaDude Bullets:size=16}v${font} Up:${color} $alignr ${upspeed eth0} k/s${color} ${offset 80}

WLAN:$alignr ${addr wlan0}
ESSID: ${wireless_essid wlan0} $alignr Signal: ${wireless_link_qual_perc wlan0}%
 
Última edição:


Código:
background yes
use_xft yes
xftfont HandelGotD:size=9
xftalpha 0.5
update_interval 3.0
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 250 5
maximum_width 250
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color red
default_outline_color green
alignment top_right
gap_x 12
gap_y 5
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes

TEXT
${font openlogos:size=80}q${font}
$sysname $kernel on $machine
${font StyleBats:size=18}P${font} Uptime $alignr $uptime
${font StyleBats:size=18}X${font} Load $alignr $loadavg
${font StyleBats:size=18}V${font} Public IP $alignr ${color}${execi 14400 wget -O - http://whatismyip.org/ | tail}${color}
${font StyleBats:size=18}T${font} $processes processes ($running_processes running)

${font PizzaDude Bullets:size=16}N${font} ${color white}Highest CPU:
${color de0b0b}${top name 1}${top cpu 1}
${color white}${top name 2}${top cpu 2}
${top name 3}${top cpu 3}
${top name 4}${top cpu 4}
${top name 5}${top cpu 5}
${font PizzaDude Bullets:size=16}O${font} ${color white}Highest MEM:
${color de0b0b}${top_mem name 1}${top_mem mem 1}
${color white}${top_mem name 2}${top_mem mem 2}
${top_mem name 3}${top_mem mem 3}
${top_mem name 4}${top_mem mem 4}
${top_mem name 5}${top_mem mem 5}

${font StyleBats:size=18}A${font} CPU Core 1 $alignr ${cpu cpu0}%
${cpubar cpu0}
${font StyleBats:size=18}A${font} CPU Core 2 $alignr ${cpu cpu1}%
${cpubar cpu1}

${font PizzaDude Bullets:size=16}J${font} MEM $alignc $mem / $memmax $alignr $memperc%
$membar
${font StyleBats:size=18}B${font} swap $alignc $swap / $swapmax $alignr $swapperc%
${swapbar}

${font StyleBats:size=18}F${font} / $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${fs_bar /}
${font StyleBats:size=18}G${font} /usr $alignc ${fs_used /usr} / ${fs_size /usr} $alignr ${fs_free_perc /usr}%
${fs_bar /usr}
${font StyleBats:size=18}G${font} /home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
${fs_bar /home}

${font weather:size=28}z${font} M/B CPU $alignr ${hwmon temp 1}C / ${hwmon temp 2}C
${font weather:size=28}x${font} Hard Drives 
$alignr /dev/sda ${hddtemp /dev/sda}
$alignr /dev/hdc ${hddtemp /dev/hdc}


${color}Networking:
${font PizzaDude Bullets:size=16}r${font} Down:${color} $alignr ${downspeed eth0} k/s${color} ${offset 80}
${font PizzaDude Bullets:size=16}v${font} Up:${color} $alignr ${upspeed eth0} k/s ${offset 80}
 
Agora que estou numa de experimentar o Openbox, instalei o conky e tive a comprar lado a lado.

Numa configuração equivalente, o conky é mais pesado que o gkrellm. (nome do sistema, uptime, load, cpu usage+grafico, mem usage, swap usage, processes, networking + grafico, file system, sensores)

Com um refresh de 1 seg o gkrellm acusa 0%~1% enquanto o conky anda nos 2%... nada de muito crítico, como seria de esperar.
Para além disso o gkrellm tem a vantagem de actualizar os LEDs e KRELLs 1x ou 20x por segundo e não se notar diferença na utilização do cpu. Esses 20x são muito porreiros, porque dá para ter uma melhor noção da real utilização do CPU (geekisses).

O grande problema do gkrellm é o estarmos obrigado a aguentar com o layout vertical e facto de (pessoalmente achar que) não há skins decentes para o gkrellm.
O conky, por outro lado dá muita mais liberdade no layout (à semelhança do samurize para windows, mas sem o excelente editor WYSIWYG).

No entanto o gkrellm tem umas opções interessantes que permite executar comandos ao clicar em certos componentes. Por exemplo, correr o htop ao clicar no CPU, montar e desmontar partições ao clickar na correspondente zona do krell do file system, etc...
 
Última edição:
Back
Topo