Conky With Lua

Themes, icons, wallpapers, etc.
Message
Author
alwaysalonee
Posts: 62
Joined: Tue 28 Feb 2012, 04:16

#31 Post by alwaysalonee »

yes jwm also gives black screen ..
before a while when i mount my usb it used to be green dot on icon but now it gives red dot on usb drive icon , is it a problem ?
i am gonna reinstall puppy and try again , i hope XFCE will load fine then

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#32 Post by battleshooter »

alwaysalonee wrote:yes jwm also gives black screen ..
before a while when i mount my usb it used to be green dot on icon but now it gives red dot on usb drive icon , is it a problem ?
i am gonna reinstall puppy and try again , i hope XFCE will load fine then
Yes, if you reinstall Puppy, XFCE should work again. If you enable compositing in XFCE, you shouldn't need to go through any of the steps except for installing the basic pets:

conky-1.8.1.pet
liblua5.1-0_5.1.4-5_i386.deb
libiconv-1.14.pet

and then just starting up a Conky theme normally. Be warned that the default Conky theme does have a black box around it so don't be fooled by it into thinking your Conky setup isn't working, test with a different theme.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

alwaysalonee
Posts: 62
Joined: Tue 28 Feb 2012, 04:16

#33 Post by alwaysalonee »

after installing, it works well on xfce and openbox. in openbox it takes some seconds to completely vanish black screen but it's ok coz finally it's working :)

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#34 Post by battleshooter »

alwaysalonee wrote:after installing, it works well on xfce and openbox. in openbox it takes some seconds to completely vanish black screen but it's ok coz finally it's working :)
Very glad to hear that! So just to clarify, you reinstalled, didn't mess with the .xinitrc file and now there's no black box around Conky? If yes, great! Good job for sticking with it :)
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

alwaysalonee
Posts: 62
Joined: Tue 28 Feb 2012, 04:16

#35 Post by alwaysalonee »

..
Last edited by alwaysalonee on Sun 13 May 2012, 08:47, edited 1 time in total.

alwaysalonee
Posts: 62
Joined: Tue 28 Feb 2012, 04:16

#36 Post by alwaysalonee »

conky stopped working again, same problem :(
alternatively, with conky enabled, use nathan's wallpaper setter and change the wp image.
See if transparency appears (which is what the
feh --bg-scale $IMAGE
cp -f $IMAGE /root/.background
code in the file /usr/local/apps/Wallpaper/set_bg does).
this is not working ...
aa, if the black window is persistent, check the position of
feh --bg-scale /root/.background in /root/.xinitrc .
the code line: rox -p /root/Choices/ROX-Filer/PuppyPin appears at least twice (i remember they reside in an if - else statement), so try to place it before the other instance. (this is what i was doing wrong the first time around).
jd can you make above more clear please , how to do it and what is that ?

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#37 Post by battleshooter »

Whoa, slow down alwaysalonee, because you're running XFCE the steps listed earlier may not apply to your situation.

Can you please run this in a terminal a copy and paste the result?

Code: Select all

xfconf-query -c xfwm4 -p /general/use_compositing
This will tell whether you have compositing enabled, if you do, we need to take a different route to get Conky working.

Do you have any idea what could have caused Conky to stop working again?
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

alwaysalonee
Posts: 62
Joined: Tue 28 Feb 2012, 04:16

#38 Post by alwaysalonee »

no i am not running xfce + compiz for regular use now i made it's lupusave file separatly so i can load it only when i wanna play with compiz
i am running openbox for regular use and in it conky stopped working

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#39 Post by battleshooter »

alwaysalonee wrote:no i am not running xfce + compiz for regular use now i made it's lupusave file separatly so i can load it only when i wanna play with compiz
i am running openbox for regular use and in it conky stopped working
Ahhh, I understand now, it's an OpenBox desktop that you're trying to run Conky on. How did you originally setup Conky in the OpenBox desktop? Did you follow the instructions from the first post, or did Conky just work?
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

alwaysalonee
Posts: 62
Joined: Tue 28 Feb 2012, 04:16

#40 Post by alwaysalonee »

i installed all .pets from the 1st post and from desktop->conky switcher i get it working but with Black Screen
i dled conky normal switcher my screen res is 1360*768 , conky wide swithcer also didnt work , black screen ..

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#41 Post by battleshooter »

Yup, ok, that's good, now I know where you're at.

Have a look at this image, I've put the line feh --bg-scale /root/.background in a different place just in case it is bothering your OpenBox setup. Place the line feh --bg-scale /root/.background in the same place as the picture and you should be fine, no crashing of window managers.

Then just edit /usr/local/apps/Wallpaper/set_bg and run Nathan's wallpaper again as stated before and your Conky should be fixed up.
Attachments
example.jpg
(44.46 KiB) Downloaded 2114 times
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

alwaysalonee
Posts: 62
Joined: Tue 28 Feb 2012, 04:16

#42 Post by alwaysalonee »

thanks battleshooter :)
it did the trick , not working with 2-3 conky themes tho but i dont want them either so it's ok

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#43 Post by battleshooter »

Great! Glad that worked. If some themes are still displaying black around them, it would be because they are set up for real transparencies rather than the pseudo transparency we are using. Jemimah's themes for Saluki are set up like that and so are many other themes found around the internet. It can be easily tweaked to work correctly though, by editing the conkyrc file.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

jaydee
Posts: 7
Joined: Wed 18 Apr 2012, 10:20

