You are not logged in.

#1 2008-08-05 08:48:03

The Avatar of Time
Member
Registered: 2008-01-11
Posts: 226

How to 'shade' Conky?

Hello all,

I am configuring Conky and have a little problem: Conky doesn't show up well on most of my wallpapers.

I have it transparent, but was wondering if there is a way to shade it a bit? Basically I want the same effect that '-sh 25' in rxvt-unicode would give.

I don't see an option to do this, but judging by screenshots that I have seen I am sure that it can be done. I have tried 'default_shade_color black', but that doesn't seem to do anything. Of course there is always the possiblity that I am not using the option properly.....:rolleyes:

Anyhow, any advice would be appreciated, thanks.

***Also, as an afterthought, I am reading here: http://conky.sourceforge.net/config_settings.html and have noticed that it does not offer a very thourogh explanation of options for each setting. For instance, in some cases it doesn't specify whether 'true' or 'yes' is the proper term to use, and doesn't list all the options that you can use and what they do. My question is, where could I find a more thourough explanation? I have looked through 'man conky' and it says the same things as that page. Thanks again.

Last edited by The Avatar of Time (2008-08-05 09:09:05)

Offline

#2 2008-08-05 13:46:32

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: How to 'shade' Conky?

What works for me is:

draw_shades yes
default_shade_color black

Edit: I haven't really seen a good tutorial or such for conky.  You kinda have to just google for everyone else's .conkyrc and use the bits and pieces that work for you. smile

Last edited by bgc1954 (2008-08-05 13:58:38)


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#3 2008-08-06 02:01:08

The Avatar of Time
Member
Registered: 2008-01-11
Posts: 226

Re: How to 'shade' Conky?

Thanks for the reply.

That certainly helped. I had the 'default_shade_color black' chosen but had somehow forgot to save after changing 'draw_shades' to yes, so it was still no.

It doesn't do quite what I was wanting, but it does help considerably. I was hoping to make the background of the whole window that conky is in (given I have it forked to the background) to have a dark shade/tint to it.

However, this is certainly better, and I think I can live with it for now, so thanks for the help.

Anyone else know how to shade the whole background? Thanks.

***I am still getting it all configured, but once I do I'll post a screenshot of it.

Offline

#4 2008-10-22 00:18:46

solarwind
Member
From: Toronto
Registered: 2008-03-18
Posts: 546

Re: How to 'shade' Conky?

I want to know how to do this as well.

Offline

#5 2008-10-22 18:02:15

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: How to 'shade' Conky?

instead of black, white, etc.. you can tweak using html values ....... example , f3f3f3 but without the #


-- archlinux 是一个极好的 linux

Offline

#6 2008-11-17 13:55:41

WladyX
Member
Registered: 2008-10-26
Posts: 43

Re: How to 'shade' Conky?

Have you found any other solutions?
Thanks.

Offline

#7 2008-12-03 06:05:53

The Avatar of Time
Member
Registered: 2008-01-11
Posts: 226

Re: How to 'shade' Conky?

WladyX wrote:

Have you found any other solutions?
Thanks.

I haven't made any more progress on it yet, I've been too busy to mess with it much. I would still like to get it figured out though.

Offline

#8 2008-12-03 07:59:48

Rydgel
Member
From: France
Registered: 2008-09-04
Posts: 166
Website

Re: How to 'shade' Conky?

Offline

#9 2008-12-03 11:43:04

WladyX
Member
Registered: 2008-10-26
Posts: 43

Re: How to 'shade' Conky?

Yes, but only the background of conky to be shaded, not the text too.

Offline

#10 2008-12-03 12:00:08

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: How to 'shade' Conky?

WladyX wrote:

Yes, but only the background of conky to be shaded, not the text too.

I don't think this is possible with conky.
I'd like that too, It'd be nice but with conky you either have full transparency or no transparency.
You can't specify a shade level like you can in many other apps (like trayer or pypanel).
But, hey, you always have the conky source code available smile


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#11 2009-02-19 04:28:45

