Bem-vindo: Qua, 27 de Novembro 2024, 0:23 Pesquisa avançada

Partilhe aqui configurações do Conky!!

Apresente aqui temas que gostou, skins de programas, ícones, wallpapers, conky's, etc. Ou seja, tudo o que possa alterar de estético no seu Ubuntu, apresente aqui. Em caso de dúvidas de personalização ou se quiser mostrá-la ao mundo, utilize esta secção!

Re: Partilhe a configuração do seu Conky!!

Mensagempor Miguel Fonseca » Sáb, 24 de Setembro 2011, 2:15

Boas Luciano Fx2, excelente Conky.

Obrigado pela dica, muito bom!

Mas não consigo ter a leitura da temperatura dos CPUs! Do disco tenho essa leitura, mas não dos CPUs!
Alguma dica?

Cumps.
It is only in Love and Murder, that we still remain sincere! - Friedrich Durrenmatt
Avatar do usuário
Miguel Fonseca
Bleeding-edge Helper
 
Mensagens: 2512
Registrado em: 10 Junho, 2011

Re: Partilhe a configuração do seu Conky!!

Mensagempor Luciano Fernandes » Sáb, 24 de Setembro 2011, 6:35

Miguel72 » 23 Set 2011 22:15 escreveu:Boas Luciano Fx2, excelente Conky.

Obrigado pela dica, muito bom!

Mas não consigo ter a leitura da temperatura dos CPUs! Do disco tenho essa leitura, mas não dos CPUs!
Alguma dica?

Cumps.


Bom dia Miguel, desejo que esteja bem!

Eu não saberia exatamente lhe ajudar, pois, nem uso o Conky em minha maquina não, só postei aquele tema, pois o usei ano passado... Mas, pelo menos tentar eu tentarei...

http://linux-facil.blogspot.com/2008/06 ... ema-e.html
http://www.botecodigital.info/linux/sen ... tu-debian/
http://meupinguim.com/salve-seu-pinguim-calor-verao/
http://www.vivaolinux.com.br/dica/Lmsen ... ua-maquina

Espero ter podido ajuda-lo de alguma forma... :)

Vivamos a LIBERADE com total DIGNIDADE!
"[...] For we can do nothing against the TRUTH, but for the TRUTH..."
Avatar do usuário
Luciano Fernandes
Nuntius Express
 
Mensagens: 1070
Registrado em: 26 Junho, 2011
Localização: Rio de Janeiro, Brazil.

Re: Partilhe a configuração do seu Conky!!

Mensagempor Luis Cardoso » Sáb, 24 de Setembro 2011, 18:01

Miguel72 » 24 Set 2011, 02:15 escreveu:Boas Luciano Fx2, excelente Conky.

Obrigado pela dica, muito bom!

Mas não consigo ter a leitura da temperatura dos CPUs! Do disco tenho essa leitura, mas não dos CPUs!
Alguma dica?

Cumps.

Quanto à temperatura dos CPU's, veja este tópico. Precisa de ter instalado o lm-sensors e correr o seguinte comando:
sudo sensors-detect

Siga as instruções e reinicie o computador! Depois usando a dica apresentada no tópico que mencionei verá que pode obter a temperatura do CPU.
ImagemImagem
«Escolhe um trabalho de que gostes, e não terás que trabalhar um só dia na tua vida» - Confúcio
Avatar do usuário
Luis Cardoso
Redator
 
Mensagens: 10455
Registrado em: 26 Maio, 2011
Localização: Portugal

Re: Partilhe a configuração do seu Conky!!

Mensagempor Miguel Fonseca » Dom, 25 de Setembro 2011, 4:26

Boas, antes de mais, obrigado pelas dicas, tanto do Luciano Fx2, tanto do Luís.

Eu já havia instalado os lmsensors e feito todo o processo de reboot.

O meu problema é que acho eu, que o meu PC não faz a leitura da temperatura dos processadores (CPUs).

Deixo aqui o output do comando sensors no terminal e agradeço que me confirmem as minhas suspeitas ou me digam onde estão, ou está esse bendito valor da temperatura dos CPUs que não consigo descortinar.

Spoiler:
miguelfonseca@miguelfonseca-PC:~$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +40.0°C (crit = +75.0°C)

dme1737-i2c-5-2e
Adapter: SMBus I801 adapter at 0500
5VSB: +4.95 V (min = +4.50 V, max = +5.50 V)
Vcore: +1.18 V (min = +0.00 V, max = +2.99 V)
+3.3V: +3.28 V (min = +2.97 V, max = +3.63 V)
+5V: +5.00 V (min = +4.50 V, max = +5.50 V)
+12V: +11.90 V (min = +10.81 V, max = +13.19 V)
3VSB: +3.28 V (min = +2.97 V, max = +3.63 V)
Vbat: +3.15 V (min = +2.70 V, max = +3.30 V)
fan1: 2093 RPM (min = 0 RPM)
fan2: 1513 RPM (min = 0 RPM)
fan4: 0 RPM (min = 0 RPM)
temp1: +0.0°C (low = -127.0°C, high = +69.0°C)
SIO Temp: +36.7°C (low = -127.0°C, high = +69.0°C)
temp3: +62.8°C (low = -127.0°C, high = +69.0°C)
cpu0_vid: +0.913 V


Obrigado e cumps.
It is only in Love and Murder, that we still remain sincere! - Friedrich Durrenmatt
Avatar do usuário
Miguel Fonseca
Bleeding-edge Helper
 
Mensagens: 2512
Registrado em: 10 Junho, 2011

Re: Partilhe a configuração do seu Conky!!

Mensagempor Luis Cardoso » Dom, 25 de Setembro 2011, 11:06

Miguel72 » 25 Set 2011, 04:26 escreveu:Boas, antes de mais, obrigado pelas dicas, tanto do Luciano Fx2, tanto do Luís.

Eu já havia instalado os lmsensors e feito todo o processo de reboot.

O meu problema é que acho eu, que o meu PC não faz a leitura da temperatura dos processadores (CPUs).

Deixo aqui o output do comando sensors no terminal e agradeço que me confirmem as minhas suspeitas ou me digam onde estão, ou está esse bendito valor da temperatura dos CPUs que não consigo descortinar.

Spoiler:
miguelfonseca@miguelfonseca-PC:~$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +40.0°C (crit = +75.0°C)

