Este post inaugura uma nova sessão no Blog: A área das configs.
Aqui serão postadas as configurações dos "Conkys-brinde", além dos requisitos que cada um pede.
Para começar, eis uma nova configuração de Conky utilizando o BrWeather: O ConkyBR-7!
Nome: ConkyBR-7
Características: Ele combina "um pouco de tudo". Monitor de hardware, exibe o número de e-mails não lidos da caixa de entrada do GMail, exibe a meteorologia, possui um relógio Lua e mostra a fase atual da Lua.
Download: ConkyBR-7.tar.gz
Funciona também no modo OPEN: Sim
Requisitos:
- Pacotes necessários:
curl (para o monitor de e-mail)
hddtemp (para exibir a temperatura do HD)
- Fontes necessárias:
Zekton
LCDMono2
Instalação: Descompacte o arquivo tar.gz e rode o script:
$ sh installconky.sh
Este script confere se você possui o BrWeather e as fontes necessárias para o funcionamento correto do Conky. Se tudo estiver OK, ele instala o Conky na pasta /home/seu_usuário/.brweather/conky7.
Configuração: Abra o arquivo /home/seu_usuário/.brweather/conky7/gmail, ele terá a seguinte aparência:
# Script para GMail do ConkyBrWeather 07 # Criado por LeandroNKZ # Baseado no RSS fedd do Ubuntued <http://ubuntued.info/conky-do-windows-phone-seven-no-ubuntu> # URI="https://mail.google.com/mail/feed/atom" #URl do feed gmail. #adicione o seu_usuário:sua_senha EXEC='curl -u SEUEMAIL@gmail.com:SUASENHA' #Comando de execução $EXEC $URI | grep "<fullcount>" | cut -f2 -d'>' | cut -f1 -d'<'
Apenas troque o "SEUEMAIL@gmail.com:SUASENHA" pelos seus dados.
E, abra o arquivo conkyrc, ele estará disponível em: /home/seu_usuário/.brweather/conky7/conkyrc:
# ConkyBrWeather 7
# 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 2
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 200 700
#maximum_width 600
gap_x 0
gap_y 20
# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# -- Text settings -- #
use_xft yes
xftfont MaiandraGD:size=24
xftalpha 0.4
uppercase no
# -- Colors -- #
color0 FFFFFF
color1 FFAA00
color2 7CCCFF
color3 BA0000
color4 C8C8C8
color5 5ACB73
#Lua Load #
lua_load ~/.brweather/conky7/rings.lua
lua_draw_hook_pre clock_rings
TEXT
${voffset -15}${goto 5}${color2}${font Zekton:size=10}CPU
${voffset 0}${font lcdmono2:size=25}${goto 10}${color1}${cpu cpu1}${font Zekton:size=25}%
${voffset -45}${goto 100}${font lcdmono2:size=20}${color3}${hwmon 0 temp 1}${font zekton:size=20}°C
${voffset -5}${goto 120}${color5}${font zekton:size=15}${freq_g 2}GHz
${voffset -5}${goto 130}${color4}${cpubar cpu1 8,70}
#RAM
${voffset -10}${goto 5}${color2}${font Zekton:size=10}RAM
${font lcdmono2:size=25}${goto 10}${color1}${memperc}${font Zekton:size=25}%
${voffset -55}${goto 125}${color2}${font Zekton:size=10}SWAP
${voffset 0}${font lcdmono2:size=10}${goto 125}${color1}${swapperc}${font Zekton:size=10}%
${voffset 16}${goto 130}${color4}${membar 8,70}
###Disk Usage
${voffset 0}${goto 5}${color2}${font Zekton:size=10}Disk
${font lcdmono2:size=25}${goto 10}${color1}${fs_used_perc}${font Zekton:size=25}%
${voffset -45}${goto 100}${font lcdmono2:size=20}${color3}${hddtemp /dev/sda}${font zekton:size=20}°C
${voffset -6}${goto 120}${color5}${font zekton:size=8}${fs_used /} / ${fs_size /}
${goto 130}$color4}${fs_bar 8,70 /}
###Download
${voffset 0}${goto 5}${color2}${font Zekton:size=10}Netspeed
${goto 5}${font lcdmono2:size=20}${color1}${downspeedf eth0}${font zekton:size=20} KB/s
${voffset -10}${goto 20}${font lcdmono2:size=10}${color1}${upspeedf eth0}${font zekton:size=10} KB/s
${voffset -10}${goto 120}${font zekton:size=8}${color5}${totaldown eth0}/${totalup eth0}
###System
${voffset 10}${goto 5}${color2}${font Zekton:size=10}System
${voffset 0}${goto 5}${color5}${font Zekton:size=8}${nodename}
${voffset 0}${goto 5}${color1}${font Zekton:size=8}Kernel: ${color0}${font lcdmono2:size=8}${kernel}
${voffset 0}${goto 25}${color1}${font Zekton:size=8}Uptime: ${color0}${uptime_short}
###E-mail
${voffset 20}${goto 5}${color2}${font Zekton:size=10}E-mail Inbox
${voffset 10}${goto 5}${color1}${font Zekton:size=15}Messages:
${voffset -20}${goto 135}${color1}${font lcdmono2:size=25}${execi 300 ~/.brweather/conky7/gmail}${font}
###Tempo
${voffset -8}${goto 5}${color2}${font Zekton:size=10}Weather
${voffset 0}${goto 5}${color1}${font Zekton:size=8}City: ${color0}${execi 3600 brweather --option=city}
${voffset 0}${goto 5}${color1}${font Zekton:size=8}Humidity: ${color0}${execi 3600 brweather --option=umid}
${voffset 0}${goto 25}${color1}${font Zekton:size=8}Temp: ${color0}${execi 3600 brweather --option=TN}${font Zekton:size=8}C
###Time
${voffset 20}${goto 5}${color2}${font Zekton:size=10}Time
${voffset 0}${goto 125}${color5}${font Zekton:size=8}${exec date +%A | sed -r 's/\b[a-z]{3,}/\u&/g'}
${voffset 10}${goto 115}${color5}${font Zekton:size=8}${time %d %B %Y}
###Lua
${voffset 20}${goto 5}${color2}${font Zekton:size=10}Moon
${voffset 0}${goto 5}${color0}${font Zekton:size=8}${execi 3600 brweather --option=LUA1T}
${voffset -15}${goto 125}${color5}${font Zekton:size=8}${execpi 3600 brweather --option=LUA2D}
${voffset 0}${goto 125}${color5}${font Zekton:size=8}${execpi 3600 brweather --option=LUA2T}
###Imagens
${image ~/.brweather/conky7/caixa.png -p 0,0}
###Icones Distros (descomente a linha referente a sua distribuição)
${image ~/.brweather/conky7/logos/debian.png -p 125,325 -s 40x40}
#${image ~/.brweather/conky7/logos/fedora.png -p 125,335 -s 60x30}
#${image ~/.brweather/conky7/imagens/linuxmint1.png -p 115,335 -s 80x30}
#${image ~/.brweather/conky7/logos/linuxmint2.png -p 125,320 -s 50x50}
#${image ~/.brweather/conky7/logos/lubuntu.png -p 115,345 -s 70x20}
#${image ~/.brweather/conky7/logos/ubuntu.png -p 125,320 -s 45x45}
#${image ~/.brweather/conky7/logos/ubuntu-dark.png -p 125,320 -s 45x45}
###Icones previsão e lua
${execpi 3600 brweather --imagem1=CN -p 120,467 -s 50x50}
${execpi 3600 brweather --option=LUA1I -s 60x60 -p 55,605}
${execpi 3600 brweather --option=LUA2I -s 30x30 -p 150,635}
Na parte final, em ###Imagens, comente a linha onde referente ao logo do Debian e descomente a linha referente à sua distro. As opções são:
- Debian;
- Fedora;
- Linux Mint (2);
- Lubuntu;
- Ubuntu (2).
Espero que curtam!

Mandou muito bem, Leandro.
ResponderExcluirParabéns!!!
Thanks!
ResponderExcluirAbraço.