methuselah
Member
Registered: 2007-10-02
Posts: 570

Re: How to 'shade' Conky?

Rydgel wrote:

How did you do that? I would like to make a transparent background just like that.


EDIT: I found out all you need to do is add "class=Conky" to your compiz-fusion opacity settings and change the "own_window_transparent" to no.

own_window  yes
own_window_transparent no
own_window_type widget
own_window_hints undecorate,sticky,skip_taskbar,skip_pager

Last edited by methuselah (2009-02-19 09:40:52)

Offline

#12 2009-11-21 05:14:40

cothrige
Member
Registered: 2006-06-05
Posts: 4

Re: How to 'shade' Conky?

Sorry to resurrect an old thread, but the script draw_bg.lua, which I found here, http://conky.linux-hardcore.com/?page_id=3002 will shade the background of Conky without shading the text as compiz does.   Just add these two lines to your conkyrc just above the TEXT section, changing the path for the script to whatever matches your system.

lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre draw_bg

The script defaults to white for the background colour but this can be changed to whatever is desired, and the level of transparency is adjustable as well.  A very nice added feature is that the corners of the window, again unlike the compiz example, can be rounded for a very slick effect.  The end result really is very, very nice.

Offline

#13 2010-01-07 13:45:16

Sirrah
Member
Registered: 2009-05-16
Posts: 22

Re: How to 'shade' Conky?

cothrige wrote:

Sorry to resurrect an old thread, but the script draw_bg.lua, which I found here, http://conky.linux-hardcore.com/?page_id=3002 will shade the background of Conky without shading the text as compiz does.   Just add these two lines to your conkyrc just above the TEXT section, changing the path for the script to whatever matches your system.

lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre draw_bg

The script defaults to white for the background colour but this can be changed to whatever is desired, and the level of transparency is adjustable as well.  A very nice added feature is that the corners of the window, again unlike the compiz example, can be rounded for a very slick effect.  The end result really is very, very nice.

Looks brilliant, but not working for some reason - it's exactly as it was before .  I'm working on building a Conky config from scratch.  I copied draw_bg.lua exactly as it is on that page to /home/[my user name]/scripts/draw_bg.lua and my .conkyrc is as follows:

background yes
double_buffer yes
own_window no
alignment top_right
update_interval 1
gap_x 10
gap_y 10
draw_borders yes
border_inner_margin 5
border_outer_margin 5
border_width 1
default_color white
draw_outline yes
default_outline_color black
font bitstream_vera_sans_mono:7
uppercase yes
use_spacer right
cpu_avg_samples 5
no_buffers yes
text_buffer_size 999
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre


TEXT
test test test test test
test test test test test
test test test test test
test test test test test
test test test test test

Offline

#14 2010-01-07 15:20:39

Epiphanic
Member
Registered: 2009-02-22
Posts: 44

Re: How to 'shade' Conky?

I've done this by using a semi-transparent background.  I stole the idea from Aymara's posts in the Conky thread in the Artwork forum.  You should be able to make an image that is as transparent as you want to serve as the background.  Obviously you won't be able to adjust the level of opacity on the fly (you'll have to make a new background image), but I think it works pretty well.

The first post on this page is an example of Aymara's work: http://bbs.archlinux.org/viewtopic.php?id=39906&p=17

Offline

#15 2010-01-10 04:59:50

cothrige
Member
Registered: 2006-06-05
Posts: 4

Re: How to 'shade' Conky?

I am not sure but my conkyrc does look a little different than yours.  I have, just before the TEXT section, the following:

lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre draw_bg

I noticed that you did not have the "draw_bg" at the end of your excerpt.  Having pieced mine together from the websites and a little trial and error, I have absolutely no knowledge of the inner workings of either conky or lua in general, I cannot speak with any authority.   But that setup does work here and so it may help for you.

Offline

#16 2010-01-17 19:31:00

WladyX
Member
Registered: 2008-10-26
Posts: 43

Re: How to 'shade' Conky?

You have to install conky-lua (AUR) instead of conky.

Offline

Board footer

Powered by FluxBB