[conky]Probleme image transparente

Ce qui ne concerne ni le forum ni des problèmes
Avatar de l’utilisateur
KorteX39
Daikyu
Messages : 80
Inscription : mer. 12 mars 2014, 15:56

[conky]Probleme image transparente

Message par KorteX39 »

Un autre petit problème qui me casse bien la tête.
Tout d'abord voici un screenshot de mon bureau.
Image
Comme vous pouvez le voir j'ai 3 conky placer sur un fond d'ecran qui change toute les 10 minutes. Ce fond d'ecran et une photo de la terre pratiquement en temps réel. Pour les conky a droite, aucun probleme puisque l'image du fond du conky meteo et translucide. J'ai donc essayé de reprendre l'image de l'agrandir pour la mettre en fond de mon conky de gauche puisque dans la soirée, lorsqu'il fait jour aux états-unis je ne vois plus rien sur mon conky (comme en témoigne le screenshot pris hier soir).
Seulement l'image appliqué devient elle transparente comme le montre cet autre screenshot
Image

voici le conkyrc du haut a droite (conky-meteo)

Code : Tout sélectionner

# — Conky settings — #

background yes

update_interval 1
total_run_times 0
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0

temperature_unit celcius

# — Window specifications — #
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
#own_window_argb_visual yes
#own_window_argb_value 180
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 275 275
maximum_width 275

alignment top_right

gap_x 25
gap_y 75


# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# — Text settings — #
use_xft yes
xftfont Ubuntu:size=8
xftalpha 1.0

default_color FFFFFF

uppercase no
use_spacer right

color0 white
color1 orange
color2 green


