Transparencia en conky

Post Reply
Message
Author
User avatar
nilsonmorales
Posts: 972
Joined: Fri 15 Apr 2011, 14:39
Location: El Salvador

Transparencia en conky

#1 Post by nilsonmorales »

hace poco un amigo me pregunto como darle opacidad a colores de fondo en conky ( entiendo que no es total transparencia ) aqui el script que el amigo me mando siendo esto lo mas relevante para conseguir opacidad

conkyrc

Code: Select all

#avoid flicker
double_buffer yes
 
#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent no
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager
own_window_argb_visual yes
own_window_argb_value 180


Modifique un poco para poder tener mas referencia pero aun no obtuve el resultado que yo queria

conkyrc--nilsonmorales

Code: Select all

#avoid flicker
double_buffer yes

alignment top_right
own_window_argb_visual yes
own_window_argb_value 186
own_window yes
own_window_transparent no
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_type {dock,normal,override,desktop}
use_xft yes
xftfont sans:size=60
xftalpha 0.2
double_buffer yes
no_buffers yes
Pero sin buenos resultados
Image

Me habia comentado que con un compositor se podia conseguir ese efecto en conky asi que compilamos xcompmgr-1.1.6 y transset-df-6
/usr/bin/xcompmgr
/usr/bin/transset-df


activamos xcompmgr en terminal

Code: Select all

xcompmgr -c -t-5 -l-5 -r4.2 -o.55 
y si eso nos llegara a fallar tambien podemos hacer

Code: Select all

transset-df .5 -n Conky
Activando el compositor podermos variar la opacidad en el archivo conkyrc con esta linea
own_window_argb_value 156 #un numero mayor lo hace menos trasnparente
Image

Espero les sirva de algo.
[b][url=http://nilsonmorales.blogspot.com/]My blog |[/url][/b][b][url=https://github.com/woofshahenzup]| Github[/url][/b]
[img]https://i.postimg.cc/5tz5vrrX/imag018la6.gif[/img]
[img]http://s5.postimg.org/7h2fid8pz/botones_logos3.png[/img]

tatxen
Posts: 21
Joined: Mon 01 Apr 2013, 04:12

#2 Post by tatxen »

Pues si, la semitransparencia solo se puede hacer funcionar mediante argb ya que own_window_transparent pone la opacidad al 0%, y para hacer funcionar argb es imprescindible un compositor y una opcion de own_window_type que no sea "override" porque da problemas.

Fuente: http://conky.sourceforge.net/config_settings.html

own_window_argb_visual
Boolean, use ARGB visual? ARGB can be used for real transparency, note that a composite manager is required for real transparency. This option will not work as desired (in most cases) in conjunction with 'own_window_type override'.

own_window_argb_value
When ARGB visuals are enabled, this use this to modify the alpha value used. Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.

own_window_transparent
Boolean, set transparency? If ARGB visual is enabled, sets background opacity to 0%.

Post Reply