Autor Tópico: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela  (Lida 418566 vezes)

Offline Br1000

  • Usuário Ubuntu
  • *
  • Mensagens: 44
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #345 Online: 29 de Junho de 2010, 12:50 »
vampire_thunder
Como disse eu tentei de tudo. Já movi o ConkyWizard para diversas pastas para ver se funcionava mas tudo isso sem conseguir que funcione.
Na página de onde baixei ele na aba issues tem algumas pessoas relatando o mesmo problema com diversas outras distros.
Vou aguardar nova versão para ver se funciona.
Obrigado mais uma vez.

Offline PRSC

  • Usuário Ubuntu
  • *
  • Mensagens: 668
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #346 Online: 30 de Junho de 2010, 01:33 »
Com muito trabalho e muita cópia  ::) consegui ajustar um conky aqui, só não consegui de jeito nenhum fazer o tal com o lua funcionar, esse apanhei e apanho ainda.
Meu conky copiado com algumas edições.




.conkyrc
Código: [Selecionar]
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
color0 FFFFFF #branco
color1 FCAF3E #laranja
color2 000000 #preto
color3 8CFF71 #verde
color4 FFFF00 #amarelo
color7 b035b5 #roxo
color8 ff0309 #vermelho
color9 9CC8FF #azul claro

text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

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

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

# Minimum size of text area
minimum_size 220 0
#maximum_width 200

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color white
#default_shade_color black
#default_outline_color white
own_window_colour white

# 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
# same thing as passing -x at command line
gap_x 20
gap_y 40

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none
TEXT
$color3
SISTEMA ${hr 2}$color0
${voffset 2}${font OpenLogos:size=16}u${font} Kernel:  ${kernel}
${alignc} ${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}
       Frequência: ${freq_g 2}GHz ${alignr}