TEXT
${image $HOME/.conky/htc_home/images/base2.png -p 0,30 -s 260x145}${image $HOME/.conky/htc_home/images/base2.png -p 0,190 -s 260x45}${image $HOME/.conky/htc_home/images/flip_bg.png -p 30,10 -s 100x110}${image $HOME/.conky/htc_home/images/flip_bg.png -p 130,10 -s 100x110}
${execi 500 bash $HOME/.conky/htc_home/accuweather/accuw_script}
${voffset 7}${font Helvetica LT Std :style=Condensed:size=60}${color 434343}${goto 41}${time %H}${goto 142}${color 434343}${time %M}${voffset 34}${color whitesmoke}${font Helvetica LT Std :style=bold:size=9}${goto 175}${time %a}, ${time %e} ${time %b}
${font Helvetica LT Std :size=8}${color whitesmoke}${voffset -18}${goto 20}${execpi 600 sed -n '28p' $HOME/.conky/htc_home/accuweather/curr_cond}${voffset 12}${goto 20}${color grey}W:${color white}${execpi 600 sed -n '31p' $HOME/.conky/htc_home/accuweather/curr_cond}-${execpi 600 sed -n '32p' $HOME/.conky/htc_home/accuweather/curr_cond}${voffset 12}${goto 20}${color grey}H:${color white}${execpi 600 sed -n '33p' $HOME/.conky/htc_home/accuweather/curr_cond}${voffset 12}${goto 20}${color grey}P:${color white}${execpi 600 sed -n '34p' $HOME/.conky/htc_home/accuweather/curr_cond}${voffset -10}${goto 180}${font Helvetica LT Std :size=18}${execpi 600 sed -n '29p' $HOME/.conky/htc_home/accuweather/curr_cond}°${goto 214}${voffset -12}${font Helvetica LT Std :size=8}${color grey}H:${color white}${execpi 600 sed -n '3p' $HOME/.conky/htc_home/accuweather/first_days}°${goto 216}${voffset 11}${color grey}L:${color white}${execpi 600 sed -n '4p' $HOME/.conky/htc_home/accuweather/first_days}°
${voffset 49}${font Helvetica LT Std :size=8}${color white}${goto 25}${execpi 600 sed -n '8p' $HOME/.conky/htc_home/accuweather/first_days}°/${color grey}${execpi 600 sed -n '9p' $HOME/.onky/htc_home/accuweather/first_days}°${goto 72}${color white}${execpi 600 sed -n '13p' $HOME/.conky/htc_home/accuweather/first_days}°/${color grey}${execpi 600 sed -n '14p' $HOME/.conky/htc_home/accuweather/first_days}°${goto 118}${color white}${execpi 600 sed -n '18p' $HOME/.conky/htc_home/accuweather/first_days}°/${color grey}${execpi 600 sed -n '19p' $HOME/.conky/htc_home/accuweather/first_days}°${goto 162}${color white}${execpi 600 sed -n '23p' $HOME/.conky/htc_home/accuweather/first_days}°/${color grey}${execpi 600 sed -n '24p' $HOME/.conky/htc_home/accuweather/first_days}°${goto 207}${color white}${execpi 600 sed -n '4p' $HOME/.conky/htc_home/accuweather/last_days}°/${color grey}${execpi 600 sed -n '5p' $HOME/.conky/htc_home/accuweather/last_days}°
${voffset 1}${font Helvetica LT Std :size=8}${color whitesmoke}${goto 27}${execpi 600 sed -n '5p' $HOME/.conky/htc_home/accuweather/first_days}${goto 74}${execpi 600 sed -n '10p' $HOME/.conky/htc_home/accuweather/first_days}${goto 120}${execpi 600 sed -n '15p' $HOME/.conky/htc_home/accuweather/first_days}${goto 164}${execpi 600 sed -n '20p' $HOME/.conky/htc_home/accuweather/first_days}${goto 209}${execpi 600 sed -n '1p' $HOME/.conky/htc_home/accuweather/last_days}
${image $HOME/.conky/htc_home/accuweather/cc.png -p 70,95 -s 125x75}
${image $HOME/.conky/htc_home/accuweather/6.png -p 14,180 -s 48x29}${image $HOME/.conky/htc_home/accuweather/11.png -p 60,180 -s 48x29}${image $HOME/.conky/htc_home/accuweather/16.png -p 107,180 -s 48x29}${image $HOME/.conky/htc_home/accuweather/21.png -p 152,180 -s 48x29}${image $HOME/.conky/htc_home/accuweather/last_2.png -p 197,180 -s 48x29}
et le conkyrc de gauche (celui sur lequel je tente d'appliquer cet image

Code : Tout sélectionner

######################
# - Conky settings - #
######################
background no
update_interval 1
  
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
override_utf8_locale yes
  
double_buffer yes
no_buffers yes
  
text_buffer_size 2048
imlib_cache_size 0
  
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 180
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  
border_inner_margin 0
border_outer_margin 0
  
minimum_size 2500
maximum_width 500
 
alignment tl
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 Santana:size=12
xftalpha 0.8
uppercase no
	 
################
# - Couleurs - #
################
# default_color ffffff
default_color DBDBDB
color1 868686                #Blanc cassé
#color2 606060                #Gris
 
#Réglages système
cpu_avg_samples 1            #Nb d'échantillons pour calculer la moyenne d'utilisation CPU
net_avg_samples 2            #Nb d'échantillons pour calculer la moyenne d'utilisation CPU
  
################
# - LUA Load - #
################
lua_load ~/.bin/conky/cpufreq.lua
lua_load ~/.conky/draw_bg.lua
 
 
############
# - Code - #
############
TEXT  
${image ~/.bin/conky/images/base2.png 100x100}
${image ~/.bin/conky/images/cpu04.png 100x100}
     




	

	

${font Santana:size=12:style=Bold}AMD A8-5600k
${font Santana:size=12}Ondemand ${lua cpu_freq_g 0} GHz | Max. ${lua cpu_freq_max_g 0}${font Santana:size=12} GHz | ${font Santana:size=12}Actuel ${freq} MHz

Uptime : $uptime

Fréquence CPU 1: ${freq 1} ${alignr}Fréquence CPU 2: ${freq 2}
Fréquence CPU 3: ${freq 3} ${alignr}Fréquence CPU 4: ${freq 4}

CPU : $color${hwmon 2 temp 1}°C ${color2}${goto 200} M/B : $color${hwmon 1 temp 1}°C${color2}${alignr} GPU : ${execi 30 aticonfig --od-gettemperature | grep Temperature | cut -c43-47}°C

GPU : ${execi 30 aticonfig --odgc| grep GPU  | cut -c31-34}${alignr} CPU : ${cpu}%
RAM : $mem/$memmax - $memperc% 

${font Santana:size=12:style=Bold}File Systems : ${hr}${font}$color
/     ${fs_used /}  / ${fs_size /} ${alignc}${fs_bar /}
~   ${fs_used /home/punky/}/${fs_size 
/home/punky }${alignc}${fs_bar /home/punky/}

${font Santana:size=12:style=Bold}Réseau :${hr}${font}$color

${offset 15}Download : ${color}${downspeed enp1s0}  ${color}${alignr}Uploads : ${color}${upspeed enp1s0}
${offset 15}${downspeedgraph enp1s0 25,235 00E7FF D000FF}   ${upspeedgraph enp1s0 25,235 00E7FF D000FF}

${offset 15}${color}IP Public:${color1}${texeci 3600 wget http://checkip.dyndns.org -O - -o /dev/null | cut -d : -f 2 | cut -d \< -f 1}
${offset 15}${color}IP Local : ${color1}${addr enp1s0} 
${offset 15}${color}TCP Connections :  ${color1}${tcp_portmon 1 65535 count}
Si quelqu'un sait me dépatouiller merci d'avance
Vivre libre ou mourir
Avatar de l’utilisateur
KorteX39
Daikyu
Messages : 80
Inscription : mer. 12 mars 2014, 15:56

Re: [conky]Probleme image transparente

Message par KorteX39 »

Bon j'y perd mon latin je place le avant text du conky meteo a la place du avant text du conky de gauche ca fontctionne. Je compare les deux avant text dansdeux editeur de texte et n'y voit rien de different. Je ne vois pas du tout quel ligne me donne d'un coté l'image comme je la veux et de l'autre une image transparente. J'utilise pour mes test la même image avec le même chemin c'est a donner le tourni cette histoire. quelqu'un veux bien m'aider? Ou même comparer les deux avant text lui même ? je doit certainement passer a coté de quelque chose.
Le avant text bancale :

Code : Tout sélectionner

######################
# - Conky settings - #
######################
background yes
update_interval 1
total_run_times 0
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
override_utf8_locale yes
  
double_buffer yes
no_buffers yes
  
text_buffer_size 2048
imlib_cache_size 0
  
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 100
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  
border_inner_margin 0
border_outer_margin 0
  
minimum_size 2500
maximum_width 500
 
alignment tl
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 Santana:size=12
xftalpha 1.0
uppercase no
	 
################
# - Couleurs - #
################
default_color ffffff
#default_color DBDBDB
color1 868686                #Blanc cassé
color2 606060                #Gris
uppercase no
use_spacer right

#Réglages système
cpu_avg_samples 1            #Nb d'échantillons pour calculer la moyenne d'utilisation CPU
#net_avg_samples 2            #Nb d'échantillons pour calculer la moyenne d'utilisation CPU
Le avant text fonctionnel

Code : Tout sélectionner

# — Conky settings — #

background yes

update_interval 1
total_run_times 0
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0

#temperature_unit celcius

# — Window specifications — #
own_window_class Conky
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 180
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 275 275
maximum_width 275

alignment top_right

gap_x 25
gap_y 75


# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# — Text settings — #
use_xft yes
xftfont Ubuntu:size=8
xftalpha 1.0

default_color FFFFFF

uppercase no
use_spacer right

color0 white
color1 orange
color2 green
Vivre libre ou mourir
Avatar de l’utilisateur
KorteX39
Daikyu
Messages : 80
Inscription : mer. 12 mars 2014, 15:56

Re: [conky]Probleme image transparente

Message par KorteX39 »

Vu que ca fonctionne avec le avant text du conky meteo je devrais m'arreter la mais j'aime savoir ou sa plante. Alors s'il vous plait aidé moi ou je n'en dormirais plus.
Vivre libre ou mourir
Avatar de l’utilisateur
onyx67
Elfe
Messages : 766
Inscription : dim. 06 nov. 2011, 18:12
Localisation : Alsace

Re: [conky]Probleme image transparente

Message par onyx67 »

Code : Tout sélectionner

own_window_argb_value
gère l'opacité de ton conky. Fait un essai en modifiant les valeurs, tu verras bien.
"La complication est un effet de la simplicité mal acquise"

Intel i5-2320; Nvidia GeForce GT 520; ATA Hitachi 2To; ArchLinux-KDE
Avatar de l’utilisateur
KorteX39
Daikyu
Messages : 80
Inscription : mer. 12 mars 2014, 15:56

Re: [conky]Probleme image transparente

Message par KorteX39 »

J'ai déjà testé. J'ai modifié la valeur et commenté la ligne mais aucun resultat valable. Deplus, lorsque je met le avant text du conky fonctionnel, je me retrouve avec le même message d'erreur que j'ai posté sur cet autre fil http://forums.archlinux.fr/topic15166.html
qui me dis en console

Code : Tout sélectionner

libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Mais je ne trouve pas de ligne correspondante
Vivre libre ou mourir
Répondre