#44 Post by jaydee »

glad to see aa's(and i suspect others) issue with transparency in openbox was resolved, thanks to battleshooter.

First off, im on lupu 528 ver. 005 with openbox as wm. i had set up conky working , then i uninstalled/moved/edited something and the transparency started acting up. As i was testing the settings, i got to the point where i had uninstalled feh, running only
conky-1.8.1.pet
liblua5.1-0_5.1.4-5_i386.deb
libiconv-1.14.pet
and relying on the

Code: Select all

own_window_transparent yes
rule in the conkyrc file for transparency effect. with that setup i observed the following:
when x server initiated (either on normal startup or when restarting x ) the black background on the window was present for a time (maybe about 2-5 mins) , then transparency set in. Weirdly, transparency would be applied near instantly if and when i opened the conkyrc file in geany.
Transparency would also be applied if , while conky was running, i opened nathan's background setter and changed backgrounds.
Now, the first case baffles me, but in the case of the background change, i suspect that when x redraws the background ,the own_window_transparent rule in conkyrc is triggered and applied.
If that is in fact the case, getting conky to load on x startup before the background is set , could we achieve transparency in conky lua without the services of feh? Does that make any sense?
Now, i 'd rather give a working fix that an assumption, but i don't have the first idea on how x loads and initiates the relevant scripts, so any insight would be appreciated.

We obviously already have a working fix for conky-lua-feh, as documented in this thread, so this is probably nitpicking. it just seems that with some fiddling, openbox can probably do "real" transparency, at least for conky purposes.
that's it. I apologize for the length of the post.
Thanks in advance for any feedback.

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#45 Post by battleshooter »

Interesting post jaydee. No need to apologize for its length. Detailed feedback is nice :)

I don't use OpenBox so I'm not as familiar with it as Fluxbox, but a quick Google around seems to indicate OpenBox may have some kind of composite manager to draw it's own transparencies.
jaydee wrote: If that is in fact the case, getting conky to load on x startup before the background is set ,
I don't think that will work. An alternative solution would be to find out what command is triggering the transparency, and then to place it in .xinitrc to start each time X is called.

What OpenBox package are you using? Just the one from the repo? I might just fire up OpenBox and see if I can work it out, and maybe stick up some different steps for OpenBox users. I'm not really fond of the feh method, it seems, messy.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

jaydee
Posts: 7
Joined: Wed 18 Apr 2012, 10:20

#46 Post by jaydee »

battleshooter, appreciate the feedback.

its the openbox that comes as the default wm in lupu, specs say
openbox 3.4.11 , repo has it as openbox_3.4.10-1 .
the xdgmenu that also shows up in repo composes the start menu so it shouldnt (probably?) be necessary.

Tracking down the transparency command sounds like a tall order for my skillset, but i ll certainly give it a go. Also attached my conkyrc file, in case any specific setting in it contributes to the effect (also added a preview pic, to keep the punters passing through happy).

like yourself, i have nothing against feh, i just looked through its files, and it seems feh was designed for a completely different reason and function; it seems a bit too much for what we want it for (although still a great working fix).

thanks again for the effort.
Attachments
compactlua.tar.gz
stripped-down, compact version of conky lua rings
(27.78 KiB) Downloaded 1214 times
preview.jpg
(23.6 KiB) Downloaded 5223 times

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#47 Post by battleshooter »

Well that's got to be the weirdest thing ever. I tried fiddling around with the conkyrc file for the "Cherries" theme in OpenBox but wasn't able to achieve any transparency. Then I tried your compact lua theme (it's a nice take on the original by the way :)) and true enough it was black and then eventually went transparent. I'll have to look more into this tomorrow, maybe copy the settings from the compact lua conkyrc and try to work them with another theme.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

jaydee
Posts: 7
Joined: Wed 18 Apr 2012, 10:20

#48 Post by jaydee »

its weird, right ?!

I was going back and forth on all the startup scripts and got lost, so i went back to the conkyrc file, commenting out rules and it seems that the rule that allows this is

Code: Select all

 own_window_type override 
(none of the other options exhibits this).
According to the conky configuration page, Override windows are not under the control of the window manager, meaning no wm decorations or rules apply.
So we might not be getting transparency per se (none of the argb/opacity values work), but just that the base window (border, label,) isn't drawn;why the background lags is right now beyond me. To get variable transparency in openbox, i think we probably need a compositor like xcompmgr, as per urukrama's guide.

This could very well be a weird glitch/coincidence that made me jump into a convenient conclusion.

alwaysalonee
Posts: 62
Joined: Tue 28 Feb 2012, 04:16

#49 Post by alwaysalonee »

Code: Select all

own_window_type override
this is a magic code for transparency :shock:
in greenlua conky rc file i put that line and it begin to give transparency :shock: :shock: :shock: :shock: :

User avatar
battleshooter
Posts: 1378
Joined: Wed 14 May 2008, 05:10
Location: Australia

#50 Post by battleshooter »

I haven't had time to really process your post jaydee, I'll be busy most this week, but just thought to post to let you know I haven't forgotten about OpenBox and Conky.
alwaysalonee wrote:this is a magic code for transparency
Haha, that made me laugh :)
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=94580]LMMS 1.0.2[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94593]Ardour 3.5.389[/url], [url=http://www.murga-linux.com/puppy/viewtopic.php?t=94629]Kdenlive 0.9.8[/url]

Post Reply