dme1737-i2c-5-2e
Adapter: SMBus I801 adapter at 0500
5VSB: +4.95 V (min = +4.50 V, max = +5.50 V)
Vcore: +1.18 V (min = +0.00 V, max = +2.99 V)
+3.3V: +3.28 V (min = +2.97 V, max = +3.63 V)
+5V: +5.00 V (min = +4.50 V, max = +5.50 V)
+12V: +11.90 V (min = +10.81 V, max = +13.19 V)
3VSB: +3.28 V (min = +2.97 V, max = +3.63 V)
Vbat: +3.15 V (min = +2.70 V, max = +3.30 V)
fan1: 2093 RPM (min = 0 RPM)
fan2: 1513 RPM (min = 0 RPM)
fan4: 0 RPM (min = 0 RPM)
temp1: +0.0°C (low = -127.0°C, high = +69.0°C)
SIO Temp: +36.7°C (low = -127.0°C, high = +69.0°C)
temp3: +62.8°C (low = -127.0°C, high = +69.0°C)
cpu0_vid: +0.913 V


Obrigado e cumps.


Peço-lhe que faça um pequeno teste, faça a leitura dos sensores antes de abrir o Centro de Software do Ubuntu (há que usar os defeitos do Ubuntu em nosso favor xD) e depois de aberto vai verificar que o CPU fica à volta dos 100% (a menos que use o Ubuntu 11.10, aí não sei como o Centro de Software se comporta, caso isto não se verifique, use algo que saiba que vai causar algum consumo de CPU) e faça uma nova leitura. Agora verifique qual é que acompanhou essa subida:
  • temp1
  • SIO Temp
  • temp3

Pelo que vejo do seu output, deve tratar-se de um desktop, certo?
ImagemImagem
«Escolhe um trabalho de que gostes, e não terás que trabalhar um só dia na tua vida» - Confúcio
Avatar do usuário
Luis Cardoso
Redator
 
Mensagens: 10455
Registrado em: 26 Maio, 2011
Localização: Portugal

Re: Partilhe a configuração do seu Conky!!

Mensagempor Miguel Fonseca » Dom, 25 de Setembro 2011, 13:16

Boas Luís, muito obrigado pelos esclarecimentos.

Fiquei a pensar se não seria esse tal valor temp 3 referente ao CPU, mas muito sinceramente acabei por ignorar o pormenor das temperaturas e deixar o conky sem valores reais, apenas com o parâmetro do disco duro e retirando a linha referente à temperatura do CPU.

Realmente tenho um desktop HP Pavilion m7660pt, dual-core a 2,80Mghz, 2GB de RAM e uma (velhinha) ATI X1600 de 512 Mb.
Instalei à cerca de uns dias o Ubuntu Natty 11.04 com o Unity 3D e está a funcionar bem.

Mas, mais cedo ou mais tarde terei que investir numa nova placa gráfica ATI (visto que, além de estar muito contente com a minha, são conhecidos os problemas da NVidia no Linux!) e em mais memória RAM, pelo menos mais 2 Gb.

Quando uso um sistema operativo instalado no Virtual Box noto bastante a falta de RAM e de capacidade gráfica extra!

Também não possuo virtualização de hardware o que me vai impedir de instalar os novos sistemas operativos numa máquina virtual, como já me aconteceu com o 11.10 Oneiric e também quando tentei experimentar o Mac OSX Leopard.

Portanto, terei que, muito em breve investir num novo Desktop (prefiro aos Laptops).

Cumps e mais uma vez, obrigado pelos esclarecimentos.
It is only in Love and Murder, that we still remain sincere! - Friedrich Durrenmatt
Avatar do usuário
Miguel Fonseca
Bleeding-edge Helper
 
Mensagens: 2512
Registrado em: 10 Junho, 2011

Re: Partilhe a configuração do seu Conky!!

Mensagempor miles_maverick » Qua, 5 de Outubro 2011, 20:41

O meu conkyrc

Spoiler:
Código: Selecionar todos
    alignment top_right
background yes
border_margin 5
border_width 5
cpu_avg_samples 2
default_color 000000      
default_outline_color 000000    
default_shade_color 000000   
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
gap_x 355
gap_y 30
max_specials 1024
max_user_text 10000
maximum_width 580
minimum_size 580 100
net_avg_samples 2
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_colour 000000   
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type override
pad_percents 2         
short_units yes         
stippled_borders 3
text_buffer_size 8000
total_run_times 0
update_interval 3.0
uppercase no
use_spacer right
use_xft yes
xftalpha 1

