Conky Bauraturia [RESOLVIDO]

1. Conky Bauraturia [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/10/2014 - 15:27h

# Use Xft?
use_xft yes
xftfont Open Sans Light:size=8
xftalpha 0.8
text_buffer_size 2048
uppercase yes

# 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
#own_window_argb_visual yes
#own_window_argb_value 255

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

minimum_size 282

# Draw shades?
draw_shades no
default_shade_color 292421
# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_inner_margin 30
#border_outer_margin 0
draw_graph_borders no
# border width
border_width 0

# 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 0
gap_y 0

# Distric-Thin fonts
# Blue Highway
# Raleway
# Zekton
# Calibri
# Engebrechtre
# Opeln2001
# Open Sans Light
# Open Sans Light


imlib_cache_size 0

color1 FFFFFF
color2 FFFFFF
color3 000000
color4 AAAAAA
color5 914141
color6 000000
color7 000000

TEXT
${image ~/.conky-weather-icons/background.png -p 0,34 -s 400x660}${image ~/.conky-weather-icons/box.png -p 10,168 -s 250x64}${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=2344868&u=c" -o ~/.cache/weather.xml}


${color1}${font Open Sans Light:size=42}${alignr 10}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°${font}
${font Nimbus Sans Light:pixelsize=9}${execi 300 cp -f ~/.conky-weather-icons/60x60/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 8,56 -s 60x60}${color5}
Currently:${color1}${alignc}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "text=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${color5}
Wind:${alignc}${color1}${execi 300 grep "yweather:wind" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${execi 300 grep "yweather:units" ~/.cache/weather.xml | grep -o "speed=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}${color5}
Humidity:${color1}${alignc}${execi 300 grep "yweather:atmosphere" ~/.cache/weather.xml | grep -o "humidity=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}%

${color1}${goto 24}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${execi 300 cp -f ~/.conky-weather-icons/32x32/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1').png ~/.cache/weather-1.png}${image ~/.cache/weather-1.png -p 14,190 -s 32x32}${goto 128}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${execi 300 cp -f ~/.conky-weather-icons/32x32/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2').png ~/.cache/weather-2.png}${image ~/.cache/weather-2.png -p 120,190 -s 32x32}${goto 224}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°${execi 300 cp -f ~/.conky-weather-icons/32x32/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3').png ~/.cache/weather-3.png}${image ~/.cache/weather-3.png -p 224,190 -s 32x32}


${color4}${goto 60}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1'}°${goto 164}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2'}°${alignr 10}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3'}°
${image ~/.conky-weather-icons/separator.png -p 13,262 -s 263x2}
${color5}${font Nimbus Sans Light:pixelsize=12}${goto 22}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==1' | tr '[a-z]' '[A-Z]'}${goto 126}${color1}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==2' | tr '[a-z]' '[A-Z]'}${goto 232}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "day=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | awk 'NR==3' | tr '[a-z]' '[A-Z]'}${font}

${font Nimbus Sans Light:pixelsize=9}${if_existing /proc/net/route wlan0}
${goto 14}${color1}Up:${color1} ${color3}${upspeed wlan0}${color1}${alignr}${goto 190}${color1}Down:${color1} ${color3}${downspeed wlan0}${color1}
${goto 14}${upspeedgraph wlan0 50,120 914141 914141}${alignr}${goto 160}${downspeedgraph wlan0 50,120 914141 914141}
${goto 14}${color1}Sent:${color1} ${color2}${totalup wlan0}${color1}${alignr}${goto 190}${color1}Received:${color1} ${color2}${totaldown wlan0}${color}1
${else}${if_existing /proc/net/route eth0}
${goto 14}${color1}Up:${color1} ${color3}${upspeed eth0}${color1}${alignr}${goto 190}${color1}Down:${color1} ${color3}${downspeed eth0}${color}
${goto 14}${upspeedgraph eth0 50,120 914141 914141}${alignr}${goto 160}${downspeedgraph eth0 50,120 914141 914141}
${goto 14}${color1}Sent:${color1} ${color2}${totalup eth0}${color1}${alignr}${goto 190}${color1}Received:${color} ${color2}${totaldown eth0}${color1}
${else}${if_existing /proc/net/route eth1}
${goto 14}${color1}Up:${color1} ${color3}${upspeed eth1}${color}${alignr}${goto 190}${color1}Down:${color1} ${color3}${downspeed eth1}${color1}
${goto 14}${upspeedgraph eth1 50,120 914141 914141}${alignr}${goto 160}${downspeedgraph eth1 50,120 914141 914141}
${goto 14}${color1}Sent:${color1} ${color2}${totalup eth1}${color1}${alignr}${goto 190}${color1}Received:${color1} ${color2}${totaldown eth1}${color1}
${else}${if_existing /proc/net/route ppp0}
${goto 14}${color5}Up:${color1} ${color1}${upspeed ppp0}${color}${alignr}${goto 160}${goto 190}${color5}Down:${color1} ${color1}${downspeed ppp0}${color}
${goto 14}${upspeedgraph ppp0 50,120 914141 914141}${alignr}${goto 160}${downspeedgraph ppp0 50,120 914141 914141}
${image ~/.conky-weather-icons/online.png -p 218,138 -s 51x18}
${goto 14}${color5}Sent:${color1} ${color2}${totalup ppp0}${color1}${alignr}${goto 190}${color5}Received:${color1} ${color2}${totaldown ppp0}${color1}
${else}
Network disconnected${image ~/.conky-weather-icons/offline.png -p 218,138 -s 51x18}
${color3} Connect to a network to see statistics${color1}
${voffset 50}
${endif}${endif}${endif}${endif}${voffset -15}
${image ~/.conky-weather-icons/separator.png -p 13,388 -s 263x2}

${goto 50}${color1}${font Open Sans Light:size=15}Processors/Memory
${goto 14}${color5}${font Nimbus Sans Light:pixelsize=9}CPU: ${color1}${alignc}${freq_g} ${color1}Ghz ${goto 14}${color2}${alignr}${goto 254}${cpu cpu}${color1}%



${goto 14}${alignr}${goto 14}${loadgraph 50,266 914141 914141 -l}

${goto 14}${color5}${font Nimbus Sans Light:pixelsize=9}RAM: ${color1}${alignc 10}${mem}
${goto 14}${color5}${font Nimbus Sans Light:pixelsize=9}TOTAL: ${color1}${alignc 10}${memmax}
${image ~/.conky-weather-icons/separator.png -p 13,592 -s 263x2}
${goto 74}${color1}${font Open Sans Light:size=15}Top Processes
${goto 14}${color1}${font Nimbus Sans Light:pixelsize=9}${color5}${top_mem name 1}${color1}${alignc -10}${top_mem mem_res 1}${color2}${alignr}${goto 234}${top_mem mem 1}${color1} %
${goto 14}${color1}${font Nimbus Sans Light:pixelsize=9}${color5}${top_mem name 2}${color1}${alignc -10}${top_mem mem_res 2}${color2}${alignr}${goto 234}${top_mem mem 2}${color1} %
${goto 14}${color1}${font Nimbus Sans Light:pixelsize=9}${color5}${top_mem name 3}${color1}${alignc -10}${top_mem mem_res 3}${color2}${alignr}${goto 234}${top_mem mem 3}${color1} %
${goto 14}${color1}${font Nimbus Sans Light:pixelsize=9}${color5}${top_mem name 4}${color1}${alignc -10}${top_mem mem_res 4}${color2}${alignr}${goto 234}${top_mem mem 4}${color1} %
${goto 14}${color1}${font Nimbus Sans Light:pixelsize=9}${color5}${top_mem name 5}${color1}${alignc -10}${top_mem mem_res 5}${color2}${alignr}${goto 234}${top_mem mem 5}${color1} %
Sera que alguem pode me ajudar com a configuraçao desse conky!Eu nao consigo mudar a posiçao dele e nem inicia-lo automaticamente no ubuntu >:( http://imgur.com/5RmtYMG


  


2. MELHOR RESPOSTA

Josue de Jesus Santos
JJSantos

(usa Gentoo)

Enviado em 11/10/2014 - 20:02h

AgnaldoLucindo escreveu:

Nao e tao dificil o problema e que esse nao ta mudando a posiçao!


Já tentou modificar essas linhas?


# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 0
gap_y 0


3. Re: Conky Bauraturia [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/10/2014 - 15:53h

Ja consegui fazer ele iniciar mais nao consigo mudar a posiçao ¬¬


4. Re: Conky Bauraturia [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/10/2014 - 17:41h

Fala agnaldo, blz?

Configurar esse Conky na mão é difícil. eu tambem não consegui.

Porque você não tenta instalar uma interface gráfica,
Aqui eu uso o Conky Manager, não está na Central de programas, mas você pode instalar por PPA:

sudo apt-add-repository -y ppa:teejee2008/ppa
sudo apt-get update
sudo apt-get install conky-manager

ou veja a dica:

http://www.diolinux.com.br/2013/10/como-instalar-o-conky-manager-no-ubuntu.html




5. Re: Conky Bauraturia [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/10/2014 - 17:47h

Eu consegui so nao consegui mudar a posiçao queria abaixar ele um pouco e colocar mais pra dentro!Eu segui uma dica do Izaias mais nao deu certo ¬¬


6. Re: Conky Bauraturia [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/10/2014 - 17:51h

Com o Conky-Manager da para configurar o Conky, eu acho mais fácil do que fazer na mão.


7. Re: Conky Bauraturia [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/10/2014 - 18:06h

Nao e tao dificil o problema e que esse nao ta mudando a posiçao!


8. Re: Conky Bauraturia [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/10/2014 - 20:18h

valeu eu mudei a linha e deu certo!
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 20
gap_y 30



9. Re: Conky Bauraturia [RESOLVIDO]

Perfil removido
removido

(usa Nenhuma)

Enviado em 11/10/2014 - 20:25h

Agora ta do jeito que eu queria http://i.imgur.com/bqftZTh.png


10. Re: Conky Bauraturia [RESOLVIDO]

Alberto Federman Neto.
albfneto

(usa openSUSE)

Enviado em 11/10/2014 - 20:38h

Se vc quiser Agnaldo,publique seu conky, lá na sessão configs do VOL.
seu Conky está bonito.






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts