Este modelo de Conky, é um dos primeiros que fiz. E, por isso, é um dos mais simples:
Nome: ConkyBR-2
Características: Mostra a previsão atual e para os próximos 3 dias. Além da hora atual.
Download: ConkyBR-2.tar.gz
Funciona no modo Google: Sim.
Instalação: Descompacte o arquivo tar.gz. e rode o script:
$ sh installconky.sh
Este script confere se você possui o BrWeather instalado corretamente. Se tudo estiver OK, ele instala o Conky na pasta /home/seu_usuário/.brweather/conky2.
Observações: houve apenas uma leve mudança na imagem de fundo.
Conkyrc:
# ConkyBrWeather
# Criado por LeandroNKZ
# Necessário o uso do BrWeather:
# http://brweatherproject.blogspot.com/
# Instruções e instalação:
# http://va.mu/V59f
# -- Conky settings -- #
background yes
update_interval 1
cpu_avg_samples 1
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 0
# -- Window specifications -- #
# -- GNOME -- #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
# -- Openbox -- #
#own_window yes
#own_window_transparent yes
#own_window_type desktop
# -- Alignment -- #
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
border_inner_margin 0
border_outer_margin 0
minimum_size 250 250
maximum_width 250
gap_x 10
gap_y 10
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# -- Text settings -- #
use_xft yes
xftfont Monospace:size=10
xftalpha 0.4
uppercase no
# -- Colors -- #
default_color 8B8B8B
color1 FFFFFF
color2 C8C8C8
color3 000000
TEXT
${goto 25}${font Monospace:size=30}${color0}${time %H}:${time %M}:${font Monospace:size=25}${time %S}
#Cidade
${voffset 0}${font Monospace:size=12}${color0}${goto 100}${execi 3600 brweather --option=city | cut -f1 -d'-'}
# Temperatura (mínima e máxima)
${voffset 0}${font Monospace:size=20}${color0}${goto 100}${execi 3600 brweather --option=TN}C
# Segundo dia (amanhã)
${voffset 20}${font Monospace:size=20}${color0}${goto 10}${execi 3600 brweather --option=Day2}
# Terceiro dia (depois de amanhã)
${voffset -30}${font Monospace:size=20}${color0}${goto 95}${execi 3600 brweather --option=Day3}
# Quarto dia
${voffset -31}${font Monospace:size=20}${color0}${goto 175}${execi 3600 brweather --option=Day4}
# Temperatura de amanhã
${voffset 40}${font Monospace:size=10}${color0}${goto 10}${execi 3600 brweather --option=LT2}/${execi 3600 brweather --option=HT2}
# Temperatura do terceiro dia
${voffset -17}${font Monospace:size=10}${color0}${goto 90}${execi 3600 brweather --option=LT3}/${execi 3600 brweather --option=HT3}
# Temperatura do quarto dia
${voffset -17}${font Monospace:size=10}${color0}${goto 170}${execi 3600 brweather --option=LT4}/${execi 3600 brweather --option=HT4}
# Last update
${voffset 10}${goto 15}${font Monospace:size=8}${color0}Last update:${font Monospace:size=8}${color0}${execi 3600 brweather --option=LU}
# Imagens
# Lembre-se: Para adicionar imagens, use o comando "execpi" no lugar do "execi"
# Dica: Experimente trocar o "--imagem1" por --imagem2, 3, 4, 5, 6 ou 7.
${image $HOME/.brweather/conky2/fundo.png -p 0,0}
${execpi 3600 brweather --imagem1=CN -p 0,40 -s 90x90}
${execpi 3600 brweather --imagem1=C2 -p 5,160 -s 60x60}
${execpi 3600 brweather --imagem1=C3 -p 85,160 -s 60x60}
${execpi 3600 brweather --imagem1=C4 -p 165,160 -s 60x60}
Outras variações (apenas troque o arquivo conkyrc):
Imagem 2:
# ConkyBrWeather
# Criado por LeandroNKZ
# Necessário o uso do BrWeather:
# http://brweatherproject.blogspot.com/
# Instruções e instalação:
# http://va.mu/V59f
# -- Conky settings -- #
background yes
update_interval 1
cpu_avg_samples 1
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 0
# -- Window specifications -- #
# -- GNOME -- #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
# -- Openbox -- #
#own_window yes
#own_window_transparent yes
#own_window_type desktop
# -- Alignment -- #
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
border_inner_margin 0
border_outer_margin 0
minimum_size 250 250
maximum_width 250
gap_x 10
gap_y 10
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# -- Text settings -- #
use_xft yes
xftfont Monospace:size=10
xftalpha 0.4
uppercase no
# -- Colors -- #
default_color 8B8B8B
color1 FFFFFF
color2 C8C8C8
color3 000000
TEXT
${goto 25}${font Monospace:size=30}${color0}${time %H}:${time %M}:${font Monospace:size=25}${time %S}
#Cidade
${voffset 0}${font Monospace:size=12}${color0}${goto 100}${execi 3600 brweather --option=city | cut -f1 -d'-'}
# Temperatura (mínima e máxima)
${voffset 0}${font Monospace:size=20}${color0}${goto 100}${execi 3600 brweather --option=TN}C
# Segundo dia (amanhã)
${voffset 20}${font Monospace:size=20}${color0}${goto 10}${execi 3600 brweather --option=Day2}
# Terceiro dia (depois de amanhã)
${voffset -30}${font Monospace:size=20}${color0}${goto 95}${execi 3600 brweather --option=Day3}
# Quarto dia
${voffset -31}${font Monospace:size=20}${color0}${goto 175}${execi 3600 brweather --option=Day4}
# Temperatura de amanhã
${voffset 40}${font Monospace:size=10}${color0}${goto 10}${execi 3600 brweather --option=LT2}/${execi 3600 brweather --option=HT2}
# Temperatura do terceiro dia
${voffset -17}${font Monospace:size=10}${color0}${goto 90}${execi 3600 brweather --option=LT3}/${execi 3600 brweather --option=HT3}
# Temperatura do quarto dia
${voffset -17}${font Monospace:size=10}${color0}${goto 170}${execi 3600 brweather --option=LT4}/${execi 3600 brweather --option=HT4}
# Last update
${voffset 10}${goto 15}${font Monospace:size=8}${color0}Last update:${font Monospace:size=8}${color0}${execi 3600 brweather --option=LU}
# Imagens
# Lembre-se: Para adicionar imagens, use o comando "execpi" no lugar do "execi"
# Dica: Experimente trocar o "--imagem1" por --imagem2, 3, 4, 5, 6 ou 7.
${image $HOME/.brweather/conky2/fundo.png -p 0,0}
${execpi 3600 brweather --imagem2=CN -p 0,40 -s 90x90}
${execpi 3600 brweather --imagem2=C2 -p 5,160 -s 60x60}
${execpi 3600 brweather --imagem2=C3 -p 85,160 -s 60x60}
${execpi 3600 brweather --imagem2=C4 -p 165,160 -s 60x60}
Imagem 3:
# ConkyBrWeather
# Criado por LeandroNKZ
# Necessário o uso do BrWeather:
# http://brweatherproject.blogspot.com/
# Instruções e instalação:
# http://va.mu/V59f
# -- Conky settings -- #
background yes
update_interval 1
cpu_avg_samples 1
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 0
# -- Window specifications -- #
# -- GNOME -- #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
# -- Openbox -- #
#own_window yes
#own_window_transparent yes
#own_window_type desktop
# -- Alignment -- #
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
border_inner_margin 0
border_outer_margin 0
minimum_size 250 250
maximum_width 250
gap_x 10
gap_y 10
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# -- Text settings -- #
use_xft yes
xftfont Monospace:size=10
xftalpha 0.4
uppercase no
# -- Colors -- #
default_color 8B8B8B
color1 FFFFFF
color2 C8C8C8
color3 000000
TEXT
${goto 25}${font Monospace:size=30}${color0}${time %H}:${time %M}:${font Monospace:size=25}${time %S}
#Cidade
${voffset 0}${font Monospace:size=12}${color0}${goto 100}${execi 3600 brweather --option=city | cut -f1 -d'-'}
# Temperatura (mínima e máxima)
${voffset 0}${font Monospace:size=20}${color0}${goto 100}${execi 3600 brweather --option=TN}C
# Segundo dia (amanhã)
${voffset 20}${font Monospace:size=20}${color0}${goto 10}${execi 3600 brweather --option=Day2}
# Terceiro dia (depois de amanhã)
${voffset -30}${font Monospace:size=20}${color0}${goto 95}${execi 3600 brweather --option=Day3}
# Quarto dia
${voffset -31}${font Monospace:size=20}${color0}${goto 175}${execi 3600 brweather --option=Day4}
# Temperatura de amanhã
${voffset 40}${font Monospace:size=10}${color0}${goto 10}${execi 3600 brweather --option=LT2}/${execi 3600 brweather --option=HT2}
# Temperatura do terceiro dia
${voffset -17}${font Monospace:size=10}${color0}${goto 90}${execi 3600 brweather --option=LT3}/${execi 3600 brweather --option=HT3}
# Temperatura do quarto dia
${voffset -17}${font Monospace:size=10}${color0}${goto 170}${execi 3600 brweather --option=LT4}/${execi 3600 brweather --option=HT4}
# Last update
${voffset 10}${goto 15}${font Monospace:size=8}${color0}Last update:${font Monospace:size=8}${color0}${execi 3600 brweather --option=LU}
# Imagens
# Lembre-se: Para adicionar imagens, use o comando "execpi" no lugar do "execi"
# Dica: Experimente trocar o "--imagem1" por --imagem2, 3, 4, 5, 6 ou 7.
${image $HOME/.brweather/conky2/fundo.png -p 0,0}
${execpi 3600 brweather --imagem3=CN -p 0,40 -s 90x90}
${execpi 3600 brweather --imagem3=C2 -p 5,160 -s 60x60}
${execpi 3600 brweather --imagem3=C3 -p 85,160 -s 60x60}
${execpi 3600 brweather --imagem3=C4 -p 165,160 -s 60x60}
Imagem 6:
# ConkyBrWeather
# Criado por LeandroNKZ
# Necessário o uso do BrWeather:
# http://brweatherproject.blogspot.com/
# Instruções e instalação:
# http://va.mu/V59f
# -- Conky settings -- #
background yes
update_interval 1
cpu_avg_samples 1
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 0
# -- Window specifications -- #
# -- GNOME -- #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
# -- Openbox -- #
#own_window yes
#own_window_transparent yes
#own_window_type desktop
# -- Alignment -- #
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
border_inner_margin 0
border_outer_margin 0
minimum_size 250 250
maximum_width 250
gap_x 10
gap_y 10
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# -- Text settings -- #
use_xft yes
xftfont Monospace:size=10
xftalpha 0.4
uppercase no
# -- Colors -- #
default_color 8B8B8B
color1 FFFFFF
color2 C8C8C8
color3 000000
TEXT
${goto 25}${font Monospace:size=30}${color0}${time %H}:${time %M}:${font Monospace:size=25}${time %S}
#Cidade
${voffset 0}${font Monospace:size=12}${color0}${goto 100}${execi 3600 brweather --option=city | cut -f1 -d'-'}
# Temperatura (mínima e máxima)
${voffset 0}${font Monospace:size=20}${color0}${goto 100}${execi 3600 brweather --option=TN}C
# Segundo dia (amanhã)
${voffset 20}${font Monospace:size=20}${color0}${goto 10}${execi 3600 brweather --option=Day2}
# Terceiro dia (depois de amanhã)
${voffset -30}${font Monospace:size=20}${color0}${goto 95}${execi 3600 brweather --option=Day3}
# Quarto dia
${voffset -31}${font Monospace:size=20}${color0}${goto 175}${execi 3600 brweather --option=Day4}
# Temperatura de amanhã
${voffset 40}${font Monospace:size=10}${color0}${goto 10}${execi 3600 brweather --option=LT2}/${execi 3600 brweather --option=HT2}
# Temperatura do terceiro dia
${voffset -17}${font Monospace:size=10}${color0}${goto 90}${execi 3600 brweather --option=LT3}/${execi 3600 brweather --option=HT3}
# Temperatura do quarto dia
${voffset -17}${font Monospace:size=10}${color0}${goto 170}${execi 3600 brweather --option=LT4}/${execi 3600 brweather --option=HT4}
# Last update
${voffset 10}${goto 15}${font Monospace:size=8}${color0}Last update:${font Monospace:size=8}${color0}${execi 3600 brweather --option=LU}
# Imagens
# Lembre-se: Para adicionar imagens, use o comando "execpi" no lugar do "execi"
# Dica: Experimente trocar o "--imagem1" por --imagem2, 3, 4, 5, 6 ou 7.
${image $HOME/.brweather/conky2/fundo.png -p 0,0}
${execpi 3600 brweather --imagem6=CN -p 0,40 -s 90x90}
${execpi 3600 brweather --imagem6=C2 -p 5,160 -s 60x60}
${execpi 3600 brweather --imagem6=C3 -p 85,160 -s 60x60}
${execpi 3600 brweather --imagem6=C4 -p 165,160 -s 60x60}
Imagem 7:
# ConkyBrWeather
# Criado por LeandroNKZ
# Necessário o uso do BrWeather:
# http://brweatherproject.blogspot.com/
# Instruções e instalação:
# http://va.mu/V59f
# -- Conky settings -- #
background yes
update_interval 1
cpu_avg_samples 1
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 0
# -- Window specifications -- #
# -- GNOME -- #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
# -- Openbox -- #
#own_window yes
#own_window_transparent yes
#own_window_type desktop
# -- Alignment -- #
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
border_inner_margin 0
border_outer_margin 0
minimum_size 250 250
maximum_width 250
gap_x 10
gap_y 10
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# -- Text settings -- #
use_xft yes
xftfont Monospace:size=10
xftalpha 0.4
uppercase no
# -- Colors -- #
default_color 8B8B8B
color1 FFFFFF
color2 C8C8C8
color3 000000
TEXT
${goto 25}${font Monospace:size=30}${color0}${time %H}:${time %M}:${font Monospace:size=25}${time %S}
#Cidade
${voffset 0}${font Monospace:size=12}${color0}${goto 100}${execi 3600 brweather --option=city | cut -f1 -d'-'}
# Temperatura (mínima e máxima)
${voffset 0}${font Monospace:size=20}${color0}${goto 100}${execi 3600 brweather --option=TN}C
# Segundo dia (amanhã)
${voffset 20}${font Monospace:size=20}${color0}${goto 10}${execi 3600 brweather --option=Day2}
# Terceiro dia (depois de amanhã)
${voffset -30}${font Monospace:size=20}${color0}${goto 95}${execi 3600 brweather --option=Day3}
# Quarto dia
${voffset -31}${font Monospace:size=20}${color0}${goto 175}${execi 3600 brweather --option=Day4}
# Temperatura de amanhã
${voffset 40}${font Monospace:size=10}${color0}${goto 10}${execi 3600 brweather --option=LT2}/${execi 3600 brweather --option=HT2}
# Temperatura do terceiro dia
${voffset -17}${font Monospace:size=10}${color0}${goto 90}${execi 3600 brweather --option=LT3}/${execi 3600 brweather --option=HT3}
# Temperatura do quarto dia
${voffset -17}${font Monospace:size=10}${color0}${goto 170}${execi 3600 brweather --option=LT4}/${execi 3600 brweather --option=HT4}
# Last update
${voffset 10}${goto 15}${font Monospace:size=8}${color0}Last update:${font Monospace:size=8}${color0}${execi 3600 brweather --option=LU}
# Imagens
# Lembre-se: Para adicionar imagens, use o comando "execpi" no lugar do "execi"
# Dica: Experimente trocar o "--imagem1" por --imagem2, 3, 4, 5, 6 ou 7.
${image $HOME/.brweather/conky2/fundo.png -p 0,0}
${execpi 3600 brweather --imagem7=CN -p 0,40 -s 90x90}
${execpi 3600 brweather --imagem7=C2 -p 5,160 -s 60x60}
${execpi 3600 brweather --imagem7=C3 -p 85,160 -s 60x60}
${execpi 3600 brweather --imagem7=C4 -p 165,160 -s 60x60}
Imagem 8:
# ConkyBrWeather
# Criado por LeandroNKZ
# Necessário o uso do BrWeather:
# http://brweatherproject.blogspot.com/
# Instruções e instalação:
# http://va.mu/V59f
# -- Conky settings -- #
background yes
update_interval 1
cpu_avg_samples 1
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
imlib_cache_size 0
# -- Window specifications -- #
# -- GNOME -- #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
# -- Openbox -- #
#own_window yes
#own_window_transparent yes
#own_window_type desktop
# -- Alignment -- #
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment bottom_right
border_inner_margin 0
border_outer_margin 0
minimum_size 250 250
maximum_width 250
gap_x 10
gap_y 10
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
# -- Text settings -- #
use_xft yes
xftfont Monospace:size=10
xftalpha 0.4
uppercase no
# -- Colors -- #
default_color 8B8B8B
color1 FFFFFF
color2 C8C8C8
color3 000000
TEXT
${goto 25}${font Monospace:size=30}${color0}${time %H}:${time %M}:${font Monospace:size=25}${time %S}
#Cidade
${voffset 0}${font Monospace:size=12}${color0}${goto 100}${execi 3600 brweather --option=city | cut -f1 -d'-'}
# Temperatura (mínima e máxima)
${voffset 0}${font Monospace:size=20}${color0}${goto 100}${execi 3600 brweather --option=TN}C
# Segundo dia (amanhã)
${voffset 20}${font Monospace:size=20}${color0}${goto 10}${execi 3600 brweather --option=Day2}
# Terceiro dia (depois de amanhã)
${voffset -30}${font Monospace:size=20}${color0}${goto 95}${execi 3600 brweather --option=Day3}
# Quarto dia
${voffset -31}${font Monospace:size=20}${color0}${goto 175}${execi 3600 brweather --option=Day4}
# Temperatura de amanhã
${voffset 40}${font Monospace:size=10}${color0}${goto 10}${execi 3600 brweather --option=LT2}/${execi 3600 brweather --option=HT2}
# Temperatura do terceiro dia
${voffset -17}${font Monospace:size=10}${color0}${goto 90}${execi 3600 brweather --option=LT3}/${execi 3600 brweather --option=HT3}
# Temperatura do quarto dia
${voffset -17}${font Monospace:size=10}${color0}${goto 170}${execi 3600 brweather --option=LT4}/${execi 3600 brweather --option=HT4}
# Last update
${voffset 10}${goto 15}${font Monospace:size=8}${color0}Last update:${font Monospace:size=8}${color0}${execi 3600 brweather --option=LU}
# Imagens
# Lembre-se: Para adicionar imagens, use o comando "execpi" no lugar do "execi"
# Dica: Experimente trocar o "--imagem1" por --imagem2, 3, 4, 5, 6 ou 7.
${image $HOME/.brweather/conky2/fundo.png -p 0,0}
${execpi 3600 brweather --imagem9=CN -p 0,40 -s 90x90}
${execpi 3600 brweather --imagem9=C2 -p 5,160 -s 60x60}
${execpi 3600 brweather --imagem9=C3 -p 85,160 -s 60x60}
${execpi 3600 brweather --imagem9=C4 -p 165,160 -s 60x60}
Até a próxima!






Nenhum comentário:
Postar um comentário