TEXT
${offset 477}${voffset 9}${font OldSansBlack:size=22}${color #232323}${time %I}${offset 13}${time %M}${font}
${font pftempestafivecondensed:size=6}${offset 408}${voffset -42}${color white}Cpu:$cpu%  ${hwmon 0 temp 1}°C       
                                                                                                                                        Core:${freq_g (1)}GHz
                                                                                                                                        Mem: $mem
                                                                                                                                        Batt: ${battery_percent BAT0}%
${font pftempestafivecondensed:size=6}${offset 294}${voffset -44}HOME:${fs_used /home}       
                                                                                                  ROOT:${fs_used /root}   
                                                                                                  FREE:${fs_free /home}
                                                                                                  Swap:${swap}
${font pftempestafivecondensed:size=6}${offset 180}${voffset -44}CPU:${top cpu 1}%                 
                                                            ${top name 1}
                                                            MEM:${top_mem mem 1}%
                                                            ${top_mem name 1} 
${font pftempestafivecondensed:size=6}${offset 65}${voffset -44} Signal: ${wireless_link_qual wlan0}%               
                       IP:${addr wlan0}
                       Ul:${upspeed wla0}
                       Dl:${downspeed wlan0}
 
${image ~/.conky/relojbarconky.png  575x63 -p 0,0}

   
Avatar do usuário
miles_maverick
 
Mensagens: 1004
Registrado em: 25 Junho, 2011
Localização: Barueri

Re: Partilhe a configuração do seu Conky!!

Mensagempor Claudio Novais » Qui, 6 de Outubro 2011, 2:10

miles_maverick » Qua Out 05, 2011 8:41 pm escreveu:O meu conkyrc

Spoiler:
Código: Selecionar todos
    alignment top_right
background yes
border_margin 5
border_width 5
cpu_avg_samples 2
default_color 000000      
default_outline_color 000000    
default_shade_color 000000   
double_buffer yes
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
gap_x 355
gap_y 30
max_specials 1024
max_user_text 10000
maximum_width 580
minimum_size 580 100
net_avg_samples 2
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_colour 000000   
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type override
pad_percents 2         
short_units yes         
stippled_borders 3
text_buffer_size 8000
total_run_times 0
update_interval 3.0
uppercase no
use_spacer right
use_xft yes
xftalpha 1

TEXT
${offset 477}${voffset 9}${font OldSansBlack:size=22}${color #232323}${time %I}${offset 13}${time %M}${font}
${font pftempestafivecondensed:size=6}${offset 408}${voffset -42}${color white}Cpu:$cpu%  ${hwmon 0 temp 1}°C       
                                                                                                                                        Core:${freq_g (1)}GHz
                                                                                                                                        Mem: $mem
                                                                                                                                        Batt: ${battery_percent BAT0}%
${font pftempestafivecondensed:size=6}${offset 294}${voffset -44}HOME:${fs_used /home}       
                                                                                                  ROOT:${fs_used /root}   
                                                                                                  FREE:${fs_free /home}
                                                                                                  Swap:${swap}
${font pftempestafivecondensed:size=6}${offset 180}${voffset -44}CPU:${top cpu 1}%                 
                                                            ${top name 1}
                                                            MEM:${top_mem mem 1}%
                                                            ${top_mem name 1} 
${font pftempestafivecondensed:size=6}${offset 65}${voffset -44} Signal: ${wireless_link_qual wlan0}%               
                       IP:${addr wlan0}
                       Ul:${upspeed wla0}
                       Dl:${downspeed wlan0}
 
${image ~/.conky/relojbarconky.png  575x63 -p 0,0}

   

miles_maverick, Seria bom você partilhar uma imagem do resultado bem como ficheiros extra que você utiliza. Por exemplo, reparei que utiliza pelo menos um ficheiro extra que está na localização: ~/.conky/relojbarconky.png
Avatar do usuário
Claudio Novais
Editor do Ubuntued
 
Mensagens: 16869
Registrado em: 25 Maio, 2011

Re: Partilhe a configuração do seu Conky!!

Mensagempor Claudio Novais » Ter, 11 de Outubro 2011, 15:17



Configuração do Conky:
Spoiler:
Código: Selecionar todos
##################################
## VinDSL | rev. 11-09-04 17:05 ##
##################################
##    September 2011 Series     ##
##################################

## ¡PLEASE READ THE FINE PRINT! ##

####
## Development Platforms (current)
#
#  Ubuntu 10.10 'Maverick Meerkat' (GNOME 2.28  - Conky 1.8.0-1)
#  Ubuntu 11.10 'Oneiric Ocelot'   (UNITY 2D/3D - Conky 1.8.1-2)
#  Screen Resolution: 1280x1024x24 (DELL UltraSharp 1907FP)

####
## Prerequisites (required)
#
#  conky-all 1.8.0 or 1.8.1
#  conkyForecast 2.16 or newer
#  Weather.com XML Data Feed (XOAP)
#  UTF-8 Compatible Text Editor

####
## Installed fonts (required)
#
#  ConkyWeather  (Stanko Metodiev - included in Conky distro)
#  ConkyWindNESW (Stanko Metodiev - included in Conky distro)
#  Cut Outs for 3D FX (Fonts & Things)
#  Droid Font Family (Google Android SDK)
#  KR A Round (Kat's Fun Fonts)
#  Moon Phases (Curtis Clark)
#  OpenLogos (Icoma)
#  PizzaDude Bullets (Jakob Fischer)
#  Radio Space (Iconian Fonts)
#  StyleBats (Vinterstille)
#  Ubuntu Font Family (Canonical Ltd)
#  Ubuntu Title Bold (Paulo Silva - not included in link below)
#  Weather (Jonathan Macagba)
#
## Tips n' Tricks from Mr. Peachy, djyoung4, and 42dorian (Thanks!)
## Most necessary fonts can be downloaded here: http://ompldr.org/vOHdoag
## Unzip the fonts into your font folder, for example: /home/username/.fonts
## Run this command in a terminal (rebuilds font cache file): sudo fc-cache -fv

####
## Use XFT? Required to Force UTF8 (see below)
#
use_xft yes
xftfont DroidSans:size=8.75
xftalpha 0.1

####
## Force UTF8? Requires XFT (see above)
## Displays degree symbol, instead of °, etc.
#
override_utf8_locale yes

####
## This buffer is used for text, single lines, output from $exec, and other variables.
## Increasing the text buffer size (too high) will drastically reduce Conky's performance.
## Decreasing the size (too low) will truncate content and cause strange display output.
## Standard text buffer size is 256 bytes (cannot be less). Adjust YOUR buffer wisely!
#
text_buffer_size 640

####
## Daemonize Conky, aka 'fork to background'.
#
background yes

####
## Update interval in seconds.
#
update_interval 1.5

####
## The number of times Conky will update before quitting.
## Zero makes Conky run forever.
#
total_run_times 0

####
## Create own window instead of using desktop?
#
own_window yes
own_window_type override
own_window_transparent yes

####
## Force images to redraw when they change.
#
imlib_cache_size 0

####
## Use double buffering? Reduces flicker.
#
double_buffer yes

####
## Draw shades?
#
draw_shades no

####
## Draw outlines?
#
draw_outline no

####
## Draw borders around text?
#
draw_borders no

####
## Draw borders around graphs?
#
draw_graph_borders no

####
## Print text to stdout?
## Print text in console?
#
out_to_ncurses no
out_to_console no

####
## Text alignment.
#
alignment top_right

####
## Minimum size of the text area.
## Syntax: minimum_size [width] [height]
#
minimum_size 260 0

####
## Maximum width of the text area.
## Syntax: maximum_width [width]
#
maximum_width 260

####
## Gap between text and screen borders.
#
gap_x 6     ## Left / Right
gap_y 32  ## Top / Bottom

####
## Shorten MiB/GiB to M/G in stats.
#
short_units yes

####
## Pad % symbol spacing after numbers.
#
pad_percents 0

####
## Pad spacing between text and borders.
#
border_inner_margin 4

####
## Limit the length of names in "Top Processes".
#
top_name_width 10

####
## Subtract file system -/+buffers/cache from used memory?
## Set to yes, to produce meaningful physical memory stats.
#
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

####
## Add spaces to keep things from moving around?
## Only affects certain objects.
#
use_spacer right

####
## My colors (suit yourself)
#
color0 White      #FFFFFF
color1 Ivory      #FFFFF0
color2 Ivory2      #EEEEE0
color3 Ivory3      #CDCDC1
color4 Tan1      #FFA54F
color5 Tan2      #EE9A49
color6 Gray      #7E7E7E
color7 AntiqueWhite4   #8B8378
color8 DimGray      #696969
color9 Tomato      #FF6347

#####
## Load Lua for shading (optional)
## Set the path to your script here.
#
lua_load ~/.conky/draw_bg.lua
lua_draw_hook_pre draw_bg

####
## Load Lua for bargraphs (required)
## Set the path to your script here.
#
lua_load ~/.conky/bargraph_small.lua
lua_draw_hook_post main_bars

TEXT
##################################
##             LOGO             ##
##################################
## Uncomment for hard-coded ID (static)
${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -76}${goto 179}${font UbuntuTitleBold:size=19.8}${color4}1${offset 3}1${offset 1}.${offset 1}1${offset 1}0${font}
####
## Uncomment for soft-coded ID (dynamic)
# ${voffset -33}${font OpenLogos:size=103}${color2}v${font}${voffset -76}${goto 179}${font UbuntuTitleBold:size=19.8}${color4}${pre_exec cat /etc/*release | grep 'RELEASE' | awk -F'=' '{print $2}'}${font}
####
## Additional ID (branch version, code name, release date, etc.)
${voffset -2}${goto 184}${font Ubuntu-B:size=8.5}${color4}beta 2${font}
##################################
##            SYSTEM            ##
##################################
${voffset 7}${font DroidSans:bold:size=8.25}${color4}SYSTEM${offset 8}${color8}${voffset -2}${hr 2}${font}
# ${voffset 4}${font OpenLogos:size=10}${color2}u${voffset -4}${font DroidSans:size=8.65}${color3}${offset 5}${pre_exec lsb_release -sd || cat /etc/*release}${font}
${voffset 2}${offset -2}${font OpenLogos:size=12}${color2}Z${voffset -4}${font DroidSans:size=8.65}${color3}${offset 3}${sysname}${offset 3}${kernel}${alignr}${machine}${font}
${voffset 2}${font StyleBats:size=10}${color2}d${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}nVidia GeForce 9600M GS${alignr}${pre_exec dpkg --status nvidia-current | grep Version | cut -f 1 -d '-' | sed 's/[^.,0-9]//g'}/${nvidia temp}°C${font}
${voffset 2}${font StyleBats:size=10}${color2}A${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}Intel Core 2 DUO T9400${alignr 1}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz/${acpitemp}°C${font}
${voffset 2}${font StyleBats:size=10}${color2}q${voffset -1}${font DroidSans:size=8.65}${color3}${offset 5}System${offset 3}Uptime${alignr}${font DroidSans:size=8.4}${uptime_short}${font}
##################################
##          PROCESSORS          ##
##################################
${voffset 6}${font DroidSans:bold:size=8}${color4}PROCESSORS${offset 8}${color8}${voffset -2}${hr 2}${font}
${voffset 4}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU1${offset 5}${font DroidSans:size=8.3}${cpu cpu1}%${font}
${voffset 2}${font StyleBats:size=9.9}${color2}k${voffset -2}${font DroidSansFallback:size=8.39}${color3}${offset 2}CPU2${offset 5}${font DroidSans:size=8.3}${cpu cpu2}%${font}
##################################
##            MEMORY            ##
##################################
${voffset 6}${font DroidSans:bold:size=8}${color4}MEMORY${offset 8}${color8}${voffset -2}${hr 2}${font}
${voffset 4}${font StyleBats:size=10}${color2}l${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 3}RAM${goto 97}${font DroidSans:size=8.3}${mem}${goto 133}/${offset 5}${memmax}${alignr}${memperc}%${font}
##################################
##             HDD              ##
##################################
${voffset 16}${font DroidSans:bold:size=8}${color4}HDD${offset 8}${color8}${voffset -2}${hr 2}${font}
${voffset 5}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}UBUNTU${goto 95}${font DroidSans:size=8.3}${fs_used /}${goto 133}/${offset 5}${fs_size /}${alignr}(${fs_free /})${font}
${voffset 15}${font StyleBats:size=9.9}${color2}x${voffset -2}${font DroidSansFallback:size=8.3}${color3}${offset 4}WINDOWS${goto 95}${font DroidSans:size=8.3}${fs_used /media/Windows}${goto 133}/${offset 5}${fs_size /media/Windows}${alignr}(${fs_free /media/Windows})${font}
##################################
##         TOP PROCESSES        ##
##################################
${voffset 16}${font DroidSans:bold:size=8}${color4}TOP PROCESSES${offset 8}${color8}${voffset -2}${hr 2}${font}
${voffset 4}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 1}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 1}${alignr}${top_mem mem 1}%${font}
${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 2}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 2}${alignr}${top_mem mem 2}%${font}
${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 3}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 3}${alignr}${top_mem mem 3}%${font}
#${voffset 2}${if_running rhythmbox}${voffset -16}${else}${if_running banshee}${voffset -16}${else}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 4}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 4}${alignr}${top_mem mem 4} %${font}
#${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 5}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 5}${alignr}${top_mem mem 5}%${font}
#${voffset 2}${font StyleBats:size=10}${color1}h${voffset -3}${font DroidSans:size=8.75}${color3}${offset 5}${top_mem name 6}${goto 120}${font DroidSans:size=8.3}${top_mem mem_res 6}${alignr}${top_mem mem 6}%${endif}${endif}${font}
##################################
##           NETWORK            ##
##################################
#${voffset 6}${font DroidSans:bold:size=8}${color4}NETWORK${offset 8}${color8}${voffset -2}${hr 2}${font}
#${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.5}${color3}${offset 5}Private${offset 3}IP:${goto 80}${font DroidSans:size=8.3}${addr wlan0}${goto 170}${font PizzaDudeBullets:size=9.5}${color6}T${font DroidSans:size=8.5}${color3}${offset 5}Down${font DroidSans:size=8.3}${alignr}${downspeed wlan0}${font}
#${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}a${font DroidSans:size=8.5}${color3}${offset 5}Public${offset 7}IP:${goto 80}${font DroidSans:size=8.3}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}${goto 170}${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}N${font DroidSans:size=8.5}${color3}${offset 5}Up${font DroidSans:size=8.3}${alignr}${upspeed wlan0}${font}
#${voffset 4}${font PizzaDudeBullets:size=9.5}${color6}T${font DroidSans:size=8.5}${color3}${offset 5}Downloaded${alignr}${font DroidSans:size=8.3}${totaldown wlan0}${font}
#${voffset 0}${font PizzaDudeBullets:size=9.5}${color6}N${font DroidSans:size=8.5}${color3}${offset 5}Uploaded${alignr}${font DroidSans:size=8.3}${totalup wlan0}${font}
##################################
##      WEATHER (Imperial)      ##
##################################
${voffset 6}${font DroidSans:bold:size=8}${color4}WEATHER${offset 8}${color8}${voffset -2}${hr 2}${font}
${voffset 2}${goto 40}${font Weather:size=42}${color2}y${font}
${voffset -53}${font RadioSpace:size=35.5}${if_match ${execi 1800 conkyForecast -d HT -uix}<=99}${color3}${alignc}${execi 1800 conkyForecast -d HT -i}${else}${if_match ${execi 1800 conkyForecast -d HT -uix}>=100}${color9}${alignc}${execi 1800 conkyForecast -d HT -i}${endif}${endif}${font}
${voffset -33}${goto 203}${font DroidSansFallback:bold:size=7.55}${color6}H:${offset 0}${execpi 1800 conkyForecast -d HT -s 0 -ui | sed -e 's/N\/A'/'\$\{color7\}TBA\$\{color6\}/g'}${voffset 15}${goto 204}L:${offset 1}${execi 1800 conkyForecast -d LT -s 0 -ui}${font}
${voffset -40}${font KRARound:size=36}${color7}${goto 190}I${font}
${voffset 5}${font Ubuntu:size=23}${color4}${alignc}${execpi 1800 conkyForecast -d CT | sed -e 's/Freezing Drizzle'/'Drizzle/g' -e 's/Isolated Thunderstorms'/'Thunderstorms/g' -e 's/Light Snow Showers'/'Snow Showers/g' -e 's/Mixed Precipitation'/'Precipitation/g' -e 's/Mixed Rain and Hail'/'Rain and Hail/g' -e 's/Mixed Rain and Snow'/'Rain and Snow/g' -e 's/Mixed Rain and Sleet'/'Rain and Sleet/g' -e 's/Scattered Showers'/'Showers/g' -e 's/Scattered Snow Showers'/'Snow Showers/g' -e 's/Scattered Thunderstorms'/'Thunderstorms/g' -e 's/Severe Thunderstorms'/'Thunderstorms/g'}${font}
${voffset 12}${goto 22}${font ConkyWindNESW:size=41}${color3}${execi 1800 conkyForecast -d BS}${font}${voffset -40}${goto 100}${font ConkyWeather:size=45}${execi 1800 conkyForecast -d WF}${font}${voffset -39}${goto 194}${font MoonPhases:size=32}${execi 1800 conkyForecast -d MF}${font}
${voffset 6}${goto 30}${font DroidSansFallback:bold:size=8.45}${color4}${execpi 1800 conkyForecast -d WS -i | sed -e 's/calm'/'\$\{offset 2\}Calm/g' -e 's/mph'/'\$\{offset 3\}mph/g'}${goto 91}Feels like ${execi 1800 conkyForecast -d LT -ui}${execpi 1800 conkyForecast -d MP | sed -e 's/First.*'/'\$\{goto 188\}First Qtr/g' -e 's/Last.*'/'\$\{goto 190\}Last Qtr/g' -e 's/New.*'/'\$\{goto 201\}New/g' -e 's/Full.*'/'\$\{goto 201\}Full/g' -e 's/Waning.*'/'\$\{goto 193\}Waning/g' -e 's/Waxing.*'/'\$\{goto 193\}Waxing/g'}${font}
#${voffset 9}${goto 40}${font DroidSansMono:bold:size=8.35}${color3}${execi 1800 conkyForecast -d DW -s 1 -w}${goto 95}${execi 1800 conkyForecast -d DW -s 2 -w}${goto 149}${execi 1800 conkyForecast -d DW -s 3 -w}${goto 203}${execi 1800 conkyForecast -d DW -s 4 -w}${font}
#${voffset 2}${goto 30}${font ConkyWeather:size=32}${color3}${execi 1800 conkyForecast -d WF -s 1 -e 4 -S 1}${font}
#${voffset 0}${goto 25}${font DroidSans:bold:size=8.5}${color4}${execi 1800 conkyForecast -d HT -s 1 -ui}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 1 -ui}${goto 82}${execi 1800 conkyForecast -d HT -s 2 -ui}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 2 -ui}${goto 139}${execi 1800 conkyForecast -d HT -s 3 -ui}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 3 -ui}${goto 193}${execi 1800 conkyForecast -d HT -s 4 -ui}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 4 -ui}${font}
##################################
##             TIME             ##
##################################
${voffset 6}${font DroidSans:bold:size=8}${color4}TIME${offset 8}${color8}${voffset -2}${hr 2}${font}
${voffset -4}${font RadioSpace:size=32}${color3}${if_match ${time %l}<=9}${alignc 7}${time %l:%M%p}${else}${if_match ${time %l}>=10}${alignc -1}${time %l:%M%p}${endif}${endif}${font}
${voffset 0}${font DroidSansFallback:bold:size=6.85}${color4}${alignc 2}Sunrise${offset 1}${execi 1800 conkyForecast -d SR}${color3}${offset 2}|${offset 2}${color4}Sunset${offset 1}${execi 1800 conkyForecast -d SS}${font}
##################################
##           CALENDAR           ##
##################################
${voffset 4}${font DroidSans:bold:size=8}${color4}DATE${offset 8}${color8}${voffset -2}${hr 2}${font}
${voffset 16}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %A}${font}
${voffset -4}${font DroidSansFallback:bold:size=18}${if_match ${time %e}<=9}${color5}${alignc 65}${time %e}${font}${else}${if_match ${time %e}>=10}${color5}${alignc 60}${time %e}${endif}${endif}${font}
${voffset 0}${font DroidSansMono:size=7.55}${color3}${alignc 60}${time %B}${font}
${voffset 0}${font DroidSansMono:size=7.6}${color3}${alignc 60}${time %Y}${font}
####
## Uncomment for Conky 1.8.0 (use mono fonts only)
# ${voffset -75}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e s/^/"\$\{offset 100"\}/ -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
####
## Uncomment for Conky 1.8.1 (use mono fonts only)
${voffset -80}${offset 110}${font DroidSansMono:size=7.55}${color3}${execpi 60 VinDSL_Cal_9=`date +%-d`; cal -h | sed -e 's/\r//g' -e 's/^/ /g' -e '1d' -e 's/\<'"$VinDSL_Cal_9"'\>/${color4}&${color3}/'}
####
## Uncomment for border around today's date
${voffset -91}${font CutOutsFor3DFX:size=67}${color8}${alignc 99}2${font}