$color8${font StyleBats:size=16}A${font}$color0  CPU 1: ${alignr}${color #ff1637}${cpubar cpu1 8,60}$color ${cpu cpu1}%
$color8${font StyleBats:size=16}A${font}$color0  CPU 2: ${alignr}${color #ff1637}${cpubar cpu2 8,60}$color ${cpu cpu2}%
$color8${font StyleBats:size=16}A${font}$color0  CPU 3: ${alignr}${color #ff1637}${cpubar cpu3 8,60}$color ${cpu cpu3}%
$color4${font StyleBats:size=16}g${font}$color0  RAM: ${alignr}${color #f4f10e}${membar 8,60}$color $memperc%
        Usada: $mem             Total: $memmax
$color4${font StyleBats:size=16}j${font}$color0  SWAP: $swapperc% ${alignr}$color4${swapbar 8,60}$color0
$color3${font StyleBats:size=16}q${font}$color0  Ligado: ${alignr}${uptime}
$color8
CPU ${hr 2}
$color8${font StyleBats:size=16}A${font}$color0  ${top name 1}$alignr${top cpu 1} %
$color8${font StyleBats:size=16}A${font}$color0  ${top name 2}$alignr${top cpu 2} %
$color8${font StyleBats:size=16}A${font}$color0  ${top name 3}$alignr${top cpu 3} %
$color8${font StyleBats:size=16}A${font}$color0  ${top name 4}$alignr${top cpu 4} %
$color4
MEMÓRIA ${hr 2}
$color4${font StyleBats:size=16}g${font}$color0  ${top_mem name 1}$alignr${top_mem mem 1} %
$color4${font StyleBats:size=16}g${font}$color0  ${top_mem name 2}$alignr${top_mem mem 2} %
$color4${font StyleBats:size=16}g${font}$color0  ${top_mem name 3}$alignr${top_mem mem 3} %
$color4${font StyleBats:size=16}g${font}$color0  ${top_mem name 4}$alignr${top_mem mem 4} %
$color1
HD ${hr 2}
$color1${voffset 4}${font Pie charts for maps:size=14}7${font}$color0   ${voffset -5}Root:
${voffset 4}${fs_used /}/${fs_size /} ${alignr}${color #fbb203}${fs_bar 8,60 /}$color
$color1${voffset 4}${font Pie charts for maps:size=14}7${font}$color0   ${voffset -5}Home:
${voffset 4}${fs_used /home}/${fs_size /home} ${alignr}${color #fbb203}${fs_bar 8,60 /home}$color
$color1${voffset 4}${font Pie charts for maps:size=14}7${font}$color0   ${voffset -5}HD 1TB:
${voffset 4}${fs_used /media/HD 1TB}/${fs_size /media/HD 1TB} ${alignr}${color #fbb203}${fs_bar 8,60 /media/HD 1TB}$color
$color1${voffset 4}${font Pie charts for maps:size=14}7${font}$color0   ${voffset -5}HD-SISTEMA:
${voffset 4}${fs_used /media/HD-SISTEMA}/${fs_size /media/HD-SISTEMA} ${alignr}${color #fbb203}${fs_bar 8,60 /media/HD-SISTEMA}$color
$color1${voffset 4}${font Pie charts for maps:size=14}7${font}$color0   ${voffset -5}WINDOWS:
${voffset 4}${fs_used /media/WINDOWS}/${fs_size /media/WINDOWS} ${alignr}${color #fbb203}${fs_bar 8,60 /media/WINDOWS}
$color9
REDE ${hr 2}
${if_existing /proc/net/route wlan0}
${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 12,60 000000 93C9EB}
${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 12,60 000000 93C9EB}
${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font}   Sinal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 12,60 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Ip Local: ${alignr}${addr wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}b${font}   Ip Externo: ${alignr}${execi 1 ~/.scripts/ip.sh}
${else}${if_existing /proc/net/route eth0}
$color8${voffset -6}${font PizzaDude Bullets:size=14}O${font}$color0   Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 12,60 000000 f30728}
$color9${voffset 4}${font PizzaDude Bullets:size=14}U${font}$color0   Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 12,60 000000 93C9EB}
$color8${voffset 4}${font PizzaDude Bullets:size=14}N${font}$color0   Upload: ${alignr}${totalup eth0}
$color9${voffset 4}${font PizzaDude Bullets:size=14}T${font}$color0   Download: ${alignr}${totaldown eth0}
$color2${voffset 4}${font PizzaDude Bullets:size=14}a${font}$color0   Ip Local: ${alignr}${addr eth0}
$color7${voffset 4}${font PizzaDude Bullets:size=14}b${font}$color0   Ip Externo: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 000000 f30728}
${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Ip Local: ${alignr}${addr eth1}
${voffset 4}${font PizzaDude Bullets:size=14}b${font}   Ip Externo: ${alignr}${execi 1 ~/.scripts/ip.sh}
${endif}${else}
${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed ppp0} kb/s ${alignr}${upspeedgraph ppp0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed ppp0} kb/s ${alignr}${downspeedgraph ppp0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup ppp0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown ppp0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Ip Local: ${alignr}${addr ppp0}
${endif}
Ontem: ${execi 3600 vnstat -i eth0 | grep "yesterday" | awk '{print $2 $3}'}${goto 142}Ontem: ${execi 3600 vnstat -i eth0 | grep "yesterday" | awk '{print $5 $6}'}
Hoje: ${execi 300 vnstat -i eth0 | grep "today" | awk '{print $2 $3}'}${goto 142}Hoje: ${execi 300 vnstat -i eth0 | grep "today" | awk '{print $5 $6}'}
Semana: ${execi 3600 vnstat -w -i eth0 | grep "current week" | awk '{print $3 $4}'}${goto 142}Semana: ${execi 3600 vnstat -w -i eth0 | grep "current week" | awk '{print $6 $7}'}
No mês: ${execi 3600 vnstat -m -i eth0 | grep -m 99 "'09" | awk '{print $3 $4}'}${goto 142}No mês: ${execi 3600 vnstat -m -i eth0 | grep -m 99 "'09" | awk '{print $6 $7}'}




.conkyrc2
Código: [Selecionar]
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
color0 FFFFFF #branco
color1 FCAF3E #laranja
color2 000000 #preto
color3 8CFF71 #verde
color4 FFFF00 #amarelo
color7 b035b5 #roxo
color8 ff0309 #vermelho
color9 9CC8FF #azul claro

text_buffer_size 2048

# Update interval in seconds
update_interval 3

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

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

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

# Minimum size of text area
minimum_size 140 0
#maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_margin 5

# border width
border_width 1

# Default colors and also border colors
default_color white
#default_shade_color black
#default_outline_color white
own_window_colour white

# 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
# same thing as passing -x at command line
gap_x 35
gap_y 50

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

TEXT
${font DejaVu Sans Mono:size=14}
  CALENDÁRIO
${font DejaVu Sans Mono:size=10}
${exec ~/.scripts/calendar.sh last}
${exec ~/.scripts/calendar.sh first_part}${color1}$color8${execi 1 ~/.scripts/calendar.sh today}$color0$color${execi 1 ~/.scripts/calendar.sh second_part}
${exec ~/.scripts/calendar.sh next}
${font}

Se alguém souber como colocar % no uso do hd, porque até coloquei, mas fica tudo 27%.
Abraço.
« Última modificação: 01 de Julho de 2010, 00:31 por PRSC »
Placa Gigabyte 970A-ud3p..16 GB Corsair Vegeance..FX8300..nVidia GTx750Ti.Gabinete Cougar Challenger
Linux user #511

Offline Br1000

  • Usuário Ubuntu
  • *
  • Mensagens: 44
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #347 Online: 30 de Junho de 2010, 09:11 »
PRSC
Aqui no meu o que mostra a porcentagem de HD free é: ${fs_free /}/${fs_size /}  ${fs_free_perc /}% free
Experimenta ai...

Boa sorte

Offline PRSC

  • Usuário Ubuntu
  • *
  • Mensagens: 668
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #348 Online: 30 de Junho de 2010, 11:20 »
PRSC
Aqui no meu o que mostra a porcentagem de HD free é: ${fs_free /}/${fs_size /}  ${fs_free_perc /}% free
Experimenta ai...

Boa sorte

Br1000

Agora funcionou, usei used em vez de free, acho que esqueci de colocar {} por isso dava erro.
Mas ainda da um erro na parte referente a home, fica com 28% de uso, coisa que tem mais de 50% usada.
E o caminho abaixo está certo, ou tem algo que não estou enxergando!!!!

$color1${voffset 4}${font Pie charts for maps:size=14}7${font}$color0   ${voffset -5}Home:
${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${color #fbb203}${fs_bar 8,60 /home}  ${fs_used_perc /home}%$color

Abraço.
Placa Gigabyte 970A-ud3p..16 GB Corsair Vegeance..FX8300..nVidia GTx750Ti.Gabinete Cougar Challenger
Linux user #511

Offline Br1000

  • Usuário Ubuntu
  • *
  • Mensagens: 44
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #349 Online: 30 de Junho de 2010, 12:48 »
PRSC
Não consigo enxergar erro no seu script.
Coloquei aqui no meu script a parte de ${fs_used_perc /home}% tanto no home quanto no raiz e a porcentagem tá certa dando 47% livre e 53% usado no raiz e 45% livre e 55% usado no home. Nos dois casos da para ver que somam 100%. Então não consigo ver onde o seu está dando este erro.

Offline PRSC

  • Usuário Ubuntu
  • *
  • Mensagens: 668
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #350 Online: 30 de Junho de 2010, 15:26 »
PRSC
Não consigo enxergar erro no seu script.
Coloquei aqui no meu script a parte de ${fs_used_perc /home}% tanto no home quanto no raiz e a porcentagem tá certa dando 47% livre e 53% usado no raiz e 45% livre e 55% usado no home. Nos dois casos da para ver que somam 100%. Então não consigo ver onde o seu está dando este erro.


Vou esperar para ver se reiniciando o negócio fica certo, só não posso fazer isso agora.
Vlw pela ajuda ;)

Abraço.
Placa Gigabyte 970A-ud3p..16 GB Corsair Vegeance..FX8300..nVidia GTx750Ti.Gabinete Cougar Challenger
Linux user #511

Offline PRSC

  • Usuário Ubuntu
  • *
  • Mensagens: 668
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #351 Online: 01 de Julho de 2010, 00:30 »
Descobri o que tava errado

${voffset 4}${fs_free /home}/${fs_size /home} ${alignr}${color #fbb203}${fs_bar 8,60 /home}  ${fs_used_perc /home}%$color

Onde está destacado estava errado, seria used ali, então inverti colocando used, e no final deixei como indicado como free, agora sim ficou bom.

Mas o calendário ficou zuado na troca de mês, o dia primeira fica depois do dia 31 1, assim, vamos ver se arruma amanhã isso ;D

Abraço.
Placa Gigabyte 970A-ud3p..16 GB Corsair Vegeance..FX8300..nVidia GTx750Ti.Gabinete Cougar Challenger
Linux user #511

Offline sistematico

  • Usuário Ubuntu
  • *
  • Mensagens: 576
  • Sistematico
    • Ver perfil
    • Sistematico.org
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #352 Online: 01 de Julho de 2010, 16:33 »
Citar
o dia primeira fica depois do dia 31
O dia 1º de agosto é depois de 31 julho.
Onde está o erro?
Lucas Saliés Brum
Ubuntu User #27150
http://sistematico.org

Offline PRSC

  • Usuário Ubuntu
  • *
  • Mensagens: 668
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #353 Online: 02 de Julho de 2010, 00:38 »
Citar
o dia primeira fica depois do dia 31
O dia 1º de agosto é depois de 31 julho.
Onde está o erro?

Não tenho ideia onde está o erro, mas agora até o dia 02 esta do lado do 31 de julho, ele não volta pro lugar.



No script é este

Citar
TEXT
${font DejaVu Sans Mono:size=14}
  CALENDÁRIO
${font DejaVu Sans Mono:size=10}
${exec ~/.scripts/calendar.sh last}
${exec ~/.scripts/calendar.sh first_part}${color8}${execi 1 ~/.scripts/calendar.sh today}${color0}${execi 1 ~/.scripts/calendar.sh second_part}

${exec ~/.scripts/calendar.sh next}
${font}

Dei um espaço ali para separar os meses, porque ele juntou depois da mudança de mês.

Abraço.
Placa Gigabyte 970A-ud3p..16 GB Corsair Vegeance..FX8300..nVidia GTx750Ti.Gabinete Cougar Challenger
Linux user #511

Offline Dinei

  • Usuário Ubuntu
  • *
  • Mensagens: 84
  • Linux Mint 13 Maya LTS
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #354 Online: 03 de Julho de 2010, 16:13 »
Tava navegando no forum internacional do ubuntu e achei esse:

http://lh3.ggpht.com/_zV1MJRXGQA8/SsnNukxL6cI/AAAAAAAAAYM/JAGI9qouciE/s800/conky-lua.png

.conkyrc

Código: [Selecionar]
background no
use_xft yes
xftfont terminus:size=8
xftalpha 0.2
update_interval 1
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
own_window_class conky
double_buffer yes
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
alignment tl
uppercase no
text_buffer_size 2048
imlib_cache_size 0
minimum_size 1330 10
gap_y 10

# — Lua Load — #
lua_load ~/conky/lua/rings.lua
lua_draw_hook_pre ring_stats
 
TEXT
${voffset 55}${goto 480}${diskiograph 50,300 FFFF00 FF0000 -t}${voffset -110}
${voffset 98}${goto 173}${color 1E90FF}${cpubar cpu5 2,1015}${color}
${voffset -40}${goto 240}${font Zekton:size=14}CrunchBang \#! 9.04.01${font Zekton:size=10}${voffset 1}
${voffset 10}${goto 240}Conky ${conky_version}   ${goto 480}Kernel: ${kernel}
${goto 240}${exec whoami} @ $nodename $machine   ${goto 480}Uptime: ${uptime}
${goto 240}Desktop: ${desktop_number} - ${desktop}${goto 480}CPU Temp: ${acpitemp}${offset -2} °C
${goto 240}HDD Temp: ${hddtemp /dev/sda}${offset -2} °C ${goto 480}Grafik Temp: ${nvidia temp}${offset -2} °C${if_existing /proc/net/route wlan0}${goto 700}WLAN: ${addrs wlan0}${endif}${if_existing /proc/net/route eth0}${goto 700}LAN: ${addrs eth0}${endif}

${goto 240}${font Zekton:Bold:size=10}Name top${goto 370}time${goto 450}cpu${goto 500}mem${goto 600}${font Zekton:Bold:size=10}Name top-io${goto 730}time${goto 820}mem${font Zekton:size=8}
${color red}${goto 240}${top name 1}   ${goto 370}${top time 1}${goto 450}${top cpu 1}${goto 500}${top mem 1} ${goto 600}${top_io 1}${top_io name 1}${goto 730}${top_io time 1}${goto 820}${top_io mem 1} ${color}${goto 940}${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2-}
${goto 240}${top name 2}   ${goto 370}${top time 2}${goto 450}${top cpu 2}${goto 500}${top mem 2}${color} ${top_io 2} ${goto 600}${top_io name 2}${goto 730}${top_io time 2}${goto 820}${top_io mem 2} ${goto 940}${execpi 3600 /home/search/conkynv.sh}
${goto 240}${top name 3}   ${goto 370}${top time 3}${goto 450}${top cpu 3}${goto 500}${top mem 3}${color} ${top_io 3} ${goto 600}${top_io name 3}${goto 730}${top_io time 3}${goto 820}${top_io mem 3}
${if_existing /proc/net/route wlan0}${voffset -210}${goto 810}${font DTPDingbats:size=18}${color green}C${font Zekton:size=12}${downspeed wlan0}${color}

${voffset -15}${goto 810}${font DTPDingbats:size=18}${color red}D${font Zekton:size=12}${upspeed wlan0}${color}${endif}
${if_existing /proc/net/route eth0}${voffset -210}${goto 810}${font DTPDingbats:size=18}${color green}C${font Zekton:size=12}${downspeed wlan0}${color}

${voffset -15}${goto 810}${font DTPDingbats:size=18}${color red}D${font Zekton:size=12}${upspeed wlan0}${color}${endif}
${font}
${voffset -130}
${goto 90}${color 1E90FF}RAM: ${memperc}%
${goto 90}${color FF0000}CPU-1: ${cpu cpu0}%
${goto 90}${color FF0000}CPU-2: ${cpu cpu1}%
${goto 90}${color FFFF00}BAT: ${battery_percent BAT0}%
${goto 90}${color 00FF00}Disk: ${fs_used_perc /}%${color}
${voffset -45}${goto 1210}${font Zekton:size=10}${time %H:%M:%S}

${voffset -80}${color CDCD00}${goto 1010}${font Zekton:Bold:size=10}${time %A}
${goto 930}${font Zekton:size=16}${time %_d %B %Y}${color}
${font LiberationMono:Bold:size=10}
${voffset -10}${execpi 60 DJS=`date +%_d`; cal -m | sed '1d' | sed '/./!d' | sed 's/$/                     /' | fold -w 21 | sed -n '/^.\{21\}/p' | sed 's/^/${goto 930} /' | sed /" $DJS "/s/" $DJS "/" "'${color orange}'"$DJS"'${color}'" "/}
${voffset -300}


rings.lua

Código: [Selecionar]
--[[
Ring Meters by londonali1010 (2009)

This script draws percentage meters as rings. It is fully customisable; all options are described in the script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/rings.lua
    lua_draw_hook_pre ring_stats
   
Changelog:
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
+ v1.0 -- Original release (28.09.2009)
]]

settings_table = {
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        name='cpu',
        -- "arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
        arg='cpu0',
        -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=100,
        -- "bg_colour" is the colour of the base ring.
        bg_colour=0xCDCDC1,
        -- "bg_alpha" is the alpha value of the base ring.
        bg_alpha=0.5,
        -- "fg_colour" is the colour of the indicator part of the ring.
        fg_colour=0xFF0000,
        -- "fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=0.8,
        -- "x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
        x=120, y=120,
        -- "radius" is the radius of the ring.
        radius=81,
        -- "thickness" is the thickness of the ring, centred around the radius.
        thickness=10,
        -- "angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        angle=90
    },
    {
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0xCDCDC1,
        bg_alpha=0.5,
        fg_colour=0xFF0000,
        fg_alpha=0.5,
        x=120, y=120,
        radius=93,
        thickness=10,
        angle=90
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0x1E90FF,
        fg_alpha=0.5,
        x=120, y=120,
        radius=102.5,
        thickness=5,
        angle=90
    },
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.1,
        fg_colour=0x00FF00,
        fg_alpha=0.5,
        x=120, y=120,
        radius=58,
        thickness=10,
        angle=90
    },
    {
        name='battery_percent',
        arg='BAT0',
        max=100,
        bg_colour=0xffffff,
        bg_alpha=0.2,
        fg_colour=0xFFFF00,
        fg_alpha=1,
        x=120, y=120,
        radius=70,
        thickness=10,
        angle=90
    },
    {
        name='time',
        arg='+%S',
        max=60,
        bg_colour=0xE3E3E3,
        bg_alpha=0.1,
        fg_colour=0xFFFF00,
        fg_alpha=0.7,
        x=1235, y=120,
        radius=70,
        thickness=4,
        angle=0
    },
    {
        name='time',
        arg='+%M',
        max=60,
        bg_colour=0xE3E3E3,
        bg_alpha=0.1,
        fg_colour=0x00CD00,
        fg_alpha=0.7,
        x=1235, y=120,
        radius=64,
        thickness=7,
        angle=0
    },
    {
        name='time',
        arg='+%H',
        max=24,
        bg_colour=0xE3E3E3,
        bg_alpha=0.1,
        fg_colour=0xffffff,
        fg_alpha=0.7,
        x=1235, y=120,
        radius=52,
        thickness=14,
        angle=0
    },
   
}

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(t, pt)
    if conky_window==nil then return end
    local w,h=conky_window.width,conky_window.height
    local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual,w,h)
   
    cr=cairo_create(cs)
   
    local xc,yc,ring_r,ring_w,angle=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=angle*(2*math.pi/360)-math.pi/2
    local t_arc=t*2*math.pi

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,0,2*math.pi)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
   
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)       
   
    cairo_destroy(cr)
    cr = nil
end

function conky_cairo_cleanup()
    cairo_surface_destroy(cs)
    cs = nil
end

function conky_ring_stats()
    local function setup_rings(pt)
        local str=''
        local value=0
       
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
       
        value=tonumber(str)
        pct=value/pt['max']
       
        draw_ring(pct,pt)
    end
   
    -- Check that Conky has been running for at least 5s
   
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
   
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(settings_table[i])
        end
    end
end
THERMALTAKE V4 BLACK EDITION | NZTX SENTRY 2 | ASUS M5A78L-M LX/BR | AMD ATHLON II X2 3.0GHZ | ZALMAN CNPS 9900NT | KINGTONE HYPERX 4GB (2x2GB) DDR3 1333Mhz | SEAGATE 250GB SATA III + SEAGATE 500GB SATA III | ATI RADEON HD 4890 1GB GDDR5 256 BITS

Offline Br1000

  • Usuário Ubuntu
  • *
  • Mensagens: 44
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #355 Online: 03 de Julho de 2010, 18:13 »
PRSC
Achei bastante legal o seu script para o conky.
Gostaria de usar este modelo, por isso peço sua autorização para adaptá-la a minha máquina e usar.
Desde já agradeço.

Apenas fico frustado que todos conseguem fazer seus conkys transparentes e eu não.
Caso você autorize veja como ficou. Se você tiver interesse posso publicar o script adaptado.

Offline PRSC

  • Usuário Ubuntu
  • *
  • Mensagens: 668
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #356 Online: 03 de Julho de 2010, 23:03 »
PRSC
Achei bastante legal o seu script para o conky.
Gostaria de usar este modelo, por isso peço sua autorização para adaptá-la a minha máquina e usar.
Desde já agradeço.

Apenas fico frustado que todos conseguem fazer seus conkys transparentes e eu não.
Caso você autorize veja como ficou. Se você tiver interesse posso publicar o script adaptado.


Pode usar sim, eu ja adaptei do pessoal ai hehehe.
Só não consegui ainda arrumar o calendário, e ainda tou sem internet em casa por enquanto, mas fique a vontade, qualquer coisa que eu possa ajudar é só perguntar.

Abraço.
Placa Gigabyte 970A-ud3p..16 GB Corsair Vegeance..FX8300..nVidia GTx750Ti.Gabinete Cougar Challenger
Linux user #511

Offline wankiller

  • Usuário Ubuntu
  • *
  • Mensagens: 0
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #357 Online: 30 de Julho de 2010, 18:58 »
o meu está assim hoje.pegando um pouco daqui e um pouco dali ficou assim.


http://yfrog.com/18capturadetelagp


background yes
# Default Fonts
use_xft yes
xftfont Liberation Sans:size=9
override_utf8_locale yes
# Performance Settings
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
text_buffer_size 1024

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

# Window border
draw_borders no
draw_shades no

# Default Color
default_color E0DFDE

# Color Title.
color0 DD3A21

# Size and position
minimum_size 250 1
gap_x 1
gap_y 20
alignment top_right

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

TEXT
# ${color white}${goto 0,5}${font zoraclockD:size=50}F${color0}${goto 0,5}${font zoraclockD:size=50}J${color}
# ${color white}${goto 0,5}${font zoraclockD:size=50}A${color0}${goto 0,5}${font zoraclockD:size=50}J${color}
${color0}${goto 0,5}${font zoraclockD:size=50}A${goto 0,5}${color white}${font zoraclockD:size=50}F${color}
#${voffset -90}${color black}${goto 18}${font zoraclockD:size=28}K${color0}
${voffset -90}${goto 18}${font zoraclockD:size=28}K${color0}
# ${voffset -45}${color ff7510}${goto 18}${font zoraclockD:size=28}L${goto 18}${color ffc020}${font zoraclockD:size=28}N${color}
# ${voffset -45}${color da0000}${goto 18}${font zoraclockD:size=28}M${color}
${voffset -45}${color white}${goto 18}${font zoraclockD:size=28}L${goto 18}${color white}${font zoraclockD:size=28}N${color}
${voffset -45}${color white}${goto 18}${font zoraclockD:size=28}M${color}
# ${voffset -53}${goto 14}${color 393939}${font 911 Porscha:size=6}9${goto 14}${color white}${font 911 Porscha:size=6}9
# ${voffset -25}${goto 43}${color 393939}${font 911 Porscha:size=6}5${goto 43}${color white}${font 911 Porscha:size=6}5
# ${voffset 25}${goto 43}${color 393939}${font 911 Porscha:size=6}2${goto 43}${color white}${font 911 Porscha:size=6}2${color}
${color grey}${voffset -45}${goto 11}${font zoraclockH:size=38}${execpi 20 ~/.scripts/clock.sh hour}${color 111111}${goto 11}${font zoraclockH:size=38}${execpi 20 ~/.scripts/clock.sh hour}${color}
${color grey}${voffset -57}${goto 1}${font zoraclockM:size=53}${execpi 20 ~/.scripts/clock.sh minute}${color 111111}${goto 1}${font zoraclockM:size=53}${execpi 20 ~/.scripts/clock.sh minute}${font arial:size=6}${font}${color}
${voffset -90}${GOTO 80}${font Corbel:bold:size=12}${color0}Hora e Data${font}${color}

#${GOTO 80}${time %H:%M}  ${time %d/%m/%Y}
#${GOTO 80}${time %A}, ${time %d} ${time %B} ${time %Y}
${GOTO 80}${font Corbel:size=16}${time %A,}$font
${GOTO 80}$alignc${font Corbel:size=10}${time %d de %B de %Y}$font
${GOTO 80}
${color blue}${GOTO 30}${font Corbel:pixelsize=10}${alignc}${execi 99999 cat/proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor##'}${font}
CPU1:${GOTO 84}${cpubar cpu1 10,75} ${cpu cpu1} %
CPU2:${GOTO 84}${cpubar cpu2 10,75} ${cpu cpu2} %
RAM:${GOTO 84}${membar 10,75} ${memperc} %
SWAP:${GOTO 84}${swapbar 10,75}
${font StyleBats:size=16}o${font}Ligado a:${GOTO 109}${uptime}
${color maroon}${font Corbel:pixelsize=12}${GOTO 36}Kernel:${GOTO 82}${kernel}${font}
${GOTO 92}Lucid Lynx 10.04${font}
${color black}${voffset -5}${GOTO 40}${font OpenLogos:size=38}${font OpenLogos:size=35} u t T${font}
${color green}CPU ${hr 2}
#${GOTO 36}${font StyleBats:size=16}A${font}  ${top name 1}${alignr}${top cpu 1}
${font StyleBats:size=16}A${font}  ${top name 2}${alignr}${top cpu 2}
${font StyleBats:size=16}A${font}  ${top name 3}${alignr}${top cpu 3}
${font StyleBats:size=16}A${font}  ${top name 4}${alignr}${top cpu 4}
MEMÓRIA ${hr 2}
${font StyleBats:size=16}g${font}  ${top name 1}${alignr}${top mem 1}
${font StyleBats:size=16}g${font}  ${top name 2}${alignr}${top mem 2}
${font StyleBats:size=16}g${font}  ${top name 3}${alignr}${top mem 3}
${font StyleBats:size=16}g${font}  ${top name 4}${alignr}${top mem 4}
${color gold}metereologia ${hr 1}
${font}$alignr ${execi 300 conkyForecast --location=BRXX0161 --datatype=CN}, ${execi 300 conkyForecast --location=BRXX0161 --datatype=CO}
$alignr atualizado às: ${execi 300 conkyForecast --location=BRXX0161 --hideunits --datatype=LU -m 0}
${voffset -40}${color  yellow}${font ConkyWeather:size=85}${execi 300 conkyForecast --location=BRXX0161 --datatype=WF}$color
${color gold}$font${voffset -167}${alignr}Vento: ${execi 300 conkyForecast --location=BRXX0161 --datatype=WS} ${execi 300 conkyForecast --datatype=WD}
${alignr}Umidade  do ar: ${execi 300 conkyForecast --location=BRXX0161 --datatype=HM}
${alignr}Precipitação: ${execi 300 conkyForecast --location=BRXX0161 --startday=0 --datatype=PC}
${alignr}Nascer do sol : ${execi 300 conkyForecast --location=BRXX0161 --datatype=SR}
${alignr}Pôr do sol: ${execi 300 conkyForecast --location=BRXX0161 --datatype=SS}
${alignc 30}${execi 300 conkyForecast --location=BRXX0161 --datatype=CT}: ${execi 300 conkyForecast --location=BRXX0161 --hideunits --datatype=HT} $font $alignr Sensação térmica: ${execi 300 conkyForecast --location=BRXX0161 --datatype=LT}

${alignc 7}${execi 300 conkyForecast --location=BRXX0161 --startday=0 --endday=4 --spaces=12 --datatype=DW -w}
${color cyan}${font ConkyWeather:size=26}${execi 300 conkyForecast --location=BRXX0161 --spaces=2 --startday=0 --endday=4 --centeredwidth=1 --datatype=WF}$font$color
${alignc 110}${execi 300 conkyForecast --location=BRXX0161 --startday=0 --hideunits --datatype=HT}/${execi 300 conkyForecast --location=BRXX0161 --startday=0 --hideunits --datatype=LT}${alignc 0}${execi 300 conkyForecast --location=BRXX0161 --startday=1 --hideunits --datatype=HT}/${execi 300 conkyForecast --startday=1 --hideunits --location=BRXX0161 --datatype=LT}${alignc -40}${execi 300 conkyForecast --startday=2 --hideunits --location=BRXX0161 --datatype=HT}/${execi 300 conkyForecast --location=BRXX0161 --startday=2 --hideunits --datatype=LT}${alignc -75}${execi 300 conkyForecast --hideunits --location=BRXX0161 --startday=3 --datatype=HT}/${execi 300 conkyForecast --location=BRXX0161 --startday=3 --hideunits --datatype=LT}${alignc -105}${execi 300 conkyForecast --location=BRXX0161 --startday=4 --hideunits --datatype=HT}/${execi 300 conkyForecast --location=BRXX0161 --startday=4 --hideunits --datatype=LT}
$alignc${execi 300 conkyForecast --location=BRXX0161 --startday=0 --endday=4 --spaces=11 --datatype=PC}
${color navy} REDE ${hr 2}
${voffset -6}${font PizzaDude Bullets:size=14}O${font}   Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}U${font}   Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 F57900 FCAF3E}
${voffset 4}${font PizzaDude Bullets:size=14}N${font}   Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T${font}   Download: ${alignr}${totaldown eth0}
« Última modificação: 30 de Julho de 2010, 19:15 por wankiller »

Offline rruella

  • Usuário Ubuntu
  • *
  • Mensagens: 1.097
    • Ver perfil
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #358 Online: 31 de Julho de 2010, 02:01 »
wankiller o tema dos ícones qual é, por favor ?
e a propósito o conky? um espectacular principalmente a parte da meteorologia.
Dar como resolvido, ou como solucionado um tópico seu:

http://www.youtube.com/watch?v=cW8isbYhR_M

Offline Cláudio Novais

  • Usuário Ubuntu
  • *
  • Mensagens: 501
  • I'm ubuntued
    • Ver perfil
    • UBUNTUED.info
Re: Pra quem usa o Conky, postem aqui seus ".conkyrc" com foto da tela
« Resposta #359 Online: 01 de Agosto de 2010, 12:15 »
Pessoal, há alguns dias atrás, foi publicado um artigo no ubuntued sobre como ter uma barra inferior que apresenta o estado de segurança da Internet em geral, através de vários serviços de anti-virus. O resultado é algo deste género:


Se quiserem tê-lo, leiam com atenção o artigo pois existem alguns pormenores importantes:
http://ubuntued.info/estado-da-seguranca-na-internet-atraves-do-conky

Abraços.