Forum Pplware
Problemas no Conky :( - Versão de Impressão

+- Forum Pplware (http://forum.pplware.com)
+-- Fórum: Software (/forumdisplay.php?fid=4)
+--- Fórum: GNU/Linux (/forumdisplay.php?fid=7)
+--- Tópico: Problemas no Conky :( (/showthread.php?tid=7238)

Páginas: 1 2


Problemas no Conky :( - Jiii - 24-09-2010 20:34

Ora boas!

Bem o meu problema com o conky é que não consigo mete lo a iniciar automaticamente no Linux Mint , e quando o "corro" através do terminal ele aparece ,e se clicar em algum lado logo a seguir ele desaparece...

Se me puderem ajudar... agradeciaTongue


Abraço!


RE: Problemas no Conky :( - Guilherme de Sousa - 24-09-2010 21:21

Primeiro que tudo, tens a tua config gravada em /home/oteuuser/.conkyrc ?

cumps


RE: Problemas no Conky :( - Jiii - 24-09-2010 21:52

Hmm...bem eu instalei o conky e depois fui ao terminal e fiz " sudo gedit ~/.conkyrc " e configurei , portanto fui a home/meuuser/.conkyrc e nao existe...portanto deve estar noutro directório.

Cumpz


RE: Problemas no Conky :( - Guilherme de Sousa - 24-09-2010 21:59

Se poderes reformula so o que disseste que nao se percebe mt bemTongue

Disseste que instalaste o conky, e que depois editaste o ficheiro .conkyrc, e que portanto foste la e nao existe.. isto nao faz muito sentido ..

Fiquei portanto sem saber se tens ou nao na tua home o .conkyrc com a config.

Se nao tens, coloca-o la, e se o problema permanecer, posta a tua config.


cumps


RE: Problemas no Conky :( - Jiii - 24-09-2010 22:20

Afinal estava o ficheiro oculto e como sou noob no linux digo estas bacuradas Big Grin

a minha config:

Código:
# Use Xft?
use_xft yes
xftfont Trebuchet MS:size=8
xftalpha 0.8
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 desktop
    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 180 0

# 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
own_window_colour white

# Text alignment, other possible values are commented
alignment top_right

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

# 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
SYSTEM ${hr 2}

Kernel:  ${alignr}${kernel}
CPU: ${cpu cpu}% ${alignr}${cpubar 8,60 cpu}
RAM: $memperc% ${alignr}${membar 8,60}
Uptime: ${alignr}${uptime}

DATE ${hr 2}
${alignc 35}${font Trebuchet MS:size=26}${time %H:%M}${font}
${alignc}${time %a %d %b %Y}

HD ${hr 2}

Home:
${fs_free /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
Root:
${fs_free /root}/${fs_size /root} ${alignr}${fs_bar 8,60 /root}

NETWORK ${hr 2}
${if_existing /proc/net/route wlan0}
Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 789E2D A7CC5C}
Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 789E2D A7CC5C}
Upload: ${alignr}${totalup wlan0}
Download: ${alignr}${totaldown wlan0}
Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}${else}${if_existing /proc/net/route eth0}
Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
Upload: ${alignr}${totalup eth0}
Download: ${alignr}${totaldown eth0}${endif}${else}${if_existing /proc/net/route eth1}
Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 789E2D A7CC5C}
Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 789E2D A7CC5C}
Upload: ${alignr}${totalup eth1}
Download: ${alignr}${totaldown eth1}${endif}${else}${font PizzaDude Bullets:size=14}4${font}   Network Unavailable${endif}



RE: Problemas no Conky :( - Guilherme de Sousa - 24-09-2010 22:34

Onde tens:
Código:
own_window_type desktop

troca o 'desktop' por 'normal'.

Depois diz se resultouWink

cumps!


RE: Problemas no Conky :( - Jiii - 24-09-2010 22:41

Sim , resultou! Big Grin

Já agora como faço para o por ao iniciar?

Obrigado!


edit: Afinal ja desapareceu outra vez...estava a correr tao bem...lol


RE: Problemas no Conky :( - Guilherme de Sousa - 24-09-2010 23:00

Entao tenta 'override' em vez de 'normal' ou 'desktop'

Para arrancar com o sistema editas o ficheiro .config/openbox/autostart.sh, adicionando:
Código:
conky &

Este problema deve se a uma incomatibilidade entre o pcmanfm fazer a gestao dos icons&wallpaper da desktop e o conky.

cumps

------Edit:

Nao sou utilizador de LXDE, no entanto utilizo openbox que é o seu windowmanager.
Uma forma facil de solucionares esse problema, é fazeres disable ao wallpaper no pcmanfm, e utilizares a aplicaçao feh para tratar de por o wallpaper.

caso pretendas fazer isso basta seguires os seguintes passos, que em principio tudo funcionara:
Código:
$ sudo apt-get install feh
$ sudo gedit .config/openbox/autostart.sh
No autostart.sh adicionas as duas linhas:
Código:
conky &
feh --bg-scale /caminho/para/o/wallpaper.jpg

cumps!


RE: Problemas no Conky :( - Jiii - 24-09-2010 23:20

Bem , fiz o que disses te e ele aparece , mas depois basta abrir uma pagina , ficheiro ou assim ele desaparece , deixa lá...Obrigado na mesma Wink

há algum programa parecido com o conky ?


RE: Problemas no Conky :( - Guilherme de Sousa - 24-09-2010 23:24

Isso secalhar ja é alguma falha na tua config.. Tenta o mesmo metodo mas com o meu conky so para testares:
Código:
# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 4

# 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 normal
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 180 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 white
#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 35

# 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


#stops flickering
own_window yes
own_window_type normal
own_window_hints below sticky undecorated



TEXT
${alignc 14}${font openlogos:size=35}B${font}
${voffset 2}${font StyleBats:size=19}i${font}   Kernel:  ${alignr}${kernel}
${font StyleBats:size=19}A${font}   CPU1: ${cpu cpu1}% ${alignr}${cpubar cpu1 8,60}
${font StyleBats:size=19}A${font}   CPU2: ${cpu cpu2}% ${alignr}${cpubar cpu2 8,60}
${font StyleBats:size=19}A${font}   CPU3: ${cpu cpu3}% ${alignr}${cpubar cpu3 8,60}
${font StyleBats:size=19}A${font}   CPU4: ${cpu cpu4}% ${alignr}${cpubar cpu4 8,60}
${font StyleBats:size=19}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
${font StyleBats:size=19}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,60}
${font StyleBats:size=19}q${font}   Uptime: ${alignr}${uptime}

DATE ${hr 2}
${alignc 17}${font Arial white:size=19}${time %H:%M}${font}
${alignc}${time %A %d %B %Y}

HD ${hr 2}
${font Pie charts for maps:size=17}7${font}   ${voffset -5}Home:
${voffset 4}${fs_used /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}

NETWORK ${hr 2}
${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=17}O${font} Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=17}U${font}Down:${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=17}N${font} Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=17}T${font} Download: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=17}a${font} Local Ip: ${alignr}${addr eth0}
${if_existing /proc/net/route wlan0}
#${voffset -6}${font PizzaDude Bullets:size=17}O${font}   Up: ${upspeed wlan0} kb/s ${alignr}${upspeedgraph wlan0 8,60 BEBEBE BEBEBE}
#${voffset 4}${font PizzaDude Bullets:size=17}U${font}   Down: ${downspeed wlan0} kb/s ${alignr}${downspeedgraph wlan0 8,60 BEBEBE BEBEBE}
#${voffset 4}${font PizzaDude Bullets:size=17}N${font}   Upload: ${alignr}${totalup wlan}
#${voffset 4}${font PizzaDude Bullets:size=17}T${font}   Download: ${alignr}${totaldown wlan}
#${voffset 4}${font PizzaDude Bullets:size=17}Z${font}   Signal: ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 8,60 wlan0}
#${voffset 4}${font PizzaDude Bullets:size=17}a${font}   Local Ip: ${alignr}${addr wlan0}
${else}${if_existing /proc/net/route eth0}
${voffset -6}${font PizzaDude Bullets:size=17}O${font}   Up: ${upspeed eth0} kb/s ${alignr}${upspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=17}U${font}   Down: ${downspeed eth0} kb/s ${alignr}${downspeedgraph eth0 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=17}N${font}   Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=17}T${font}   Download: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=17}a${font}   Local Ip: ${alignr}${addr eth0}
${endif}${else}${if_existing /proc/net/route eth1}
${voffset -6}${font PizzaDude Bullets:size=17}O${font}   Up: ${upspeed eth1} kb/s ${alignr}${upspeedgraph eth1 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=17}U${font}   Down: ${downspeed eth1} kb/s ${alignr}${downspeedgraph eth1 8,60 789E2D A7CC5C}
${voffset 4}${font PizzaDude Bullets:size=17}N${font}   Upload: ${alignr}${totalup eth1}
${voffset 4}${font PizzaDude Bullets:size=17}T${font}   Download: ${alignr}${totaldown eth1}
${voffset 4}${font PizzaDude Bullets:size=17}a${font}   Local Ip: ${alignr}${addr eth1}
${endif}${else}
${font PizzaDude Bullets:size=17}4${font}   Network Unavailable
${endif}

PROCESSES ${hr 2}
NAME $alignr PID    CPU
${top name 1} $alignr ${top pid 1} ${top cpu 1}
${top name 2} $alignr ${top pid 2} ${top cpu 2}
${top name 3} $alignr ${top pid 3} ${top cpu 3}
${top name 4} $alignr ${top pid 4} ${top cpu 4}
${top name 5} $alignr ${top pid 5} ${top cpu 5}
${top name 6} $alignr ${top pid 6} ${top cpu 6}
${top name 7} $alignr ${top pid 7} ${top cpu 7}
${top name 8} $alignr ${top pid 8} ${top cpu 8}


Parecido parecido nao, mas tens por ex o screenlets, que tem imensos widgets que no conjunto dao para mostrar tanta info como no conky

cumps!