Autor desta configuração: xyzzyman
Página da configuração: http://ubuntuforums.org/showpost.php?p= ... ount=18647
Avatar do usuário
Claudio Novais
Editor do Ubuntued
 
Mensagens: 16869
Registrado em: 25 Maio, 2011

Re: Partilhe a configurações do Conky!!

Mensagempor Claudio Novais » Ter, 11 de Outubro 2011, 15:31


conkyrc:
Spoiler:
Código: Selecionar todos
##############################
#     Conky by FOUTES.       #
#     Fonts required-        #
#      ConkySymbols          #
#         Poky               #
#     PizzaDude Bullets      #
##############################

# Create own window instead of using desktop (required in nautilus)
background no
own_window yes
own_window_type override
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 right
use_xft no

# Update interval in seconds
update_interval 1.5

# Minimum size of text area
minimum_size  170 730

# Draw shades?
draw_shades no


# Default colors and also border colors, grey90 == #ffffff
default_color white
default_outline_color white

# Text alignment, other possable values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 6
gap_y 32

# font
use_xft yes
xftfont Sazanami Gothic:size=8
override_utf8_locale yes

# Load Lua for shading and bargraphs
lua_load /home/linus/.scripts/combined.lua
lua_draw_hook_pre draw_lua

# stuff after 'TEXT' will be formatted on screen
short_units yes
pad_percents 2
TEXT
${voffset 5}${font ConkySymbols:size=16}O${font}${goto 34}${voffset -7}$kernel
${voffset 7}${font Poky:size=16}w${font}${goto 35}${voffset -7}${execi 3600 aptitude search "~U" | wc -l | tail} Packages
${voffset 5}${goto 6}${font ConkySymbols:size=17}c${font}${goto 35}${voffset -8}${execpi 1800 python /home/linus/.scripts/gmail.py}
${voffset 6}${goto 6}${font PizzaDude Bullets:size=17}L${font}${goto 36}${voffset -2}$uptime_short
${voffset 7}${goto 2}${font Poky:size=22}R${font}${goto 40}${voffset -17}${battery_short} ${battery_time BAT0}
${voffset 18}${goto 4}${font ConkySymbols:size=22}f${font}${goto 41}${voffset -17}${cpu cpu0}%${voffset -7}${goto 89}${font ConkySymbols:size=14}H${font}${goto 105}${voffset -2}${execpi 5 sensors | grep 'temp1' | cut --characters 15-16}C
${voffset 23}${goto 7}${font PizzaDude Bullets:size=12}C${font}${goto 27}${voffset -2}${top name 1}${goto 130}${top_mem cpu 1}
${voffset 5}${goto 7}${font PizzaDude Bullets:size=12}C${font}${goto 27}${voffset -2}${top name 2}${goto 130}${top_mem cpu 2}
${voffset 5}${goto 7}${font PizzaDude Bullets:size=12}C${font}${goto 27}${voffset -2}${top name 3}${goto 130}${top_mem cpu 3}
${voffset 20}${goto 4}${font ConkySymbols:size=22}J${font}${goto 40}${voffset -14}$memperc% $mem/$memmax
${voffset 23}${goto 7}${font PizzaDude Bullets:size=12}C${font}${goto 27}${voffset -2}${top_mem name 1}${goto 130}${top_mem mem 1}
${voffset 5}${goto 7}${font PizzaDude Bullets:size=12}C${font}${goto 27}${voffset -2}${top_mem name 2}${goto 130}${top_mem mem 2}
${voffset 5}${goto 7}${font PizzaDude Bullets:size=12}C${font}${goto 27}${voffset -2}${top_mem name 3}${goto 130}${top_mem mem 3}
${voffset 17}${goto 5}${font ConkySymbols:size=20}k${font}
${voffset 15}${goto 9}${font PizzaDude Bullets:size=12}u${font}${goto 27}${voffset -1}Boot:${voffset -10}${goto 64}${fs_free /boot}/${fs_size /boot}/${fs_type /boot}
${voffset 20}${goto 9}${font PizzaDude Bullets:size=12}u${font}${goto 27}${voffset -1}Root:${voffset -10}${goto 67}${fs_free /}/${fs_size /}/${fs_type /}
${voffset 20}${goto 9}${font PizzaDude Bullets:size=12}u${font}${goto 27}${voffset -1}Home:${voffset -10}${goto 67}${fs_free /home}/${fs_size /home}/${fs_type /home}
${voffset 20}${goto 9}${font PizzaDude Bullets:size=12}u${font}${goto 27}${voffset -1}Swap:${voffset -10}${goto 69}${swapperc}% ${swap} / ${swapmax}
${voffset 31}${font ConkySymbols:size=20}g${font}${voffset -14}${goto 52}${wireless_essid wlan0}
${voffset 20}${goto 9}${font PizzaDude Bullets:size=12}b${font}${goto 29}${voffset -1}Bitrate:${goto 68}${wireless_bitrate wlan0}
${voffset 8}${goto 9}${font PizzaDude Bullets:size=12}b${font}${goto 29}${voffset -1}Local  IP:${goto 78}${addr wlan0}
${voffset 8}${goto 9}${font PizzaDude Bullets:size=12}b${font}${goto 29}${voffset -1}Public IP:${goto 78}${execi 1800 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${voffset 14}${goto 9}${font PizzaDude Bullets:size=12}U${font}${goto 29}${voffset -1}Speed Down:${downspeed wlan0}
${voffset 8}${goto 9}${font PizzaDude Bullets:size=12}O${font}${goto 29}${voffset -1}Speed Up:${totalup wlan0}
${voffset 15}${goto 9}${font PizzaDude Bullets:size=12}m${font}${goto 29}${voffset -1}Total Down:${totaldown wlan0}
${voffset 8}${goto 9}${font PizzaDude Bullets:size=12}m${font}${goto 29}${voffset -1}Total Up:${totalup wlan0}


combined.lua
Spoiler:
Código: Selecionar todos
--[[ this script combines the background drawing lua (originally by londonali1010, modified by VinDSL)
with a script that emulates only the gradient bars portion of the script by wlourf
call in conkyrc above TEXT like so
lua_load /path to file/filename.lua
lua_draw_hook_pre draw_lua
]]
require 'cairo'
function conky_draw_lua()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
local updates=tonumber(conky_parse('${updates}'))
if updates>5 then
--#########################################################################################################
--#########################################################################################################
--background setup -- make sure this comes first-----------
settings={--CONKY BACKGROUND
corner_r=50,--corner radius
bg_color={0x222222,0.9},--color and alpha inside {}
bg_height=-2,--negative number reduces height of bg
w=conky_window.width,
h=conky_window.height,
};background(settings)
--end background setup-------------------------------------

bar_adjust=-20

--bar setup------------------------------------------------
settings={--BATTERY GRAPH BATTERY
number=tonumber(conky_parse("${battery_percent}")),--conky object to read
number_max=100,--max value of conky object
bar_startx=41,--x coordinate
bar_starty=152+bar_adjust,--y coordinate
divisions=45,--number of blocks
div_width=2,--horizontal size
div_height=6,--vertical size
div_gap=1,--space between bits
bg_color={0xFFFFFF,0.25},--background color, color and alpha inside {}
st_color={0xFF0000,1},--start color for gradient, green
end_color={0x00FF00,1},--end color for gradient
mid_color={0xFFFF00,1},--middle color for gradient, yellow
};bars(settings)
--copy and paste above for new bar-------------------------
--bar setup------------------------------------------------
settings={--CPU GRAPH CPU0
number=tonumber(conky_parse("${cpu cpu0}")),
number_max=100,
bar_startx=42,
bar_starty=187+bar_adjust,
divisions=45,
div_width=2,
div_height=6,
div_gap=1,
bg_color={0xFFFFFF,0.25},
st_color={0x00FF00,1},
mid_color={0xFFFF00,1},
end_color={0xFF0000,1},
};bars(settings)
--copy and paste above for new bar-------------------------
--bar setup------------------------------------------------
settings={--MEMPERC GRAPH
number=tonumber(conky_parse("${memperc}")),
number_max=100,
bar_startx=41,
bar_starty=300+bar_adjust,
divisions=45,
div_width=2,
div_height=6,
div_gap=1,
bg_color={0xFFFFFF,0.25},
st_color={0x00FF00,1},
mid_color={0xFFFF00,1},
end_color={0xFF0000,1},
};bars(settings)
--copy and paste above for new bar-------------------------
--bar setup------------------------------------------------
settings={--BOOT FILESYSTEM USED GRAPH
number=tonumber(conky_parse("${fs_used_perc /boot}")),
number_max=100,
bar_startx=57,
bar_starty=443+bar_adjust,
divisions=39,
div_width=2,
div_height=6,
div_gap=1,
bg_color={0xFFFFFF,0.25},
st_color={0x00FF00,1},
mid_color={0xFFFF00,1},
end_color={0xFF0000,1},
};bars(settings)
--copy and paste above for new bar-------------------------
--bar setup------------------------------------------------
settings={--ROOT FILESYSTEM USED GRAPH
number=tonumber(conky_parse("${fs_used_perc /}")),
number_max=100,
bar_startx=58,
bar_starty=469+bar_adjust,
divisions=39,
div_width=2,
div_height=6,
div_gap=1,
bg_color={0xFFFFFF,0.25},
st_color={0x00FF00,1},
mid_color={0xFFFF00,1},
end_color={0xFF0000,1},
};bars(settings)
--copy and paste above for new bar-------------------------
--bar setup------------------------------------------------
settings={--HOME FILESYSTEM USED GRAPH
number=tonumber(conky_parse("${fs_used_perc /home}")),
number_max=100,
bar_startx=63,
bar_starty=494+bar_adjust,
divisions=37,
div_width=2,
div_height=6,
div_gap=1,
bg_color={0xFFFFFF,0.25},
st_color={0x00FF00,1},
mid_color={0xFFFF00,1},
end_color={0xFF0000,1},
};bars(settings)
--copy and paste above for new bar-------------------------
--bar setup------------------------------------------------
settings={--SWAP FILESYSTEM USED GRAPH
number=tonumber(conky_parse("${swapperc}")),
number_max=100,
bar_startx=63,
bar_starty=519+bar_adjust,
divisions=37,
div_width=2,
div_height=6,
div_gap=1,
bg_color={0xFFFFFF,0.25},
st_color={0x00FF00,1},
mid_color={0xFFFF00,1},
end_color={0xFF0000,1},
};bars(settings)
--copy and paste above for new bar-------------------------
--bar setup------------------------------------------------
settings={--WIRELESS NETWORK GRAPH
number=tonumber(conky_parse("${wireless_link_qual wlan0}")),
number_max=100,
bar_startx=42,
bar_starty=567+bar_adjust,
divisions=44,
div_width=2,
div_height=6,
div_gap=1,
bg_color={0xFFFFFF,0.25},
st_color={0xFF0000,1},
end_color={0x00FF00,1},
mid_color={0xFFFF00,1},
};bars(settings)
--copy and paste above for new bar-------------------------
--#########################################################################################################
--#########################################################################################################
end-- if updates>5
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function
function rgb_to_r_g_b(col_a)
return ((col_a[1] / 0x10000) % 0x100) / 255., ((col_a[1] / 0x100) % 0x100) / 255., (col_a[1] % 0x100) / 255., col_a[2]
end
function bars(t)
local bar_startx=t.bar_startx
local bar_starty=t.bar_starty
local divisions=t.divisions
local div_width=t.div_width
local div_height=t.div_height
local div_gap=t.div_gap
local br,bg,bb,ba=rgb_to_r_g_b(t.bg_color)
local sr,sg,sb,sa=rgb_to_r_g_b(t.st_color)
local mr,mg,mb,ma=rgb_to_r_g_b(t.mid_color)
local er,eg,eb,ea=rgb_to_r_g_b(t.end_color)
if t.number==nil then number=0 else number=t.number end
local number_max=t.number_max
local number_divs=(number/number_max)*divisions
cairo_set_line_width (cr,div_width)
for i=1,divisions do
if i<(divisions/2) and i<=number_divs then
colr=((mr-sr)*(i/(divisions/2)))+sr
colg=((mg-sg)*(i/(divisions/2)))+sg
colb=((mb-sb)*(i/(divisions/2)))+sb
cola=((ma-sa)*(i/(divisions/2)))+sa
elseif i>=(divisions/2) and i<=number_divs then
colr=((er-mr)*((i-(divisions/2))/(divisions/2)))+mr
colg=((eg-mg)*((i-(divisions/2))/(divisions/2)))+mg
colb=((eb-mb)*((i-(divisions/2))/(divisions/2)))+mb
cola=((ea-ma)*((i-(divisions/2))/(divisions/2)))+ma
else
colr=br
colg=bg
colb=bb
cola=ba
end
cairo_set_source_rgba (cr,colr,colg,colb,cola)
cairo_move_to (cr,bar_startx+((div_width+div_gap)*i-1),bar_starty)
cairo_rel_line_to (cr,0,div_height)
cairo_stroke (cr)
end
end--function bars
function background(t)
local corner_r=t.corner_r
local br,bg,bb,ba=rgb_to_r_g_b(t.bg_color)
local v=t.bg_height
local h=t.h
local w=t.w
cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h+v-corner_r)
cairo_curve_to(cr,w,h+v,w,h+v,w-corner_r,h+v)
cairo_line_to(cr,corner_r,h+v)
cairo_curve_to(cr,0,h+v,0,h+v,0,h+v-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,br,bg,bb,ba)
cairo_fill(cr)
end--function background


gmail.py
Spoiler:
Código: Selecionar todos
import os
import string

#Enter your username and password below within double quotes
# eg. username="username" and password="password"
username=""
password=""

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 "0 new"
else:
   print str(fc)+" new"





Com meteorologia:


Conkyrc1
Spoiler:
Código: Selecionar todos
# Create own window instead of using desktop (required in nautilus)
background no
own_window yes
own_window_type override
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 right
use_xft no

# Update interval in seconds
update_interval 1.5

# Minimum size of text area
minimum_size  150 730

# Draw shades?
draw_shades no


# Default colors and also border colors, grey90 == #ffffff
default_color white
default_outline_color white

# Text alignment, other possable values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
alignment top_middle

# Gap between borders of screen and text
gap_x 495
gap_y 35

# font
use_xft yes
xftfont Sazanami Gothic:size=8
override_utf8_locale yes

# Load Lua for shading
lua_load /home/linus/.scripts/draw_bg.lua
lua_draw_hook_pre draw_bg


TEXT
##################
##   WEATHER    ##
##################
${font Ubuntu:size=10}${color1}Today's Sunrise: ${color1}${execi 600 conkyForecast --location= --datatype=SR --}
${font Ubuntu:size=10}${color1}Today's Sunset:${execi 600 conkyForecast --location= --datatype=SS --}
${font Ubuntu:size=10}${color1}Tomorrow's Sunrise: ${color #E6E8FA}${execi 600 conkyForecast --location= --startday=1 --datatype=SR --}
${font Ubuntu:size=10}${color1}Tomorrow's Sunset:${execi 600 conkyForecast --location= --startday=1 --datatype=SS --}
${color yellow}${font Ubuntu:size=10}Station: ${color yellow}${execi 600 conkyForecast --location= --datatype=OB}
${color yellow}${font Ubuntu:size=10}Last Update: ${color yellow}${execi 600 conkyForecast --location= --datatype=LU}${font}

${goto 65}${font Weather:size=35}${color5}y${voffset -8}${font Ubuntu:size=32}${color3} ${execpi 600 conkyForecast --imperial --location=}
${voffset -20}${font Ubuntu:size=20}${color8}${alignc}${execi 600 conkyForecast --location= --datatype=CT}
${goto 100}${font ConkyWeather:style=Bold:size=40}${color1}${execi 600 conkyForecast --location= --datatype=WF}${goto 188}${font ConkyWindNESW:style=Bold:size=40}${color1}${execi 600 conkyForecast --location= --datatype=BS}
${voffset -28}${goto 60}${font}${color1}${font Radis sans}Feels like ${font} ${execi 600 conkyForecast --location= --imperial --datatype=LT --centeredwidth=4 -iu}${goto 200}${execi 600 conkyForecast --location= --imperial --datatype=WS}
${voffset 7}${goto 53}${font}${color1}${execi 600 conkyForecast --location= --datatype=DW --startday=1 --shortweekday}${goto 119}${execi 600 conkyForecast --location= --datatype=DW --startday=2 --shortweekday}${goto 182}${execi 600 conkyForecast --location=USAL0162 --datatype=DW --startday=3 --shortweekday}
${goto 43}${font}${color1}${font ConkyWeather:size=32}${execi 600 conkyForecast --location= --datatype=WF --startday=1 --endday=3 --spaces=2}
${voffset -30}${goto 41}${font}${color1}${execi 600 conkyForecast --location= --imperial --datatype=HT --startday=1 --hideunits --centeredwidth=4 -iu}/${execi 600 conkyForecast --location= --imperial --datatype=LT --startday=1 --hideunits --centeredwidth=4 -iu}${goto 107}${execi 600 conkyForecast --location=USAL0162 --imperial --datatype=HT --startday=2 --hideunits --centeredwidth=4 -iu}/${execi 600 conkyForecast --location=USAL0162 --imperial --datatype=LT --startday=2 --hideunits --centeredwidth=4 -iu}${goto 172}${execi 600 conkyForecast --location= --imperial --datatype=HT --startday=3 --hideunits --centeredwidth=4 -iu}/${execi 600 conkyForecast --location= --imperial --datatype=LT --startday=3 --hideunits --centeredwidth=4 -iu}


draw_bg.lua
Spoiler:
Código: Selecionar todos
--[[    Background by londonali1010 (2009)
    VinDSL Background Hack (2010-2011)

This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.

To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
    lua_load ~/scripts/draw_bg.lua
    lua_draw_hook_pre draw_bg

Changelog:
    + v3.0    VinDSL Hack (01.28.2011) Killed memory leak.
    + v2.4    VinDSL Hack (01.25.2011) Declared all variables in local.
    + v2.3    VinDSL Hack (12.31.2010) Added shading example(s).
    + v2.2    VinDSL Hack (12.30.2010) Cleaned up the code a bit.
    + v2.1    VinDSL Hack (12.24.2010) Added cairo destroy function(s).
    + v2.0    VinDSL Hack (12.21.2010) Added height adjustment variable.
    + v1.0    Original release (07.10.2009)

]]

--------------START OF PARAMETERS ------------

-- Change these settings to affect your background:

-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.

    local corner_r = 45

-- Set the colour and transparency (alpha) of your background (0.00 - 0.99).

--    (Light Shading Example)
--    local bg_colour = 0x4d4d4d
--    local bg_alpha = 0.50

--    (Medium Shading Example)
--    local bg_colour = 0x222222
--    local bg_alpha = 0.50

--    (Dark Shading Example)
--    local bg_colour = 0x000000
--    local bg_alpha = 0.50

    local bg_colour = 0x222222
    local bg_alpha = 0.9

-- Tweaks the height of your background, in pixels. If you don't need to adjust the height, use 0.

--    (Default Setting)
    local vindsl_hack_height = -400

--    local vindsl_hack_height = -228

---------------END OF PARAMETERS -------------

require 'cairo'
local    cs, cr = nil

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

function conky_draw_bg()
    if conky_window == nil then return end
    if cs == nil then cairo_surface_destroy(cs) end
    if cr == nil then cairo_destroy(cr) end
    local w = conky_window.width
    local h = conky_window.height
    local v = vindsl_hack_height
    local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
    local cr = cairo_create(cs)
   
    cairo_move_to(cr,corner_r,0)
    cairo_line_to(cr,w-corner_r,0)
    cairo_curve_to(cr,w,0,w,0,w,corner_r)
    cairo_line_to(cr,w,h+v-corner_r)
    cairo_curve_to(cr,w,h+v,w,h+v,w-corner_r,h+v)
    cairo_line_to(cr,corner_r,h+v)
    cairo_curve_to(cr,0,h+v,0,h+v,0,h+v-corner_r)
    cairo_line_to(cr,0,corner_r)
    cairo_curve_to(cr,0,0,0,0,corner_r,0)
    cairo_close_path(cr)

    cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    cairo_fill(cr)

    cairo_surface_destroy(cs)
    cairo_destroy(cr)
    end




Autor desta configuração: foutes
Página da configuração:
Avatar do usuário
Claudio Novais
Editor do Ubuntued
 
Mensagens: 16869
Registrado em: 25 Maio, 2011

AnteriorPróximo

Voltar para Temas do Ubuntu

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 13 visitantes

cron